/* Hosting for the client on a project's page (console/project-hosting.js, docs/PROJECTS.md §4e). Flat: hairlines, no
   boxed cards; one column at 375 px. Sits beside the folded Money section and uses its summary (.pj-money). */
.ph > summary small { font-weight: 400; color: var(--text-3); }
.ph-empty { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ph-empty p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 70ch; }
.ph-small { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
.ph-warn { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 8px 0 8px 10px; border-left: 2px solid var(--warn); font-size: 12.5px; color: var(--text-2); }
.ph-warn .mi-ic { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--warn); }
.ph-warn a { color: var(--text); }
.ph-terms { margin-top: 12px; }
.ph-t1 { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.ph-t1 .sp, .ph-acts .sp { flex: 1; }
.ph-figs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.ph-figs b { color: var(--text); font-variant-numeric: tabular-nums; }
.ph-next { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.ph-k { margin-top: 18px; }
.ph-us { border-top: 1px solid var(--line); }
.ph-u { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(60px, 160px) 6.5rem; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ph-un { color: var(--text-2); }
.ph-uv { color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.ph-uv small { color: var(--text-3); }
.ph-ua { text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ph-tot .ph-un { color: var(--text); font-weight: 600; }
.ph-bar { position: relative; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ph-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ok); border-radius: 2px; }
.ph-bar.over i { background: var(--warn); }
.ph-bar.none { background: transparent; }
.ph-arts { margin-top: 8px; font-size: 12.5px; }
.ph-arts > summary, .ph-lines > summary, .ph-more > summary { cursor: pointer; color: var(--text-2); font-size: 12.5px; }
.ph-arts .pj-mtask { font-size: 12.5px; }
.ph-sts { border-top: 1px solid var(--line); }
.ph-st { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ph-st1 { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text); }
.ph-st1 .ph-ua { margin-left: auto; }
.ph-chip { font-size: 11.5px; padding: 1px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.ph-chip.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }
.ph-chip.warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); }
.ph-chip.bad { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); }
.ph-chip.dim { color: var(--text-3); }
.ph-st .ph-small a { color: var(--text-2); }
.ph-lines { margin-top: 4px; }
.ph-lines .pj-ml { font-size: 12.5px; }
.ph-err { margin: 6px 0 0; font-size: 12.5px; color: var(--bad); }
.ph-acts { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ph-box { margin-top: 8px; }
/* The form: a rule on the left, as the task's money forms (task-money.css .pm-form). */
.ph-form { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.ph-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.ph-form label[hidden], .ph-form [hidden] { display: none; }
.ph-form input:not([type=checkbox]):not([type=radio]), .ph-form select { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 7px 9px; color: var(--text); font: 13.5px var(--sans); min-width: 0; width: 100%; box-sizing: border-box; }
.ph-form input[aria-invalid=true] { border-color: var(--bad); }
.ph-form small { color: var(--text-3); font-size: 11.5px; }
.ph-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ph-form legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; color: var(--text-2); }
.ph-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ph-kind { flex-direction: row !important; align-items: flex-start; gap: 8px !important; padding: 10px 10px 10px 0; cursor: pointer; }
.ph-kind + .ph-kind { border-left: 1px solid var(--line); padding-left: 10px; }
.ph-kind input { margin-top: 3px; accent-color: var(--text); }
.ph-kind b { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.ph-kind small { display: block; margin-top: 2px; line-height: 1.4; }
.ph-kind:has(input:checked) b { text-decoration: underline; text-underline-offset: 3px; }
.ph-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ph-cur { max-width: 9rem; }
.ph-mon { max-width: calc(50% - 6px); } /* a price, not a sentence: half the form, as a unit's price below */
.ph-units { border-top: 1px solid var(--line); }
.ph-uh, .ph-ur { display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.ph-uh { color: var(--text-3); font-size: 11.5px; }
.ph-ur > span { padding-top: 8px; color: var(--text); }
.ph-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; line-height: 1.45; }
.ph-check input { margin-top: 3px; flex: none; accent-color: var(--text); }
.ph-more { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.ph-more[open] > summary { margin-bottom: 10px; }
.ph-more .ph-row2 + .ph-row2 { margin-top: 10px; }
.ph-send { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ph-end { color: var(--bad); }
@media (max-width: 640px) {
  .ph-u { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "v v" "b b"; gap: 4px 12px; }
  .ph-u .ph-un { grid-area: n; } .ph-u .ph-ua { grid-area: a; } .ph-u .ph-uv { grid-area: v; } .ph-u .ph-bar { grid-area: b; }
  .ph-u .ph-bar.none { display: none; }
  .ph-tot > span:nth-child(3) { display: none; }
  .ph-kinds { grid-template-columns: 1fr; }
  .ph-kind + .ph-kind { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .ph-row2 { grid-template-columns: 1fr; }
  .ph-cur, .ph-mon { max-width: none; }
  .ph-uh { display: none; }
  .ph-ur { grid-template-columns: 1fr 1fr; }
  .ph-ur > span { grid-column: 1 / -1; padding-top: 2px; font-weight: 600; }
  .ph-ur .sr { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; color: var(--text-3); font-size: 11.5px; }
}
/* The client's saved card (charge_automatically): a hairline above, the link wraps at phone width. */
.ph-card { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ph-card .ph-small { margin: 0; }
.ph-link { overflow-wrap: anywhere; }
