/* epc_calm (12 Oct 2026). Loads last. Labels read in sentence case, without
   the tracked monospace capitals that made every card look generated.
   Numbers and codes stay monospaced; words do not. */

:root { --label-ink: #56647A; }

/* Status pills: words, not shouting */
.pill, .l1-pill {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  text-transform: none; letter-spacing: 0;
  font-size: 12px; font-weight: 500; line-height: 1.25;
}
.l1-pill { font-size: 11.5px; }

/* Small labels above figures and table headers */
.dash-kpi .k, .dash-chart .bar .l, .dash-aged .ttl, .dash-chip, .pipe-l,
.tb-menu .tb-drop .hdr, .tb-drop .hdr, .insd-wrap thead th, .mr-kpi .k, .app-user .role,
.tbl thead th, .items thead th, .cmp thead th, .mtx th, .pp-table th,
.totals .t .lbl, .slot-tag, .sec-h, div.count .c .lbl, .qstat .q .l, .cfg-bar .st, .cfg-nav .g,
.lockbadge, .hdr .me .rl, .cmdk-grp, .stat .l, .task .gobtn, .difftag, .statepick .lb,
.amd .lbl, .authbrand .sub, .lviews .vlbl, .lcols .ch, .authcard .sub,
.pp-head .pp-side .l, .pp-gauge .g-name, .pp-gauge .g-ctx, .pp-split .s-l,
.pp-card > h3, .pp-card > .pp-h, .pp-bar-top .pp-proj,
.lg-chip .l, .cox-f .k, .xd-k .l, .kom-sum dt, .sp-dates dt, .cn-step small {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  text-transform: none; letter-spacing: 0;
}
.dash-kpi .k, .mr-kpi .k, .lg-chip .l, .cox-f .k, .xd-k .l, .stat .l, .qstat .q .l,
.totals .t .lbl, div.count .c .lbl, .pp-split .s-l, .pp-head .pp-side .l {
  font-size: 12px; font-weight: 500;
}
.tbl thead th, .items thead th, .cmp thead th, .mtx th, .pp-table th, .insd-wrap thead th {
  font-size: 12px; font-weight: 600; color: var(--label-ink);
}

/* Kicker labels above headings are gone from the markup. If one is left
   in an old view, it reads as a plain line instead of a shouted label. */
.eyebrow, .pp-head .pp-eyebrow, .page .page-head .eyebrow {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--label-ink);
}

/* Type details */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.mono, .tbl td.num, .num { font-variant-numeric: tabular-nums; }

/* Hit areas: small buttons and row links stay at least 32px tall, 40px on touch */
.btn-sm { min-height: 32px; }
@media (pointer: coarse) { .btn-sm, .row-ed > summary { min-height: 40px; } }

/* Never animate everything */
.btn, .btn-act { transition-property: transform, background-color, border-color, color, box-shadow; }

/* The context line under a page title (record type, source, project) */
.page-sub { margin: 4px 0 0; font-size: 13px; color: var(--label-ink); }
.page-head .page-sub + p { margin-top: 6px; }
/* Small label inside a card, sentence case */
.sub-lbl { font-size: 12px; font-weight: 600; color: var(--label-ink); margin-bottom: 4px; }

/* ===== b15 (12 Oct 2026): one typeface for words and numbers ==========
   IBM Plex Mono made dates, amounts and notes read like code. Numbers now
   use Plex Sans with tabular figures, so columns still line up. Mono stays
   for real code: kbd, code, system references. */
