/* Detail modals (contract, part), shared so it opens over whichever page opened it (Deb, 2026-10-02). Styles lifted from helm-mock-jobdetail.html. */
  .kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 10px 14px 14px; margin: 0; }
  .kv dt { font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .kv dd { margin: 2px 0 0; font-size: var(--font-size-sm); font-weight: 500; display: flex; align-items: center; gap: 6px; min-width: 0; }
  .kv dd.blank { color: var(--helm-text-dim); font-weight: 400; }
  .kv .wide { grid-column: 1 / -1; }
  .kv.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 900px) { .kv.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .tbl { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
  .tbl th { text-align: left; font-size: 0.6875rem; font-weight: 600; color: var(--helm-text-dim); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
  .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl tbody tr { transition: background .12s; }
  .tbl tbody tr.go { cursor: pointer; }
  .tbl tbody tr.go:hover { background: var(--helm-s2); }
  .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tbl .mono { font-family: var(--font-family-mono); font-size: 0.75rem; color: var(--helm-text-dim); white-space: nowrap; }
  .tbl .main { font-weight: 600; }
  .tbl .sub { display: block; font-size: var(--font-size-xs); color: var(--helm-text-dim); font-weight: 400; }
  .tbl-wrap { padding: 4px 4px 2px; }
  .tbl tr.ghead { cursor: default; }
  .tbl tr.ghead:hover { background: none; }
  .tbl tr.ghead td { background: var(--helm-s2); padding: 6px 10px; font-size: var(--font-size-xs); }
  .tbl tr.ghead td > span { display: flex; justify-content: space-between; gap: 8px; }
  .cv { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
  .cvr { display: flex; justify-content: space-between; font-size: var(--font-size-sm); color: var(--helm-text-dim); }
  .cvr b { color: var(--foreground); font-variant-numeric: tabular-nums; font-weight: 600; }
  .cvr.tot { border-top: 1px solid var(--border); padding-top: 6px; color: var(--foreground); font-weight: 600; }
  .cvr.tot b { font-weight: 700; }
  .cvbar { display: flex; height: 10px; border-radius: 5px; background: var(--helm-s3); overflow: hidden; margin-top: 6px; }
  .cvbar i { display: block; height: 100%; }
  .cvbar .paid, .cvl .paid { background: var(--helm-green); }
  .cvbar .bill, .cvl .bill { background: var(--helm-blue); }
  .tbl tr.hl td { background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
  .tbl tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
  .sdocs { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 6px; }
  .sdoc { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); transition: border-color .15s, background .15s; }
  .sdoc:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); background: var(--helm-s2); }
  .sdoc .fi { width: 34px; height: 40px; border-radius: 5px; background: var(--helm-red-dim); color: var(--helm-red); font-size: 0.5625rem; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; box-sizing: border-box; }
  .sdoc .tx { display: flex; flex-direction: column; min-width: 0; }
  .sdoc .tx b { font-size: var(--font-size-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sdoc .tx span, .sdoc .sz { font-size: var(--font-size-xs); color: var(--helm-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .md-scrim { position: fixed; inset: 0; z-index: 450; background: color-mix(in srgb, #000 45%, transparent); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .md { width: min(620px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.4); animation: rise .24s var(--ease); }
  .md-h { position: relative; padding: 16px 48px 12px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .md-kind { font-size: 0.625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--helm-text-dim); }
  .md-h h2 { margin: 0; font-size: 1.1875rem; font-weight: 600; }
  .md-b { padding: 6px 4px 12px; overflow-y: auto; min-height: 0; }
  .md-b h4 { margin: 8px 14px 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); }
  .md-b p { margin: 0 14px 8px; font-size: var(--font-size-sm); line-height: 1.5; }
  .md-b p.blank { color: var(--helm-text-dim); font-style: italic; }
  .md-b .kv .late dd { color: var(--helm-red); }
  .md-att { display: flex; align-items: center; gap: 8px; margin: 2px 14px 8px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; font-size: var(--font-size-sm); font-weight: 600; }
  .md-att span { margin-left: auto; font-size: var(--font-size-xs); color: var(--helm-text-dim); font-weight: 400; }
  .md-pv { margin: 4px 14px 8px; padding: 16px; background: var(--helm-s2); border-radius: 10px; display: flex; justify-content: center; }
  .md-pv .pg { width: 220px; background: #fff; color: #222; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.18); padding: 16px; display: flex; flex-direction: column; gap: 7px; }
  .md-pv .pg b { font-size: 0.6875rem; }
  .md-pv .pg i { display: block; height: 5px; border-radius: 3px; background: #d9d9d9; }
  .md-pv .sig { margin-top: 6px; font-size: 0.625rem; color: #1a6b3c; font-weight: 700; font-style: italic; }
  .md-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
  @media (max-width: 600px) { .md-scrim { padding: 0; align-items: stretch; } .md { width: 100%; max-height: none; border-radius: 0; } .md-f { flex-wrap: wrap; } .md-f > * { flex: 1; } }
  .md.wide { width: min(860px, 100%); }
  .md-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .md-tabs button { all: unset; cursor: pointer; padding: 10px 10px 9px; font-size: var(--font-size-sm); font-weight: 600; color: var(--helm-text-dim); border-bottom: 2px solid transparent; white-space: nowrap; }
  .md-tabs button[aria-selected=true] { color: var(--foreground); border-bottom-color: var(--primary); }
  .md-b .cv { padding: 10px 14px; }
  .tbl tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--helm-orange); }
  .cv-h { display: flex; justify-content: space-between; border-bottom: 2px solid #1f2a44; padding-bottom: 6px; margin-bottom: 8px; } .cv-h b { color: #1f2a44; } .cv-h span { font-weight: 700; }
    .kv { grid-template-columns: 1fr 1fr; }
    .tbl thead { display: none; }
    .tbl, .tbl tbody { display: block; }
    .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 10px; border-bottom: 1px solid var(--border); }
    .tbl tr:last-child { border-bottom: 0; }
    .tbl td { display: block; padding: 0; border: 0; min-width: 0; }
    .tbl td.hide-sm { display: none; }
    .tbl td.num { text-align: right; }
    .tbl td:empty { display: none; }
    .tbl tr.ghead { display: block; padding: 0; }
    .tbl tr.ghead td { display: block; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .md-h .fly-x { position: absolute; top: 10px; right: 10px; }
  /* Comparison pricing (part modal) */
  .cp { display: flex; flex-direction: column; gap: 10px; padding: 8px 14px 4px; }
  .cp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cp-sum > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--helm-s2); min-width: 0; }
  .cp-sum span { font-size: 0.625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); }
  .cp-sum b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
  .cp-sum small { font-size: var(--font-size-xs); color: var(--helm-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .cp-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 92px 110px 128px; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
  .cp-list li.pref { border-color: color-mix(in srgb, var(--accent) 70%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: inset 4px 0 0 var(--accent); }
  .cp-pref { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 9999px; background: var(--accent); color: var(--accent-foreground); font-size: var(--font-size-xs); font-weight: 700; }
  .cp-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cp-who b { font-size: var(--font-size-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cp-who span { display: flex; align-items: center; gap: 6px; font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .cp-tag { font-style: normal; font-size: 0.625rem; font-weight: 700; padding: 1px 6px; border-radius: 9999px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); }
  .cp-tag.low { background: var(--helm-green-dim); color: var(--helm-green); }
  .cp-bar { height: 6px; border-radius: 3px; background: var(--helm-s3); overflow: hidden; }
  .cp-bar i { display: block; height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--helm-text-dim) 60%, var(--card)); }
  .cp-list li.low .cp-bar i { background: var(--helm-green); }
  .cp-price { display: flex; flex-direction: column; align-items: flex-end; }
  .cp-price b { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
  .cp-price span, .cp-date span { font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .cp-date { display: flex; flex-direction: column; }
  .cp-date b { font-size: var(--font-size-sm); font-weight: 500; white-space: nowrap; }
  .cp-date em { font-style: normal; font-size: 0.625rem; font-weight: 700; color: color-mix(in srgb, var(--helm-orange) 80%, var(--foreground)); }
  [data-theme=dark] .cp-date em { color: var(--helm-orange); }
  .cp-act { display: flex; justify-content: flex-end; }
  @media (max-width: 760px) { .cp-list li { grid-template-columns: minmax(0, 1fr) auto; } .cp-bar { grid-column: 1 / -1; order: 3; } .cp-date { order: 4; } .cp-act { order: 5; } .cp-sum { grid-template-columns: 1fr 1fr; } }
  /* Part modal (Deb, 2026-10-02): fixed size, every tab laid out the same way */
  .md.pm { height: min(700px, 88vh); max-height: none; }
  .md.pm .md-b { flex: 1; padding: 0; }
  .pm-pane { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 14px; }
  .pm-pane.cp { padding: 12px 14px 14px; }
  .pm-sec { display: flex; flex-direction: column; gap: 6px; }
  .pm-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .pm-sec h4, .md-b .pm-sec h4 { margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); }
  .pm-sec > .tbl-wrap, .pm-sec > ul, .pm-sec > ol, .pm-sec > dl { margin: 0; }
  .pm-sec > button { align-self: flex-start; }
  .pm-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: stretch; }
  .pm-img { min-height: 132px; border-radius: 12px; border: 1px dashed var(--border); background: var(--helm-s2); display: flex; align-items: center; justify-content: center; font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .pm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pm-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pm-stat { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--helm-s2); min-width: 0; }
  .pm-stat span { font-size: 0.625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); }
  .pm-stat b { font-size: 1.0625rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pm-stat small { font-size: var(--font-size-xs); color: var(--helm-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pm-stat.warn b { color: color-mix(in srgb, var(--helm-orange) 80%, var(--foreground)); } .pm-stat.red b { color: var(--helm-red); }
  .pm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .pm-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: var(--font-size-sm); }
  .pm-row:nth-child(odd) { border-right: 1px solid var(--border); }
  .pm-row:nth-last-child(-n+2) { border-bottom: 0; }
  .pm-row dt { color: var(--helm-text-dim); } .pm-row dd { margin: 0; font-weight: 500; min-width: 0; } .pm-row dd.blank { color: var(--helm-text-dim); font-weight: 400; }
  .pm-locs, .pm-list { list-style: none; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .pm-locs li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) 90px 100px; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: var(--font-size-sm); }
  .pm-locs li:last-child, .pm-list li:last-child { border-bottom: 0; }
  .pm-locs li.empty { color: var(--helm-text-dim); } .pm-locs li.empty b { font-weight: 500; }
  .pm-meter { height: 6px; border-radius: 3px; background: var(--helm-s3); overflow: hidden; } .pm-meter i { display: block; height: 100%; border-radius: 3px; background: var(--helm-green); }
  .pm-pane .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .pm-pane .dim { color: var(--helm-text-dim); }
  .pm-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: var(--font-size-sm); }
  .pm-list a { display: flex; flex-direction: column; min-width: 0; font-weight: 600; text-decoration: none; }
  .pm-list a span { font-size: var(--font-size-xs); font-weight: 400; color: var(--helm-text-dim); }
  .pm-list a:hover b, .pm-list a:hover { text-decoration: underline; }
  .pm-vendor { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: inset 4px 0 0 var(--accent); }
  .pm-vendor > div:first-child { display: flex; flex-direction: column; gap: 2px; }
  .pm-vendor b { font-size: 1.0625rem; } .pm-vendor small { font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .pm-vendor .pm-stat { background: var(--card); }
  .pm-kick { font-size: 0.625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); }
  .pm-tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
  .pm-tl li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; padding: 0 0 14px; }
  .pm-tl li::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
  .pm-tl li:last-child::before { display: none; }
  .pm-tl li > i { width: 14px; height: 14px; border-radius: 50%; background: var(--helm-green); box-shadow: 0 0 0 3px var(--card); margin-top: 2px; z-index: 1; }
  .pm-tl li:first-child > i { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
  .pm-tl li > div { display: flex; flex-direction: column; gap: 1px; font-size: var(--font-size-sm); min-width: 0; }
  .pm-tl li > div span { color: var(--helm-text-dim); font-size: var(--font-size-xs); }
  .pm-tl time { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--font-size-xs); color: var(--helm-text-dim); white-space: nowrap; }
  .pm-tl time small { font-size: 0.6875rem; }
  .pm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .pm-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--font-size-xs); color: var(--helm-text-dim); font-weight: 600; }
  .pm-hint { margin: 0; grid-column: 1 / -1; font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .md.pm .md-f { align-items: center; }
  .pm-note { margin-right: auto; font-size: var(--font-size-sm); color: var(--helm-green); font-weight: 600; }
  @media (max-width: 760px) { .pm-hero { grid-template-columns: 1fr; } .pm-img { min-height: 90px; } .pm-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-grid { grid-template-columns: 1fr; } .pm-row:nth-child(odd) { border-right: 0; } .pm-row:nth-last-child(2) { border-bottom: 1px solid var(--border); } .pm-locs li { grid-template-columns: minmax(0, 1fr) auto; } .pm-locs .pm-meter, .pm-locs .dim { display: none; } .pm-form { grid-template-columns: 1fr; } .md.pm { height: 100%; } }
  /* New / edit contract */
  .md.cfm { height: min(760px, 90vh); max-height: none; } .md.cfm .md-b { flex: 1; padding: 0; } .md.cfm .md-f { align-items: center; }
  .cf { display: flex; flex-direction: column; gap: 14px; padding: 12px 14px 16px; }
  .cf section { display: flex; flex-direction: column; gap: 8px; }
  .cf h4, .md-b .cf h4 { margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); }
  .cf-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
  .cf-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--font-size-xs); font-weight: 600; color: var(--helm-text-dim); }
  .cf-f.wide { grid-column: 1 / -1; }
  .cf-ta { font: inherit; font-size: var(--font-size-sm); font-weight: 400; color: var(--foreground); background: var(--card); border: 1px solid var(--input); border-radius: 8px; padding: 8px 10px; resize: vertical; }
  .cf-ta:focus { outline: 2px solid color-mix(in srgb, var(--ring) 50%, transparent); }
  .cf-calc { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--helm-s2); font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .cf-calc b { font-size: var(--font-size-base); color: var(--foreground); font-variant-numeric: tabular-nums; }
  .cf-sw { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
  .cf-sw span { display: flex; flex-direction: column; } .cf-sw b { font-size: var(--font-size-sm); } .cf-sw small { font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .cf-drop { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; border: 1px dashed var(--border); border-radius: 10px; background: var(--helm-s2); font-size: var(--font-size-sm); }
  .cf-drop span { font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .cf-req { margin-right: auto; font-size: var(--font-size-xs); color: var(--helm-text-dim); }
  .cf-done { padding: 40px 20px; text-align: center; } .cf-done b { font-size: var(--font-size-lg); } .cf-done p { color: var(--helm-text-dim); }
  @media (max-width: 600px) { .cf-g { grid-template-columns: 1fr; } .md.cfm { height: 100%; } }
  /* Pricing matrix: vendors across, parts down (Deb, 2026-10-02) */
  .pmx-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--card); max-width: 100%; }
  .pmx { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--font-size-sm); }
  .pmx th, .pmx td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
  .pmx tr > :last-child { border-right: 0; }
  .pmx thead th { position: sticky; top: 0; z-index: 2; background: var(--helm-s2); }
  .pmx-v b { display: block; font-size: var(--font-size-sm); white-space: nowrap; } .pmx-v span, .pmx-part span { display: block; font-size: var(--font-size-xs); font-weight: 400; color: var(--helm-text-dim); }
  .pmx .pmx-part { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 220px; max-width: 280px; }
  .pmx thead .pmx-part { z-index: 3; background: var(--helm-s2); font-size: 0.6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--helm-text-dim); }
  .pmx-part button { all: unset; cursor: pointer; display: block; } .pmx-part button:hover b { text-decoration: underline; color: var(--link); }
  .pmx-part b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pmx-c { min-width: 150px; } .pmx-c small { display: block; font-size: 0.6875rem; color: var(--helm-text-dim); } .pmx-c small.old { color: color-mix(in srgb, var(--helm-orange) 80%, var(--foreground)); font-weight: 600; }
  .pmx-p { display: flex; align-items: center; gap: 6px; } .pmx-p b { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
  .pmx-c.low .pmx-p b { color: var(--helm-green); }
  .pmx-c.pref { background: color-mix(in srgb, var(--accent) 12%, var(--card)); box-shadow: inset 0 3px 0 var(--accent); }
  .pmx-c.none { color: var(--helm-text-dim); background: var(--helm-s2); }
  .pmx-pref { display: inline-flex; margin-top: 4px; height: 20px; align-items: center; padding: 0 8px; border-radius: 9999px; background: var(--accent); color: var(--accent-foreground); font-size: 0.6875rem; font-weight: 700; }
  .pmx-mk { all: unset; cursor: pointer; display: inline-block; margin-top: 4px; font-size: 0.6875rem; font-weight: 600; color: var(--link); } .pmx-mk:hover { text-decoration: underline; }
  .pmx-s { min-width: 120px; text-align: right !important; } .pmx-s b { display: block; color: color-mix(in srgb, var(--helm-orange) 80%, var(--foreground)); font-variant-numeric: tabular-nums; } .pmx-s small, .pmx-s span { font-size: 0.6875rem; color: var(--helm-text-dim); }
  .pmx-g td { background: var(--helm-s2); font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--helm-text-dim); padding: 6px 10px; position: sticky; left: 0; }
  [data-theme=dark] .pmx-s b, [data-theme=dark] .pmx-c small.old { color: var(--helm-orange); }
  .pmx-gl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; font-size: var(--font-size-xs); }
  .pmx-gl b:first-child { text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; color: var(--foreground); }
  .pmx-sel { font: inherit; font-size: var(--font-size-xs); font-weight: 600; color: var(--foreground); background: var(--card); border: 1px solid var(--input); border-radius: 6px; padding: 2px 6px; }
  .pmx-src { display: inline-block !important; margin-top: 3px; font-size: 0.625rem !important; font-weight: 600; padding: 1px 6px; border-radius: 9999px; background: var(--helm-s2); }
  .pmx-src.own { background: color-mix(in srgb, var(--accent) 18%, var(--card)); color: var(--foreground) !important; }
  .pmx-catpill { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 9999px; background: var(--accent); color: var(--accent-foreground); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
  .pmx-catpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .pmx-catpill select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
  .cf-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 24px 18px; }
  .cf-tc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
  .cf-tc:hover, .cf-tc:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
  .cf-tc b { font-size: var(--font-size-lg); } .cf-tc span { font-size: var(--font-size-sm); color: var(--helm-text-dim); line-height: 1.45; }
  @media (max-width: 600px) { .cf-type { grid-template-columns: 1fr; } }
  /* Comparison Pricing in the part modal: gap between the stats and the matrix; part name wraps (Deb, 2026-10-02) */
  .cp-wrap { display: flex; flex-direction: column; gap: 14px; }
  .pmx .pmx-part { min-width: 150px; max-width: 190px; width: 190px; }
  .pmx-part b { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.3; }
  /* Column widths (Deb, 2026-10-02): part 20%, each vendor 15%, could save 10% */
  .pmx { table-layout: fixed; width: 100%; }
  .pmx th.pmx-part, .pmx td.pmx-part { width: 20%; min-width: 0; max-width: none; }
  .pmx .pmx-v, .pmx .pmx-c { width: 15%; min-width: 0; }
  .pmx .pmx-s { width: 10%; min-width: 0; }
  .pmx-v b { white-space: normal !important; line-height: 1.25; }
  .cp-wrap .pmx { min-width: 0; }
  /* The matrix never grows past the content column; it scrolls inside its own frame on small screens */
  .pl, .pl > * { min-width: 0; max-width: 100%; }
  .pmx-wrap { width: 100%; box-sizing: border-box; }
  @media (max-width: 760px) { .pmx { width: 760px; } }
  .pmx th, .pmx td { overflow-wrap: anywhere; }
