/* Additional states use the existing PDI controls and theme. */
.ph-pdi .ph-ease-equipment { display: grid; gap: 12px; padding-block: 12px; }
.ph-pdi .ph-ease-group { border: 1px solid var(--line, #bac0bd); border-radius: 8px; overflow: hidden; }
.ph-pdi .ph-ease-group > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; min-height: 48px; cursor: pointer; }
.ph-pdi .ph-ease-group-count { font-size: .85em; color: var(--muted, #59635f); }
.ph-pdi .ph-ease-equipment-row { border: 0; border-top: 1px solid var(--line, #bac0bd); margin: 0; padding: 12px 14px; min-width: 0; }
.ph-pdi .ph-ease-equipment-row legend { float: left; width: 100%; font-weight: 650; margin-bottom: 6px; }
.ph-pdi .ph-ease-radio-options { display: flex; flex-wrap: wrap; clear: both; gap: 6px; }
.ph-pdi .ph-ease-radio { display: flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 44px; cursor: pointer; border: 1px solid var(--line, #bac0bd); border-radius: 5px; color: inherit; }
.ph-pdi .ph-ease-radio:has(input:checked) { outline: 2px solid currentColor; outline-offset: -2px; font-weight: 700; }
.ph-pdi .ph-ease-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand, #b92b27); flex: 0 0 auto; }
.ph-pdi .ph-ease-appliance { padding: 0 14px 14px; }
.ph-pdi .ph-ease-appliance:empty { display: none; }
.ph-pdi .ph-ease-appliance select { width: 100%; min-height: 44px; }
.ph-pdi .ph-ease-result-cue { margin: 5px 0 0; font-size: .86em; line-height: 1.45; }
.ph-pdi .ph-ease-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ph-pdi .ph-ease-reasons > b { flex-basis: 100%; }
.ph-pdi .ph-ease-required { margin-block: 12px; }
.ph-pdi .ph-ease-recorded { border-left: 3px solid currentColor; padding-left: 10px; }
.ph-pdi .ph-ease-required .sh-in { max-width: 100%; width: 100%; min-height: 44px; }
.ph-pdi .ph-ease-instructions > summary { font-weight: 700; }
.ph-pdi .ph-ease-reasons .btn { min-height: 44px; white-space: normal; }
.ph-pdi .ph-ease-identity > summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; cursor: pointer; min-height: 44px; }
.ph-pdi .ph-ease-identity > .ph-card { border: 0; margin: 12px 0 0; padding: 0; }
.ph-pdi .ph-meter .ph-bar i { background: var(--muted, #68716d); }
.ph-pdi .ph-seg { flex-wrap: wrap; max-width: 100%; }
.ph-pdi .ph-secs { grid-template-columns: minmax(0, 1fr); }
.ph-pdi .ph-sec, .ph-pdi .ph-card, .ph-pdi .ph-field, .ph-pdi .ph-item-t { min-width: 0; overflow-wrap: anywhere; }
.ph-pdi .ph-item-name { flex-wrap: wrap; }
.ph-pdi .ph-how-tag { white-space: normal; }
.ph-pdi .pp-add { min-width: 0; max-width: 100%; }
.ph-pdi .ph-sec > summary { flex-wrap: wrap; }
.ph-pdi .ph-s { min-width: max-content; min-height: 44px; flex: 1 1 5.5rem; white-space: nowrap; overflow-wrap: normal; }
.ph-pdi .ph-how input, .ph-pdi .ph-how textarea { min-width: 0; max-width: 100%; }
.ph-pdi :is(h1,h2,h3,p,summary) { overflow-wrap: anywhere; }
.ph-pdi [hidden] { display: none !important; }
.ph-pdi .ph-optional { min-width: 0; max-width: 100%; grid-column: 1 / -1; }
.ph-pdi .ph-optional > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.ph-pdi .ph-pdi-context .btn, .ph-pdi .ph-how .btn { min-height: 44px; white-space: normal; max-width: 100%; }
.ph-pdi :is(.ph-card,.ph-sec,.ph-item) { scroll-margin-top: 10rem; }
.ph-pdi .ph-rep-mark { width: 4.5rem; overflow-wrap: anywhere; }
.ph-pdi .pw-sec-h, .ph-pdi .pw-row { grid-template-columns: minmax(0, 1fr) repeat(5, minmax(0, 2.2rem)); }
.ph-pdi .pw-sec-h span { overflow-wrap: anywhere; }
body:has(.ph-pdi, .cl-pdi-join) .topbar-inner, body:has(.ph-pdi, .cl-pdi-join) .topbar-tools { flex-wrap: wrap; min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  body:has(.ph-pdi, .cl-pdi-join) .nav { display: flex; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; gap: 0; max-width: 100%; }
  body:has(.ph-pdi, .cl-pdi-join) .nav > a { flex: 1 0 4rem; min-width: 4rem; white-space: normal; }
  body:has(.ph-pdi, .cl-pdi-join) .nav-label { white-space: normal; overflow-wrap: normal; }
  body:has(.ph-pdi, .cl-pdi-join) .acct-btn { height: auto; min-height: 44px; white-space: normal; }
  body:has(.ph-pdi, .cl-pdi-join) .foot-cols { grid-template-columns: minmax(0, 1fr); }
  body:has(.ph-pdi, .cl-pdi-join) .foot :is(a,p,b,span) { overflow-wrap: anywhere; min-width: 0; }
}
@media print {
  .ph-pdi .pw-sec-h, .ph-pdi .pw-row { grid-template-columns: minmax(0, 1fr) repeat(5, 7.2mm); }
}
