/* Enterprise AI for Pharmaceuticals & Life Sciences and its workflow pages. The shared context-first (cx-) styles are in
   construction.css, the multi-stage picture grid in financial-services.css; these are the pharmaceuticals surfaces (ph-).
   Palette follows the shared re- surfaces: plum for the record, green for agrees, amber for a person’s call, rust for a gap. */

.cx-a-data+.cx-a-text{font-size:13px}

/* Shared bits */
.re-solo-body>[class^="ph-"],.re-main>[class^="ph-"]{margin:0 clamp(14px,2vw,24px) 14px}
.ph-col{display:grid;gap:10px;align-content:start;min-width:0}
.ph-fig,.ph-map{margin:0;min-width:0}
.ph-fig svg{display:block;width:100%;height:auto;background:#fbf7f4;border:1px solid #e4d9e0;border-radius:10px}
.ph-map svg{display:block;width:100%;height:auto;border:1px solid #d9d2c4;border-radius:10px;background:#dfe8ea}
.ph-fig figcaption,.ph-map figcaption{font-size:11px;color:var(--re-muted);margin-top:4px}
.re-scrub .ph-fig svg{max-height:40svh}.re-scrub .ph-map svg{max-height:36svh}
.ph-t,.ph-axis-t{font:11px Instrument,sans-serif;fill:#6b5866}
.ph-h{font:650 11px Instrument,sans-serif;fill:#8c526f;text-transform:uppercase;letter-spacing:.06em}
.ph-axis{stroke:#cbb9c4;stroke-width:1;fill:none}.ph-tick{stroke:#ece2e7;stroke-width:1}
.ph-note{margin:6px 0 0;font-size:12.5px;line-height:1.45;color:var(--re-muted)}
.ph-draft{padding:12px 14px;background:#fff;border:1px solid #e4d9e0;border-left:3px solid #6a405e;border-radius:4px 8px 8px 4px}
.ph-draft header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted);margin-bottom:6px}
.ph-draft header b{text-transform:none;letter-spacing:0;font-size:13px;color:#2c2230}
.ph-draft p{margin:0 0 8px;font:13.5px/1.5 Georgia,serif;color:#2e2430}
.ph-card,.ph-redline,.ph-rail{padding:12px 14px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;font-size:13px}
.ph-card header,.ph-redline header,.ph-rail header{display:grid;gap:2px;margin-bottom:8px}
.ph-card header small,.ph-redline header small,.ph-rail header small{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted)}
.ph-card header b,.ph-redline header b,.ph-rail header b{font-size:14px;line-height:1.3;color:#2c2230}
.ph-kv{margin:0;display:grid;gap:6px}
.ph-kv div{display:grid;grid-template-columns:9.5em minmax(0,1fr);gap:8px;font-size:12.5px;line-height:1.4}
.ph-kv dt{color:var(--re-muted)}.ph-kv dd{margin:0}
.ph-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.ph-list li{display:grid;gap:1px;font-size:12.5px;line-height:1.4;color:#4d3a47}.ph-list b{color:#2c2230;font-size:13px}
.ph-tally{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:0;padding:10px 12px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;font-size:12.5px}
.ph-tally b{font-size:22px;letter-spacing:-.02em;color:#b0451f}.ph-tally span{padding:2px 8px;border-radius:10px;background:#f3ecef}
.ph-sea{fill:#dfe8ea}.ph-map-t{font:700 7px Instrument,sans-serif;fill:#2c2230;paint-order:stroke;stroke:#e6dccb;stroke-width:2px}
.ph-leader{stroke:#8a7482;stroke-width:.6;fill:none}.ph-leader-dark{stroke:#3a2438;stroke-width:.8}
.ph-ring{fill:none;stroke:#2f6a3e;stroke-width:1.4}
.ph-callout{fill:#3a2438}.ph-callout-t{font:700 6.5px Instrument,sans-serif;fill:#fff}.ph-callout-s{font:5.5px Instrument,sans-serif;fill:#f0dce6}

/* 1. API trade-flow map and funnel */
.ph-api,.ph-pg,.ph-sq,.ph-var,.ph-dev,.ph-sop,.ph-batch,.ph-apr,.ph-ser,.ph-sup,.ph-pv,.ph-rec,.ph-tender,.ph-cdmo,.ph-insp{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.85fr);gap:12px;align-items:start}
.ph-arc{fill:none;stroke:#c9b6c1;stroke-opacity:.8}.ph-arc-rep{stroke:#8c526f}.ph-arc-short{stroke:#2f6a3e;stroke-opacity:1}
.ph-src{fill:#8a7482;stroke:#fff;stroke-width:.6}.ph-src-cur{fill:#b0451f}.ph-src-short{fill:#2f6a3e}
.ph-dest rect{fill:#3a2438}
.ph-fn{fill:#efe6eb}.ph-fn-1{fill:#e2d0da}.ph-fn-2{fill:#d4b9c8}.ph-fn-3{fill:#2f6a3e}
.ph-fn-n{font:700 18px Instrument,sans-serif;fill:#2c2230}.ph-fn-3+.ph-fn-n,.ph-fn-3~text{fill:#fff}
.ph-fn-t{font:650 11px Instrument,sans-serif;fill:#2c2230}.ph-fn-s{font:10px Instrument,sans-serif;fill:#6b5866}
.ph-tree{list-style:none;margin:0;padding:0;font-size:12.5px}.ph-tree ul{list-style:none;margin:4px 0 0 10px;padding:0 0 0 10px;border-left:1px solid #cbb9c4;display:grid;gap:4px}
.ph-tree small{display:block;color:#b0451f;font-size:11.5px}.ph-flag{color:#2c2230}

/* 2. Chain of custody */
.ph-node rect{fill:#fff;stroke:#cbb9c4}.ph-node-claim rect{stroke:#c27a2c;stroke-dasharray:4 3}.ph-node-trader rect{fill:#f3ecef;stroke:#8c526f}.ph-node-site rect{fill:#3a2438}
.ph-node-site .ph-node-t,.ph-node-site .ph-node-s{fill:#fff}.ph-node-seen rect{fill:#eef4ef;stroke:#2f6a3e}
.ph-node-t{font:650 11px Instrument,sans-serif;fill:#2c2230}.ph-node-s{font:10px Instrument,sans-serif;fill:#6b5866}
.ph-edge{fill:none;stroke-width:1.6}.ph-edge-claim{stroke:#c27a2c;stroke-dasharray:4 3}.ph-edge-seen{stroke:#2f6a3e}.ph-edge-offer{stroke:#3a2438;stroke-width:2.4}
.ph-edge-t{font:10px Instrument,sans-serif;fill:#6b5866}
.ph-stamp{fill:#fff4ef;stroke:#b0451f}.ph-stamp-t{font:650 10.5px Instrument,sans-serif;fill:#b0451f}

/* 3. Expiry swimlanes */
.ph-lane rect,.ph-key{fill:#6a405e}.ph-lane-qa rect,.ph-key.ph-lane-qa{fill:#c27a2c}.ph-lane-cert rect,.ph-key.ph-lane-cert{fill:#6f8fb0}
.ph-lane-t{font:10.5px Instrument,sans-serif;fill:#3c2939}.ph-lane-d{font:10px Instrument,sans-serif;fill:#6b5866}
.ph-limit{stroke:#b0451f;stroke-width:1.4;stroke-dasharray:3 3}

/* 4. Filing timeline */
.ph-flane-bg{fill:#f6f0f3}.ph-flane-a{font:700 12px Instrument,sans-serif;fill:#2c2230}.ph-flane-m{font:10px Instrument,sans-serif;fill:#6b5866}
.ph-flane-work{fill:#d4b9c8}.ph-flane-w{font:10px Instrument,sans-serif;fill:#3c2939}
.ph-gate path{stroke:#c27a2c;stroke-width:1.2;stroke-dasharray:3 3}.ph-gate rect{fill:#fff6ea;stroke:#c27a2c}.ph-gate-t{font:650 9.5px Instrument,sans-serif;fill:#8a5317}
.ph-file path{fill:#2f6a3e}.ph-file-t{font:650 10px Instrument,sans-serif;fill:#2f6a3e}

/* 5. Agency letter and answers */
.ph-qr,.ph-ri{display:grid;gap:10px}
.ph-clock-a{fill:#6a405e}.ph-clock-now{fill:#c27a2c}.ph-clock-due{fill:#b0451f}.ph-clock-left{fill:#f1d8cd}.ph-clock-t{font:650 11px Instrument,sans-serif;fill:#b0451f}
.ph-compare{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ph-compare li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ph-compare p{margin:0;padding:9px 11px;background:#fff;border:1px solid #e4d9e0;border-radius:6px;font-size:12.5px;line-height:1.4;display:grid;gap:3px}
.ph-compare small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted)}
.ph-a{border-left:3px solid #2f6a3e!important}.ph-gap .ph-a{border-left-color:#b0451f!important;background:#fff7f4}
.ph-compare code{font-size:11px;color:#6a405e;background:none;padding:0}

/* 6. Regulator feed */
.ph-rf-0{fill:#e2d0da}.ph-rf-1{fill:#8c526f}.ph-rf-2{fill:#b0451f}.ph-rf-t{font:650 10.5px Instrument,sans-serif;fill:#2c2230}.ph-rf-tl{fill:#fff}
.ph-feed{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ph-feed li{padding:10px 12px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;font-size:12.5px;line-height:1.4}
.ph-feed header{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}.ph-feed header small{color:var(--re-muted);font-size:11px}
.ph-feed p{margin:5px 0 0}
.ph-chips{display:flex;flex-wrap:wrap;gap:4px}.ph-chips span{padding:2px 8px;border-radius:10px;background:#f3ecef;font-size:11px;color:#4d3a47}

/* 7. Fishbone and events */
.ph-spine{stroke:#3a2438;stroke-width:2.4}.ph-head{fill:#3a2438}.ph-head-t{font:650 9.5px Instrument,sans-serif;fill:#fff}
.ph-bone path{stroke:#8a7482;stroke-width:1.6}.ph-bone-w3 path{stroke:#b0451f;stroke-width:2.6}
.ph-bone-t{font:650 11px Instrument,sans-serif;fill:#2c2230}.ph-bone rect{fill:#e9dde4}.ph-bone rect.on{fill:#b0451f}.ph-bone-w2 rect.on{fill:#c27a2c}.ph-bone-w1 rect.on{fill:#8a7482}
.ph-limitline{stroke:#b0451f;stroke-width:1.2}.ph-nearline{stroke:#c27a2c;stroke-width:1;stroke-dasharray:3 3}
.ph-ev path{stroke:#cbb9c4;stroke-width:2}.ph-ev circle{fill:#8a7482}.ph-ev-near path{stroke:#e7b9aa}.ph-ev-near circle{fill:#c27a2c}
.ph-ev-now circle{fill:#b0451f;stroke:#fff;stroke-width:1.5}.ph-ev-t{font:650 10px Instrument,sans-serif;fill:#b0451f}

/* 8. SOP redline and shifts */
.ph-redline p{margin:0 0 8px;font:13.5px/1.55 Georgia,serif;color:#2e2430}
.ph-redline del{color:#b0451f;text-decoration-thickness:1.5px}.ph-redline ins{color:#2f6a3e;text-decoration:none;background:#eef4ef;padding:0 2px}
.ph-tr-ok{fill:#2f6a3e}.ph-tr-no{fill:#f1d8cd;stroke:#b0451f;stroke-width:.8}
.ph-shift-t{font:650 12px Instrument,sans-serif;fill:#2c2230}.ph-shift-n{font:650 11px Instrument,sans-serif;fill:#b0451f}

/* 9. Batch record */
.ph-transit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.ph-transit span{padding:8px 10px;background:#fff;border:1px solid #e4d9e0;border-radius:6px;font-size:11.5px;line-height:1.3;color:var(--re-muted);display:grid}
.ph-transit b{font-size:14px;color:#2c2230}
.ph-sec rect{fill:#d4b9c8;stroke:#fff}.ph-sec-t{font:10px Instrument,sans-serif;fill:#2c2230}
.ph-pin path{stroke:#b0451f;stroke-width:1.4}.ph-pin circle{fill:#b0451f}.ph-pin-n{font:700 9px Instrument,sans-serif;fill:#fff}
.ph-ok-bar{fill:#2f6a3e;opacity:.85}
.ph-rail ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ph-rail li{display:grid;gap:2px;padding:8px 10px;border-left:3px solid #c27a2c;background:#fffaf3;border-radius:2px 6px 6px 2px;font-size:12.5px;line-height:1.4}
.ph-rail li small{color:var(--re-muted)}.ph-rail li em{font-style:normal;color:#8a5317;font-weight:600}
.ph-rail-sign{margin:10px 0 0}

/* 10. Control charts */
.ph-cc-spec{fill:#eef4ef}.ph-cc-mean{stroke:#2f6a3e;stroke-dasharray:4 3}.ph-cc-line{fill:none;stroke:#3a2438;stroke-width:1.4}
.ph-cc-drift{fill:#c27a2c;opacity:.16}.ph-cc-drift-t{font:650 10px Instrument,sans-serif;fill:#8a5317}
.ph-cc-dev{fill:#c27a2c}.ph-cc-devx{fill:#b0451f}.ph-cc-oos{fill:#b0451f}.ph-cc-mini{fill:none;stroke:#8c526f;stroke-width:1}

/* 11. Pack hierarchy */
.ph-pk{fill:#fff;stroke:#cbb9c4}.ph-pk-pal{fill:#3a2438;stroke:none}.ph-pk-pal+.ph-pk-t{fill:#fff}
.ph-pk-case{fill:#f3ecef}.ph-pk-bad{fill:#fff4ef;stroke:#b0451f}.ph-pk-pack{fill:#e2d0da;stroke:none}
.ph-pk-t{font:10px Instrument,sans-serif;fill:#2c2230}.ph-pk-note{font:10.5px Instrument,sans-serif;fill:#b0451f}
.ph-pk-link{fill:none;stroke:#8a7482;stroke-width:1}.ph-pk-broken{stroke:#b0451f;stroke-dasharray:3 3}
.ph-evt{fill:#2f6a3e}.ph-evt-miss{fill:#fff;stroke:#b0451f;stroke-width:2}.ph-evt-line{stroke:#2f6a3e;stroke-width:2}.ph-evt-gap{stroke:#b0451f;stroke-dasharray:3 3}
.ph-fix{margin:6px 0 0;font-size:12px;color:#2f6a3e}

/* 12. Burn-down */
.ph-commit{stroke:#c27a2c;stroke-dasharray:4 3}.ph-burn-plan{fill:none;stroke:#2f6a3e;stroke-width:2}.ph-burn-slip{fill:none;stroke:#b0451f;stroke-width:2;stroke-dasharray:5 3}
.ph-api{stroke:#3a2438;stroke-width:1.2}.ph-api-slip{stroke:#b0451f;stroke-dasharray:3 3}
.ph-gap{fill:#b0451f;opacity:.18}.ph-gap-t{font:700 12px Instrument,sans-serif;fill:#b0451f}.ph-gapbar{fill:#b0451f}

/* 13. Safety triage board */
.ph-st-ok{fill:#2f6a3e}.ph-st-ask{fill:#c27a2c}.ph-st-no{fill:#8a7482}.ph-st-qc{fill:#6f8fb0}.ph-st-t{font:650 10.5px Instrument,sans-serif;fill:#fff}
.ph-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ph-lane-col{background:#f6f0f3;border-radius:8px;padding:8px;display:grid;gap:6px;align-content:start;min-width:0}
.ph-lane-col header{display:flex;justify-content:space-between;gap:4px;font-size:12px;border-bottom:3px solid #2f6a3e;padding-bottom:4px}
.ph-lc-ask header{border-color:#c27a2c}.ph-lc-no header{border-color:#8a7482}.ph-lc-qc header{border-color:#6f8fb0}
.ph-lane-col header span{font-weight:700;font-size:15px}
.ph-lane-col article{background:#fff;border:1px solid #e4d9e0;border-radius:6px;padding:7px 8px;font-size:11.5px;line-height:1.35}
.ph-lane-col small{color:var(--re-muted);font-size:10.5px}.ph-lane-col p{margin:3px 0}.ph-lane-col em{font-style:normal;color:#8a5317;font-weight:600}

/* 14. Two-list match */
.ph-row{fill:#8c526f}.ph-row-sa{fill:#6f8fb0}.ph-row-db{fill:#3a2438}.ph-row-miss{fill:#b0451f}.ph-row-late{fill:#c27a2c}
.ph-join{fill:none;stroke:#cbb9c4;stroke-width:.6}.ph-join-late{stroke:#c27a2c;stroke-width:1.4}
.ph-miss-t{font:650 11px Instrument,sans-serif;fill:#b0451f}.ph-late-t{font:650 11px Instrument,sans-serif;fill:#8a5317}

/* 15. Tender map and price build-up */
.ph-tpin circle{fill:#c9b6c1;stroke:#fff;stroke-width:1}.ph-tpin-reg circle{fill:#6a405e}.ph-tpin-n{font:700 7px Instrument,sans-serif;fill:#fff}
.ph-bb-cost{fill:#d4b9c8}.ph-bb-margin{fill:#c27a2c}.ph-bb-bid{fill:#2f6a3e}.ph-bb-t{font:650 10.5px Instrument,sans-serif;fill:#2c2230}.ph-bb-bid+.ph-bb-t{fill:#fff}.ph-bb-t2{font:650 10.5px Instrument,sans-serif;fill:#8a5317}
.ph-award{stroke:#3a2438;stroke-width:1.2;stroke-dasharray:3 3}

/* 16. Capacity calendar */
.ph-wk{fill:#3a2438;opacity:.75}.ph-wk-free{fill:#fff;opacity:1;stroke:#2f6a3e;stroke-width:1.4}
.ph-cal-p{font:650 10px Instrument,sans-serif;fill:#2c2230}
.ph-pros{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ph-pros li{display:grid;gap:1px;padding:9px 11px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;font-size:12px;color:#4d3a47}
.ph-pros b{font-size:13px;color:#2c2230}.ph-pros em{font-style:normal;color:#8a5317;font-weight:600}.ph-pros small{color:#2f6a3e}

/* 17. Floor plan */
.ph-room rect{fill:#fff;stroke:#8a7482;stroke-width:1.2}.ph-room-t{font:650 11px Instrument,sans-serif;fill:#2c2230}
.ph-rp{stroke:#fff;stroke-width:1}.ph-rp-capa{fill:#b0451f}.ph-rp-dev{fill:#c27a2c}.ph-rp-tr{fill:#6a405e}.ph-rp-n{font:700 10px Instrument,sans-serif;fill:#fff}
.ph-flagpin{fill:#b0451f;stroke:#b0451f;stroke-width:1.4}

/* In the scroll view, side columns stay inside the stage */
.re-scrub .ph-col{max-height:60svh;overflow:auto;scrollbar-width:thin}

/* Narrow screens and the static reading */
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .ph-api,.ph-pg,.ph-sq,.ph-var,.ph-dev,.ph-sop,.ph-batch,.ph-apr,.ph-ser,.ph-sup,.ph-pv,.ph-rec,.ph-tender,.ph-cdmo,.ph-insp{grid-template-columns:minmax(0,1fr)}
  .ph-board{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .ph-compare li,.ph-feed,.ph-transit{grid-template-columns:minmax(0,1fr)}
  .ph-kv div{grid-template-columns:minmax(0,1fr);gap:0}
  .ph-board{grid-template-columns:minmax(0,1fr)}
  .ph-filing,.ph-lanes,.ph-events,.ph-cc,.ph-burn,.ph-tree,.ph-cal,.ph-match{overflow-x:auto}
  .ph-filing svg,.ph-lanes svg,.ph-events svg,.ph-cc svg,.ph-burn svg,.ph-tree svg,.ph-cal svg,.ph-match svg{min-width:520px}
}
.ph-dz-t{font:17px Instrument,sans-serif;fill:#4d3a47}.ph-dz-h{font-weight:700;fill:#2c2230}
