/* p-ifl-manufacturing: cluster file for the manufacturing industry flow pages (prefix mfg-), spec homepage/tools/INDUSTRY-75-SPEC.md §2 + §4.4.
   Loads after pages/p-indflow.css. Holds: tokens (navy #082238 + cyan #00A3D9), hero "shop traveler" art and its variants
   (--ticket batch ticket, --tag piece-mark tag, --sheet build sheet, --packet customer PO packet, --plate machine nameplate), signature interactive 1
   "Routing sequencer" (.mfg-route) and signature interactive 2 "Lot trace-back" (.mfg-trace + recall letter).
   Page-only tweaks go under .ifl--<slug>. No 3D, no WebGL: CSS and inline SVG only. */

body.pg {
  --ifl-accent: #00A3D9;
  --ifl-accent-ink: #0B5E8C;          /* 6.6:1 on white */
  --ifl-accent-on: #fff;
  --ifl-tint: #E7F6FC;
  --ifl-band: linear-gradient(135deg, #061A2E 0%, #0B2F4A 55%, #0A4E6E 100%);
  --ifl-band-ink: #5FD3F3;
  --mfg-paper: #FBF8F1;               /* traveler paper */
  --mfg-ink: #1E2A36;
  --mfg-rule: #D9D2C2;
  --mfg-stamp: #0B5E8C;
  --mfg-red: #B4432A;
}

/* ---------- hero: faint machinist grid behind the copy ---------- */
.mfg-hero { background-image: radial-gradient(rgba(11, 94, 140, .09) 1px, transparent 1.4px); background-size: 22px 22px; }
.mfg-hero .ifl-hero__art { --ifl-art-ratio: 9 / 10; max-width: 470px; }

/* ---------- hero art: the shop traveler (base) ---------- */
.mfg-art { display: grid; place-items: center; }
.mfg-trav { position: relative; width: min(100%, 390px); padding: 30px 22px 18px; border-radius: 6px; background: var(--mfg-paper);
  border: 1px solid #E7DFCC; box-shadow: 0 34px 60px -38px rgba(8, 34, 56, .6), 0 2px 0 #EFE8D8; transform: rotate(-1.6deg); color: var(--mfg-ink); font-family: var(--f-body); }
.mfg-trav::before { content: ""; position: absolute; left: 14px; top: 64px; bottom: 20px; width: 0; border-left: 1px dashed #E2C9C0; }
.mfg-trav__clip { position: absolute; left: 50%; top: -14px; width: 112px; height: 30px; margin-left: -56px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(#5B6B7A, #2F3D4B); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.mfg-trav__clip::after { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 6px; margin-left: -20px; border-radius: 3px; background: #1B2733; }
.mfg-trav__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--mfg-ink); }
.mfg-trav__k { margin: 0; font: 800 11px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #5B6470; }
.mfg-trav__no { margin: 2px 0 0; font: 800 24px/1 var(--f-display); letter-spacing: -.01em; }
.mfg-trav__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-bottom: 1px solid var(--mfg-rule); }
.mfg-trav__meta > div { padding: 7px 0; border-top: 1px solid var(--mfg-rule); }
.mfg-trav__meta > div:nth-child(-n+2) { border-top: 0; }
.mfg-trav__meta dt { font: 700 10px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #6B7280; }
.mfg-trav__meta dd { margin: 2px 0 0; font: 600 13px/1.3 var(--f-body); }
.mfg-trav__part { position: absolute; right: 18px; top: 74px; width: 74px; height: 58px; opacity: .9; }
.mfg-trav__part path { fill: none; stroke: #0B5E8C; stroke-width: 1.4; stroke-linejoin: round; }
.mfg-trav__part circle { fill: none; stroke: #0B5E8C; stroke-width: 1.2; }
.mfg-trav__ops { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: none; }
.mfg-trav__ops li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; min-height: 40px;
  border-bottom: 1px solid var(--mfg-rule); font: 600 13.5px/1.25 var(--f-body); }
.mfg-trav__n { font: 800 12px/1 var(--f-display); color: #5B6470; font-variant-numeric: tabular-nums; }
.mfg-trav__w { font: 600 11.5px/1.2 var(--f-body); color: #5B6470; white-space: nowrap; }
.mfg-trav__ops li.is-out .mfg-trav__w { color: var(--mfg-red); }
.mfg-stamp { justify-self: center; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--mfg-stamp);
  color: var(--mfg-stamp); font: 800 10.5px/1 var(--f-body); font-style: normal; letter-spacing: .04em; transform: rotate(var(--r, -12deg));
  box-shadow: inset 0 0 0 2px var(--mfg-paper), inset 0 0 0 3.5px rgba(11, 94, 140, .55); opacity: .88; mix-blend-mode: multiply; }
.mfg-stamp--qc { border-color: #1F6A37; color: #1F6A37; box-shadow: inset 0 0 0 2px var(--mfg-paper), inset 0 0 0 3.5px rgba(31, 106, 55, .5); }
.mfg-trav__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.mfg-trav__bar { display: block; width: 128px; height: 26px; background: repeating-linear-gradient(90deg, var(--mfg-ink) 0 2px, transparent 2px 4px, var(--mfg-ink) 4px 5px, transparent 5px 8px, var(--mfg-ink) 8px 11px, transparent 11px 13px); opacity: .85; }
.mfg-lot { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--ifl-ink); color: #fff; font: 700 12px/1 var(--f-body); letter-spacing: .03em; }
.mfg-lot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5FD3F3; }
.mfg-art__chip { position: absolute; right: -2%; bottom: 7%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--ifl-line); box-shadow: var(--ifl-shadow); font: 600 12.5px/1.25 var(--f-body); color: var(--ifl-ink); max-width: 210px; }
.mfg-art__chip img { flex: none; }
.mfg-art__chip small { display: block; font-weight: 500; color: var(--ifl-muted); }

/* stamps land one at a time, one pass (CSS only, so the page works without JS); reduced motion shows the end state */
@media (prefers-reduced-motion: no-preference) {
  .mfg-trav .mfg-stamp { animation: mfgStamp .42s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.55s + var(--i, 0) * .5s); }
  .mfg-trav .mfg-lot, .mfg-art__chip { animation: mfgRise .5s ease-out both; animation-delay: calc(.6s + var(--n, 5) * .5s); }
}
@keyframes mfgStamp { 0% { opacity: 0; transform: rotate(var(--r, -12deg)) scale(1.9); } 70% { opacity: .95; transform: rotate(var(--r, -12deg)) scale(.92); } 100% { opacity: .88; transform: rotate(var(--r, -12deg)) scale(1); } }
@keyframes mfgRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* traveler variants for sibling pages (same idea, different object) */
.mfg-trav--ticket { border-radius: 2px; background: #FFFDF6; transform: rotate(1.2deg);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.mfg-trav--ticket .mfg-trav__clip { display: none; }
.mfg-trav--ticket .mfg-trav__head { border-bottom-style: dashed; }
.mfg-trav--tag { padding-top: 40px; border-radius: 10px 10px 18px 18px; background: #F4F1EA; transform: rotate(2.4deg); }
.mfg-trav--tag .mfg-trav__clip { top: 12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #B9B2A3; }
.mfg-trav--tag .mfg-trav__clip::after { top: -60px; left: 8px; width: 2px; height: 62px; margin: 0; border-radius: 0; background: #8A7F6A; transform: rotate(-8deg); transform-origin: bottom; }
.mfg-trav--sheet { border-radius: 4px; background: #fff; transform: rotate(-.8deg); }
.mfg-trav--sheet .mfg-trav__clip { width: 100%; left: 0; margin: 0; top: 0; height: 10px; border-radius: 4px 4px 0 0; background: var(--ifl-ink); }
.mfg-trav--sheet .mfg-trav__clip::after { display: none; }
.mfg-trav--sheet .mfg-stamp { width: 24px; height: 24px; border-radius: 5px; transform: none; font-size: 0; box-shadow: none; }
.mfg-trav--sheet .mfg-stamp::after { content: ""; width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); font-size: 0; }
.mfg-trav--packet { background: #F2F7FA; border-color: #D3E3EC; transform: rotate(-2.2deg); }
.mfg-trav--packet { box-shadow: 12px -10px 0 -2px #E4D9BE, 0 34px 60px -38px rgba(8, 34, 56, .6); }
.mfg-trav--packet .mfg-trav__clip { left: auto; right: 22px; margin: 0; width: 64px; height: 22px; top: -12px; border-radius: 6px 6px 0 0; background: #E4D9BE; box-shadow: none; }
.mfg-trav--packet .mfg-trav__clip::after { display: none; }

/* --plate: riveted brushed-steel machine nameplate with a service log (industrial equipment) */
.mfg-trav--plate { --mfg-paper: #2B3641; --mfg-ink: #EEF2F5; --mfg-rule: rgba(238, 242, 245, .16); --mfg-stamp: #6FD6F5;
  padding: 34px 26px 20px; border-radius: 12px; border: 1px solid #121A22; transform: rotate(1.4deg);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), linear-gradient(165deg, #46535F, #2B3641 55%, #1F2830);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 34px 60px -36px rgba(8, 34, 56, .75); }
.mfg-trav--plate::before { display: none; }
.mfg-trav--plate .mfg-trav__clip { inset: 8px; left: 8px; top: 8px; width: auto; height: auto; margin: 0; border-radius: 0; box-shadow: none; pointer-events: none;
  background: radial-gradient(circle at 5px 5px, #C9D2DA 0 2.4px, #5D6975 2.9px, transparent 3.4px) left top / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, #C9D2DA 0 2.4px, #5D6975 2.9px, transparent 3.4px) right top / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, #C9D2DA 0 2.4px, #5D6975 2.9px, transparent 3.4px) left bottom / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, #C9D2DA 0 2.4px, #5D6975 2.9px, transparent 3.4px) right bottom / 10px 10px no-repeat; }
.mfg-trav--plate .mfg-trav__clip::after { display: none; }
.mfg-trav--plate .mfg-trav__head { border-bottom-color: rgba(238, 242, 245, .5); }
.mfg-trav--plate .mfg-trav__k, .mfg-trav--plate .mfg-trav__meta dt, .mfg-trav--plate .mfg-trav__n, .mfg-trav--plate .mfg-trav__w { color: #B4C0CB; }
.mfg-trav--plate .mfg-trav__ops li.is-out .mfg-trav__w { color: #FFB8A6; }
.mfg-trav--plate .mfg-trav__part path, .mfg-trav--plate .mfg-trav__part circle { stroke: #6FD6F5; }
.mfg-trav--plate .mfg-trav__part rect { fill: none; stroke: #6FD6F5; stroke-width: 1.2; }
.mfg-trav--plate .mfg-trav__part { display: none; }
.mfg-trav--plate .mfg-trav__ops li { grid-template-columns: 50px minmax(0, 1fr) auto 40px; }
.mfg-trav--plate .mfg-trav__n { font-size: 11.5px; }
.mfg-trav--plate .mfg-stamp { width: 34px; height: 34px; mix-blend-mode: normal; opacity: 1; box-shadow: inset 0 0 0 2px var(--mfg-paper), inset 0 0 0 3.5px rgba(111, 214, 245, .45); }
.mfg-trav--plate .mfg-stamp--qc { border-color: #7BE0A1; color: #7BE0A1; box-shadow: inset 0 0 0 2px var(--mfg-paper), inset 0 0 0 3.5px rgba(123, 224, 161, .45); }
.mfg-trav--plate .mfg-lot { background: #EEF2F5; color: #082238; }
.mfg-trav--plate .mfg-lot::before { background: #00A3D9; }

@media (max-width: 560px) {
  .mfg-trav { padding: 26px 16px 14px; }
  .mfg-trav__part { display: none; }
  .mfg-trav__ops li { grid-template-columns: 26px minmax(0, 1fr) auto 40px; gap: 6px; font-size: 13px; }
  .mfg-trav--plate { padding: 30px 16px 16px; }
  .mfg-trav--plate .mfg-trav__ops li { grid-template-columns: 44px minmax(0, 1fr) auto 36px; }
  .mfg-art__chip { right: 0; bottom: 2%; max-width: 180px; font-size: 12px; }
}

/* ---------- small page parts ---------- */
.mfg-intro { max-width: 760px; }
.ifl-scr .mfg-file { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 7px; background: var(--ifl-tint); color: var(--ifl-accent-ink); font: 700 11.5px/1.2 var(--f-body); }
.ifl-scr .mfg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- signature interactive 1: routing sequencer (.mfg-route) ---------- */
.mfg-route { margin-top: 26px; padding: clamp(16px, 2.4vw, 26px); border-radius: 24px; background: #fff; border: 1px solid var(--ifl-line); box-shadow: var(--ifl-shadow); }
.mfg-route__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.mfg-route__qty { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mfg-route__qty > span { font: 600 13px/1.3 var(--f-body); color: var(--ifl-muted); margin-right: 4px; }
.mfg-route__qty button, .mfg-route__reset { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ifl-line); background: #fff; color: var(--ifl-ink); font: 600 14px/1 var(--f-body); cursor: pointer; }
.mfg-route__qty button[aria-pressed="true"] { background: var(--ifl-accent-ink); border-color: var(--ifl-accent-ink); color: #fff; }
.mfg-route__reset { color: var(--ifl-accent-ink); }
.mfg-route__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.mfg-route__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ifl-muted); }
.mfg-route__pal ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mfg-op { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 14px;
  border: 1px solid var(--ifl-line); background: var(--ifl-paper); color: var(--ifl-ink); text-align: left; cursor: pointer; font: inherit; }
.mfg-op::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--ifl-line); font: 700 15px/1 var(--f-body); color: var(--ifl-accent-ink); }
.mfg-op b { display: block; font: 700 14px/1.25 var(--f-body); }
.mfg-op small { display: block; margin-top: 2px; font: 500 12px/1.3 var(--f-body); color: var(--ifl-muted); }
.mfg-op[aria-pressed="true"] { background: var(--ifl-tint); border-color: var(--ifl-accent-ink); }
.mfg-op[aria-pressed="true"]::before { content: "\2713"; background: var(--ifl-accent-ink); border-color: var(--ifl-accent-ink); color: #fff; font-size: 12px; }
.mfg-op:hover { border-color: var(--ifl-accent); }
.mfg-route button:focus-visible { outline: 3px solid var(--ifl-accent-ink); outline-offset: 2px; }
.mfg-route__seq ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: mfgop; }
.mfg-route__seq li { counter-increment: mfgop; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 46px; padding: 6px 6px 6px 8px;
  border-radius: 12px; background: var(--mfg-paper); border: 1px solid #ECE4D2; font: 600 14px/1.25 var(--f-body); color: var(--ifl-ink); }
.mfg-route__seq li::before { content: counter(mfgop) "0"; font: 800 12px/1 var(--f-display); color: #5B6470; text-align: center; }
.mfg-route__seq li.is-warn { border-color: #E9A28F; background: #FFF4F0; }
.mfg-route__seq li small { display: block; font: 500 12px/1.3 var(--f-body); color: var(--ifl-muted); }
.mfg-route__mv { display: inline-flex; gap: 4px; }
.mfg-route__mv button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 9px; border: 1px solid var(--ifl-line); background: #fff; color: var(--ifl-ink); font: 700 14px/1 var(--f-body); cursor: pointer; }
.mfg-route__mv button:disabled { opacity: 1; color: #A8B2BF; cursor: default; }
.mfg-route__mv button[data-mv="x"] { color: var(--mfg-red); }
.mfg-route__seq li.mfg-route__empty { counter-increment: none; min-height: 0; background: none; }
.mfg-route__seq li.mfg-route__empty::before { content: none; }
.mfg-route__empty { margin: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--ifl-line); font: 500 14px/1.45 var(--f-body); color: var(--ifl-muted); }
.mfg-route__warn { margin: 10px 0 0; min-height: 1px; font: 600 13.5px/1.45 var(--f-body); color: #9A2E12; }
.mfg-route__warn:empty { display: none; }
.mfg-cap { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.mfg-cap li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 84px; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--f-body); color: var(--ifl-ink); }
.mfg-cap li b { justify-self: end; font: 700 12px/1.2 var(--f-body); font-variant-numeric: tabular-nums; color: var(--ifl-muted); white-space: nowrap; }
.mfg-cap__bar { position: relative; display: flex; height: 14px; border-radius: 7px; background: #EDF2F6; overflow: hidden; }
.mfg-cap__b { display: block; width: calc(var(--b, 0) * 100%); background: #9FB3C4; transition: width .5s ease; }
.mfg-cap__j { display: block; width: calc(var(--j, 0) * 100%); background: var(--ifl-accent-ink); transition: width .5s ease; }
.mfg-cap li.is-over .mfg-cap__j { background: var(--mfg-red); }
.mfg-cap li.is-over b { color: #9A2E12; }
.mfg-cap__key { display: flex; flex-wrap: wrap; gap: 12px; margin: -6px 0 14px; font: 500 12px/1.3 var(--f-body); color: var(--ifl-muted); }
.mfg-cap__key i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; background: #9FB3C4; }
.mfg-cap__key i.is-j { background: var(--ifl-accent-ink); }
.mfg-quote { margin: 0; border-radius: 16px; background: var(--ifl-paper); overflow: hidden; }
.mfg-quote > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid #E5EBF0; font: 500 13.5px/1.35 var(--f-body); color: var(--ifl-body); }
.mfg-quote > div:first-child { border-top: 0; }
.mfg-quote dt { margin: 0; }
.mfg-quote dd { margin: 0; font-weight: 700; color: var(--ifl-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mfg-quote .is-total { background: var(--ifl-ink); }
.mfg-quote .is-total dt, .mfg-quote .is-total dd { color: #fff; font: 800 16px/1.3 var(--f-display); }
.mfg-route__note { margin: 12px 0 0; font: 500 13px/1.5 var(--f-body); color: var(--ifl-muted); }
.ifl-js .mfg-route [data-mfg-nojs] { display: none; }
@media (max-width: 1099px) { .mfg-route__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mfg-route__out { grid-column: 1 / -1; } }
@media (max-width: 680px) { .mfg-route__grid { grid-template-columns: minmax(0, 1fr); } .mfg-cap li { grid-template-columns: 64px minmax(0, 1fr) 78px; } }

/* ---------- signature interactive 2: lot trace-back (.mfg-trace) ---------- */
.mfg-trace { margin-top: 26px; }
.mfg-trace__lots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mfg-trace__lots [role="tab"] { display: grid; gap: 2px; min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--ifl-line); background: #fff; color: var(--ifl-ink); text-align: left; cursor: pointer; font: inherit; }
.mfg-trace__lots [role="tab"] b { font: 700 14px/1.2 var(--f-body); }
.mfg-trace__lots [role="tab"] small { font: 500 12px/1.2 var(--f-body); color: var(--ifl-muted); }
.mfg-trace__lots [role="tab"][aria-selected="true"] { background: var(--ifl-ink); border-color: var(--ifl-ink); color: #fff; }
.mfg-trace__lots [role="tab"][aria-selected="true"] small { color: #C9D5E6; }
.mfg-trace [role="tab"]:focus-visible, .mfg-trace__p:focus-visible, .mfg-trace button:focus-visible { outline: 3px solid var(--ifl-accent-ink); outline-offset: 2px; }
.mfg-trace__p { padding: clamp(16px, 2.4vw, 24px); border-radius: 24px; background: #fff; border: 1px solid var(--ifl-line); box-shadow: var(--ifl-shadow); }
.mfg-trace__p + .mfg-trace__p { margin-top: 14px; }
.mfg-trace.is-js .mfg-trace__p + .mfg-trace__p { margin-top: 0; }
.mfg-trace__tree { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.mfg-trace__col > p { margin: 0 0 8px; font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ifl-muted); }
.mfg-trace__col ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mfg-node { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ifl-line); background: var(--ifl-paper); transition: background .35s ease, border-color .35s ease; }
.mfg-node__k { font: 700 11px/1.2 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--ifl-accent-ink); }
.mfg-node b { font: 700 14px/1.3 var(--f-body); color: var(--ifl-ink); }
.mfg-node small { font: 500 12.5px/1.4 var(--f-body); color: var(--ifl-muted); }
.mfg-node.is-flag { border-color: #E9A28F; background: #FFF4F0; }
.mfg-node.is-flag .mfg-node__k { color: #9A2E12; }
.mfg-trace__back .mfg-node::after, .mfg-trace__fwd .mfg-node::before { content: ""; position: absolute; top: 50%; width: 14px; border-top: 2px solid var(--ifl-accent); }
.mfg-trace__back .mfg-node::after { right: -15px; }
.mfg-trace__fwd .mfg-node::before { left: -15px; }
.mfg-trace__lot { display: grid; place-items: center; gap: 4px; min-width: 120px; padding: 16px 14px; border-radius: 18px; background: var(--ifl-ink); color: #fff; text-align: center; }
.mfg-trace__lot b { font: 800 18px/1.15 var(--f-display); }
.mfg-trace__lot small { font: 500 12px/1.35 var(--f-body); color: #C9D5E6; }
.mfg-trace__lot .ifl-sample { margin-top: 4px; }
.ifl-js .mfg-trace.is-run .mfg-node { background: #fff; border-color: var(--ifl-line); }
.ifl-js .mfg-trace.is-run .mfg-node.is-lit { background: var(--ifl-tint); border-color: var(--ifl-accent); }
.ifl-js .mfg-trace.is-run .mfg-node.is-flag.is-lit { background: #FFF4F0; border-color: #E9A28F; }
.mfg-trace__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.mfg-trace__btn { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ifl-accent-ink); background: #fff; color: var(--ifl-accent-ink); font: 700 14px/1 var(--f-body); cursor: pointer; }
.mfg-trace__btn[aria-expanded="true"] { background: var(--ifl-accent-ink); color: #fff; }
.mfg-letter { margin-top: 14px; padding: 20px 22px; border-radius: 6px; background: var(--mfg-paper); border: 1px solid #E7DFCC; font: 500 14px/1.55 var(--f-body); color: var(--mfg-ink); }
.ifl-js .mfg-letter:not(.is-on) { display: none; }
.mfg-letter__h { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; font: 700 13px/1.3 var(--f-body); color: #5B6470; }
.mfg-letter p { margin: 0 0 8px; }
.mfg-letter ul { margin: 0 0 8px; padding-left: 18px; }
@media (max-width: 760px) {
  .mfg-trace__tree { grid-template-columns: minmax(0, 1fr); }
  .mfg-trace__lot { order: -1; justify-self: start; }
  .mfg-trace__back .mfg-node::after, .mfg-trace__fwd .mfg-node::before { display: none; }
}

/* ---------- job shops page (.ifl--job-shops) ---------- */
.ifl--job-shops .mk-score { margin-top: 24px; }
.ifl--job-shops .mfg-seq-sec .pg-answer a { color: var(--ifl-accent-ink); font-weight: 600; }

/* ---------- QA 2026-11-15: keep sample cards at or under 340px on laptop ---------- */
.ifl-scr .ifl-ledger td { padding-top: 6px; padding-bottom: 6px; }
.ifl-scr .ifl-inv td { padding: 5px 0; }
.ifl-scr .ifl-map { max-height: 140px; }
