/* Shared kit for all menus: page head, section tabs, summary cards, stepper,
   timeline, facts, blocks, forms, drawer, record header, lists. Tokens only. */

/* ---------- Text helpers ---------- */
.muted { color: var(--text-3); }
.muted-line { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.muted-line .i { font-size: 14px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--success-text); font-weight: 700; }
.neg { color: var(--danger-text); font-weight: 700; }
b.overdue, .overdue > b, .due-inline.overdue { color: var(--danger-text); font-weight: 700; }
b.urgent, .due-inline.urgent { color: var(--warning-text); font-weight: 700; }
.due-inline.unknown { color: var(--text-2); font-style: italic; }
.cell-wrap { white-space: normal; display: inline-block; max-width: 340px; line-height: 1.35; }
.cell-sub.small, .small { font-size: 12px; }
.legend-line { font-size: 12.5px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.legend-line b { color: var(--text); }
.page-desc { font-size: 14px; color: var(--text-2); margin: -4px 0 12px; max-width: 760px; }

/* ---------- Page head ---------- */
.page-head .ph-icon { width: 38px; height: 38px; border-radius: 10px; }
.page-head .ph-icon .i { font-size: 20px; }
.ph-text { display: flex; flex-direction: column; min-width: 0; }
.ph-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); line-height: 1.2; }
.page-head h1:focus { outline: none; }
.page-head .page-end { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Section tabs (in-page sub-areas) ---------- */
.sec-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--border-strong); overflow-x: auto; scrollbar-width: none; }
.sec-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; flex: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; border-radius: 6px 6px 0 0; }
.sec-tab .i { font-size: 16px; }
.sec-tab:hover { color: var(--text); background: rgba(255,255,255,.7); }
.sec-tab[aria-current="page"] { color: var(--accent); font-weight: 700; }
.sec-tab[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.sec-tab .label-w::after { content: attr(data-text); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }

/* ---------- Summary cards ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-row.compact .metric { min-height: 84px; }
.kpi-row.compact .metric-value { font-size: 26px; }
a.metric { text-decoration: none; color: inherit; }
.metric.is-static:hover { border-color: var(--border); box-shadow: var(--shadow-panel); }
.metric.t-maint { --tone: var(--dom-maint); --tone-bg: var(--dom-maint-bg); --tone-num: var(--dom-maint); }
.metric.t-insp { --tone: var(--dom-insp); --tone-bg: var(--dom-insp-bg); --tone-num: var(--dom-insp); }
.metric.t-lease { --tone: var(--dom-lease); --tone-bg: var(--dom-lease-bg); --tone-num: var(--dom-lease); }
.metric.t-info { --tone: var(--dom-tele); --tone-bg: var(--dom-tele-bg); --tone-num: var(--dom-tele); }
.metric.t-review { --tone: var(--review); --tone-bg: var(--review-bg); --tone-num: var(--review-text); }
.metric.t-success { --tone: var(--success); --tone-bg: var(--success-bg); --tone-num: var(--success-text); }
.metric.t-neutral { --tone: var(--neutral-line); --tone-bg: var(--neutral-bg); --tone-num: var(--text); }

/* ---------- Badges & chips ---------- */
.badge.progress { background: var(--dom-maint-bg); color: var(--dom-maint); border-color: #c4cdf0; }
.badge.pending { background: var(--dom-lease-bg); color: var(--dom-lease); border-color: #e7c3ad; }
a.badge { text-decoration: none; }
.status-btn.pending { color: var(--dom-lease); background: var(--dom-lease-bg); border-color: #e7c3ad; }
.op-status.pending { --tone: var(--dom-lease); --tone-bg: var(--dom-lease-bg); --tone-text: var(--dom-lease); }
.status-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.status-chip .i { font-size: 13px; stroke-width: 2.2; }
.status-chip.ok { color: var(--success-text); background: var(--success-bg); }
.status-chip.danger { color: var(--danger-text); background: var(--danger-bg); }
.status-chip.review { color: var(--review-text); background: var(--review-bg); }
.status-chip.pending { color: var(--dom-lease); background: var(--dom-lease-bg); }
.status-chip.neutral { color: var(--neutral-text); background: var(--neutral-bg); }
.veh-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); text-decoration: none; white-space: nowrap; vertical-align: middle; }
.veh-chip b { color: var(--key-link); font-size: 13px; }
.veh-chip small { color: var(--text-2); font-size: 11.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.veh-chip:hover { border-color: var(--accent); background: var(--accent-tint); }
.ref-link { color: var(--key-link); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: 3px; }
.ref-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ref-link.is-plain { color: var(--text); }
.src-tag { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-left: 6px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .05em; vertical-align: 1px; background: var(--neutral-bg); color: var(--text-2); }
.src-tag.tms { background: #eef1f5; color: #3c4f66; box-shadow: inset 0 0 0 1px #c9d1d9; }
.src-tag.mnr { background: var(--dom-insp-bg); color: var(--dom-insp); box-shadow: inset 0 0 0 1px #a8d8dc; }
.kind-tag.part { background: var(--dom-fleet-bg); color: var(--dom-fleet); }
.kind-tag.tool { background: var(--dom-tele-bg); color: var(--dom-tele); }
.role-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--dom-fleet-bg); color: var(--dom-fleet); font-size: 12px; font-weight: 700; white-space: nowrap; text-decoration: none; margin: 1px 0; }
.role-chip.lg { height: 26px; font-size: 13px; padding: 0 10px; }
a.role-chip:hover { background: var(--accent-tint); color: var(--accent); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--surface-sunken); border: 1px solid var(--border); font-size: 12.5px; }
.file-chip .i { font-size: 13px; color: var(--text-2); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag-list li { height: 24px; padding: 0 9px; border-radius: 5px; background: var(--dom-lease-bg); color: var(--dom-lease); font-size: 12.5px; font-weight: 600; line-height: 24px; }

/* ---------- Blocks & layout ---------- */
.blk { padding: 14px 16px 14px; }
.blk + .blk, .two-col + .blk, .blk + .two-col, .two-col + .two-col, .kpi-row + .blk, .panel.pad + .blk, .panel.pad + .two-col, .panel.pad + .area-grid { margin-top: 14px; }
.blk-head { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.blk-head h2, .blk-head h3 { font-size: 16px; font-weight: 700; }
.blk-head h2:focus, .blk-head h3:focus { outline: none; }
.blk-head .icon-tile { width: 30px; height: 30px; }
.blk-head .sec-meta { white-space: normal; }
.panel.pad { padding: 14px 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.two-col > .blk + .blk { margin-top: 0; }
.two-col.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
/* Same-rank side-by-side panels: equal height, bodies fill, a form footer sits on the shared bottom edge. Stacks below 1100px. */
.two-col.eq { align-items: stretch; }
.two-col.eq > .blk, .two-col.eq > .section-state { display: flex; flex-direction: column; height: 100%; margin: 0; }
.two-col.eq > .blk > .blk-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.two-col.eq .mini-form { display: flex; flex-direction: column; flex: 1 1 auto; }
.two-col.eq .mini-form > .form-foot { margin-top: auto; }
.tab-stack { display: grid; gap: 14px; }
.tab-stack > * + * { margin-top: 0 !important; }

/* ---------- Facts ---------- */
.facts { display: grid; gap: 12px 24px; }
.facts.c1 { grid-template-columns: 1fr; }
.facts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts dt { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; }
.facts dd { font-size: 14px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.facts .span2 { grid-column: span 2; }
.facts .span3 { grid-column: 1 / -1; }
.facts.c1 .span2, .facts.c1 .span3 { grid-column: auto; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.st { position: relative; flex: 1 1 0; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 4px; }
.st::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: #d4dde6; }
.st:first-child::before { display: none; }
.st.done::before, .st.current::before, .st.blocked::before { background: var(--accent); }
.st-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface); border: 2px solid #c1ccd8; color: var(--text-2); }
.st-dot .i { font-size: 15px; stroke-width: 2.6; }
.st-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.25; }
.st.done .st-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.st.done .st-label { color: var(--text); }
.st.current .st-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.st.current .st-label { color: var(--accent); font-weight: 700; }
.st.blocked .st-dot { border-color: var(--warning); color: var(--warning-text); background: var(--warning-bg); box-shadow: 0 0 0 4px var(--warning-bg); }
.st.blocked .st-label { color: var(--warning-text); font-weight: 700; }
.st.skipped .st-dot { border-style: dashed; color: var(--text-3); }
.st.skipped .st-label { color: var(--text-3); text-decoration: line-through; }
.stepper.compact .st-dot { width: 22px; height: 22px; font-size: 11px; }
.blocker-line { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: 6px; background: var(--warning-bg); color: var(--warning-text); font-size: 13px; }
.blocker-line .i { font-size: 15px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.tl::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text-2); }
.tl-dot .i { font-size: 15px; }
.tl-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.tl-at { margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-text { font-size: 13px; color: var(--text); margin-top: 2px; overflow-wrap: anywhere; }
.tl-by { font-size: 12px; color: var(--text-2); margin-top: 1px; }

/* ---------- Tables (generic) ---------- */
.table-wrap.dt { max-height: none; border-radius: var(--r-panel); }
.list-toolbar + .table-wrap.dt { border-top-left-radius: 0; border-top-right-radius: 0; }
.vtable tbody tr.static { cursor: default; }
.vtable tbody tr.static:hover td { background: inherit; }
.vtable tbody tr.static:nth-child(even):hover td { background: var(--table-stripe); }
.vtable tbody tr.is-done td { color: var(--text-2); }
.vtable tbody tr.is-conflict td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.vtable td .cell-sub { display: inline; }
.vtable td .cell-sub.small { display: block; }
.code-link.small { font-size: 14px; }
.empty-block.compact { padding: 20px 16px; grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; }
.empty-block.compact .i { font-size: 18px; }
.list-toolbar.solo { border-bottom: 1px solid var(--border); border-radius: var(--r-panel); margin-bottom: 12px; }
.list-toolbar.solo + .table-wrap { border-radius: var(--r-panel); }
.list-toolbar.sub { margin-top: -6px; background: var(--surface-sunken); }
.list-toolbar.inner { border: 0; padding: 0 0 10px; }
.list-toolbar .toolbar-end.result-count { margin-left: auto; }
.list-toolbar .chk { font-size: 13px; }

/* ---------- Bars ---------- */
.bars { display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.bar-label a { color: var(--text); font-weight: 600; text-decoration: none; }
.bar-label a:hover { color: var(--accent); text-decoration: underline; }
.bar-track { height: 10px; border-radius: 5px; background: #e6ecf1; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.bar-fill.fleet { background: var(--dom-fleet); } .bar-fill.maint { background: var(--dom-maint); } .bar-fill.danger { background: var(--danger); } .bar-fill.lease { background: var(--dom-lease); } .bar-fill.insp { background: var(--dom-insp); }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 12px 16px; }
.form-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld.span2 { grid-column: span 2; }
.fld.span3 { grid-column: 1 / -1; }
.form-grid.c2 .fld.span3 { grid-column: 1 / -1; }
.fld-label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.fld-label .req { color: var(--danger); margin-left: 3px; }
.fld .input, .fld .select, .fld .textarea { width: 100%; }
.fld .textarea { min-height: 76px; }
.fld-hint { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.fld-hint b { font-weight: 700; }
.input[readonly], .select[disabled] { background: var(--surface-sunken); color: var(--text-2); }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 2px var(--danger-bg); }
.with-unit { position: relative; display: flex; }
.with-unit .input { padding-right: 44px; }
.with-unit .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--text-2); pointer-events: none; }
.w-num { width: 96px; }
.fixed-val { display: flex; align-items: center; gap: 6px; height: var(--control-h); padding: 0 10px; border-radius: var(--r-control); background: var(--surface-sunken); border: 1px dashed var(--border-strong); font-size: 13.5px; }
.fixed-val .i { font-size: 13px; color: var(--text-3); margin-left: auto; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; min-height: 28px; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.chk-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.radio-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--accent); }
.radio-card b { display: block; font-size: 13.5px; }
.radio-card small { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; line-height: 1.35; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.radio-card .input { margin-top: 6px; }
.file-drop { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px dashed var(--control-border); border-radius: 8px; color: var(--text-2); font-size: 13px; }
.file-drop .file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.page-form > * + * { margin-top: 14px; }
.page-form.panel.pad > * + * { margin-top: 14px; }
.form-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
.form-foot .grow { flex: 1; }
.form-foot.slim { padding: 10px 0 0; border: 0; box-shadow: none; background: none; }
.insp-form .form-foot, .page-form .form-foot { position: sticky; bottom: 0; z-index: 5; margin-top: 14px; box-shadow: 0 -4px 16px rgba(13,36,67,.08); }
.ff-state { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.mini-form .form-grid + .form-foot { margin-top: 4px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-text); border-color: var(--danger-text); }
.btn-danger-quiet { color: var(--danger-text); border-color: var(--danger-line); }
.btn-danger-quiet:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn label, label.btn { cursor: pointer; }

/* ---------- Drawer (edit side panel) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100vh; max-height: 100vh; width: min(520px, 100vw); padding: 0; border: 0; border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); color: var(--text); background: var(--surface); }
.drawer.wide { width: min(760px, 100vw); }
.drawer::backdrop { background: rgba(13, 36, 67, .32); }
.drawer-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.drawer-head .icon-btn { margin-left: auto; margin-top: -4px; }
.drawer-body { overflow: auto; padding: 16px 18px 20px; display: grid; gap: 14px; align-content: start; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-sunken); }
.drawer-foot .grow { flex: 1; }
.drawer-error { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 6px; background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger-text); font-size: 13px; }
.drawer-error .i { font-size: 16px; margin-top: 1px; }
.drw-h { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.check-list { display: grid; gap: 6px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; font-size: 13px; background: var(--surface-sunken); }
.check-list li .i { font-size: 16px; margin-top: 1px; flex: none; }
.check-list .is-block .i { color: var(--warning-text); }
.check-list .is-ok .i { color: var(--success); }
.chg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.chg-table th, .chg-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.chg-table th { font-size: 12px; color: var(--text-2); }

/* ---------- Record header (inside a menu) ---------- */
.rec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
.rh-main { min-width: 0; flex: 1 1 280px; }
.rh-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.rh-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.rh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ctx-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.action-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); }
.ab-text { font-size: 13.5px; color: var(--text-2); flex: 1 1 320px; }
.ab-text strong { color: var(--text); }
.ab-end { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.menu-more { position: relative; }
.menu-more summary { list-style: none; }
.menu-more summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-panel); box-shadow: var(--shadow-pop); }

/* ---------- Lists ---------- */
.row-list { display: grid; }
.row-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.row-list li:last-child { border-bottom: 0; }
.row-list li > :last-child { margin-left: auto; }
.rel-list li, .id-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.rel-list li:last-child, .id-list li:last-child { border-bottom: 0; }
.rl-k, .idl-k { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.rl-v { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.idl-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.idl-m { font-size: 12px; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; } .facts.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .form-grid.c2, .form-grid.c3, .radio-row, .facts.c2, .facts.c3 { grid-template-columns: 1fr; }
  .fld.span2, .facts .span2 { grid-column: auto; }
  .rel-list li, .id-list li { grid-template-columns: 1fr; gap: 4px; }
  .rh-actions { margin-left: 0; }
  .drawer, .drawer.wide { width: 100vw; }
  .page-head { flex-wrap: wrap; }
}

/* R4 · Vehicle identity: Truck Code + VIN (js/vehicle-id.js). The VIN is never cut; a missing VIN says why. */
.vin { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 11.5px; line-height: 1.3; color: var(--text-2); white-space: nowrap; }
.vin-k { flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--text-3); }
.vin-v { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; letter-spacing: .02em; color: var(--text); }
.vin.is-unregistered .vin-v, .vin.is-not_supplied .vin-v, .vin.is-unavailable .vin-v { font-family: inherit; font-style: italic; color: var(--text-3); letter-spacing: 0; }
.veh-id { display: inline-flex; min-width: 0; gap: 2px 8px; }
.veh-id.vi-stack { flex-direction: column; align-items: flex-start; }
.veh-id.vi-row { flex-wrap: wrap; align-items: baseline; }
.veh-chip { flex-direction: column; align-items: flex-start; gap: 1px; padding: 3px 8px; }
.veh-chip .vc-top { display: inline-flex; align-items: baseline; gap: 5px; }
.veh-chip .vc-vin .vin-v { color: var(--text); }
td.c-vid { white-space: nowrap; }
td.c-vid .vin-row { display: flex; margin-top: 1px; }
.id-vin { margin-top: 2px; font-size: 13px; }
.id-vin .vin-v { font-size: 13px; }
.id-vin .vin-k { font-size: 10.5px; }