:root { --ui-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.mono, .rec-no, .pono, .rank, .score, .receipt, .fld, .tagpill, .difftag, .lockbadge,
.dash-kpi .v, .dash-chart .bar .n, .dash-chip b, .pipe-n, .mr-head .no,
.app-topbar .proj, .app-topbar .proj-pill, .rail .node .code, .log .when, .chain .step .c,
.items .rown, .items .form-control.mono, .totals .t .val.mono, .att .sz, .steps .s .n,
.cmp td.num, .bidder .meta, div.count .c .val.mono, .track .when, .cfg-bar .code, .cfg-nav a .n,
.wtot .v, .mtx .band, .hdr .proj, .nitem .tm, .cmdk-item .tail, .sechd .cnt, .task .no, .task .due,
.act-log .at .tm, .appnav a .cnt, .scoperow .ln, .hdr .projsel .cnt, .paystrip .s .amt,
.stagerail .st small, .amd .val.mono, .ltb .lbtn .n, .ltb .lcount, .lviews a .c,
.stagehd .no, .stagehd .src, .tb-roles span, .tb-me .tb-me-proj, .board-card .r,
.pp-head .pp-figure, .pp-head .pp-side .n, .pp-gauge .g-num, .pp-split .s-n, .pp-rows div b,
.pp-table .num, .pp-pill, .pp-share > div:first-child b, .pp-expo-row .n,
.app-subnav .cnt, [style*="IBM Plex Mono"] {
  font-family: var(--ui-font) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
/* Document numbers used as titles: a touch tighter, still sans */
h1.mono, .page-head h1.mono { letter-spacing: -0.01em; font-weight: 600; }
/* Real code keeps the monospace face */
kbd, code, pre, .spec code, .thread ol code, .searchbtn .kbd, .cmdk-foot kbd, .sysbox .code, .sysbox .ref {
  font-family: 'IBM Plex Mono', ui-monospace, monospace !important;
}

/* ===== Record page head: title left, status and actions right ======= */
.ph-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; max-width: 440px; margin-left: auto; }
.ph-side .ph-detail { font-size: 12.5px; color: var(--label-ink); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) {
  .ph-side { align-items: flex-start; text-align: left; margin-left: 0; max-width: none; }
  .ph-actions { justify-content: flex-start; }
}

/* ===== Empty states: one voice, one look ============================ */
.dash-empty, .lg-empty, .xd-empty, .qc-empty, .vh-empty, .qi-empty, .mi-empty, .tbb-empty, .pd-empty, .empty-row td {
  color: var(--label-ink); font-size: 13px; line-height: 1.5;
}
td[colspan][style*="text-align:center"] { color: var(--label-ink); font-size: 13px; }

/* ===== Narrow screens: tables scroll inside their card ============== */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll > table { min-width: 640px; }
@media (min-width: 1100px) { .tbl-scroll > table { min-width: 0; } }
.ph-actions:not(:has(*)) { display: none; }
.ph-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ph-status > span:not(.pill) { margin: 0 !important; font-size: 12.5px !important; color: var(--label-ink); white-space: normal !important; }
@media (max-width: 760px) { .ph-status { align-items: flex-start; } }
.page-head > .ph-side { flex: 0 1 auto; }

/* Procurement progress cards: labels in sentence case, not small caps */
body .pp-gauge .g-name, body .pp-gauge .g-ctx, body .pp-card > h3, body .pp-card > .pp-h,
body .pp-table th, body .pp-bar-top .pp-proj, body .pp-split .s-l, body .pp-head .pp-side .l {
  text-transform: none; letter-spacing: 0;
}
body .pp-card > h3, body .pp-card > .pp-h { font-size: 13px; font-weight: 600; }
body .pp-gauge .g-name, body .pp-split .s-l, body .pp-head .pp-side .l, body .pp-table th { font-size: 12px; }
body .pp-gauge .g-ctx { font-size: 11.5px; }
body .pp-table td a.mono, body .pp-table td:first-child a { white-space: nowrap; }

/* Phone widths */
.authcard { box-sizing: border-box; }
@media (max-width: 440px) {
  .authcard { padding: 24px 20px; }
  .authwrap { padding: 20px 12px; }
}
@media (max-width: 560px) {
  body .app-topbar .tb-drop.tb-bell { position: fixed; left: 8px; right: 8px; top: 58px; width: auto; max-width: none; }
}
.mc-grid > *, .row > [class*="col"] { min-width: 0; }
