/* Build Co project portal (portal.buildco.app). Self-contained: this site is deployed on its own, so it shares no files
 * with the staff tools. Mobile first; dark, as the other Build Co surfaces. */
:root {
    --orange: #FF6B00; --bg: #121212; --card: #1E1E1E; --ink: #0A0A0A; --line: #2A2A2A; --field: #3A3A3A;
    --text: #FFFFFF; --muted: #BFBFBF; --green: #19b56b; --red: #ff6b6b; --amber: #FFB700;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
.pt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; background: var(--ink); border-bottom: 3px solid var(--orange); }
.pt-logo { height: 28px; width: auto; display: block; }
.pt-sub { font-size: 11px; font-weight: 800; letter-spacing: 0.24em; color: var(--muted); }
.pt-who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.pt-who span { overflow-wrap: anywhere; }
#pt-app { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 18px 16px 32px; min-width: 0; }
.pt-foot { text-align: center; color: #8c8c8c; font-size: 12px; padding: 14px 16px; }
.pt-screen { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
.pt-muted { color: var(--muted); }
.pt-small { font-size: 13px; }
.pt-mono { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12px; }
.pt-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 14px 16px; min-width: 0; overflow-wrap: anywhere; }
.pt-card.pt-resume { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.pt-card h2 { margin-bottom: 4px; }
.pt-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pt-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--field); color: var(--muted); white-space: nowrap; }
.pt-tag.pt-hot { color: var(--orange); border-color: var(--orange); }
.pt-msg { border-left: 4px solid var(--amber); background: var(--card); padding: 12px 14px; border-radius: 6px; overflow-wrap: anywhere; }
.pt-msg.pt-bad { border-left-color: var(--red); }
.pt-err { color: var(--red); font-weight: 600; margin: 8px 0 0; overflow-wrap: anywhere; }
.pt-err:empty, .pt-ok:empty { display: none; }
.pt-ok { color: var(--green); margin: 8px 0 0; }
.pt-btn { appearance: none; font: inherit; font-weight: 700; font-size: 14px; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--field); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pt-btn:hover { border-color: var(--orange); }
.pt-btn.pt-primary { background: var(--orange); border-color: var(--orange); color: #121212; }
.pt-btn.pt-small { min-height: 36px; padding: 4px 12px; font-size: 13px; }
.pt-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pt-btn:focus-visible, .pt-field input:focus-visible, .pt-field textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pt-stack { display: flex; flex-direction: column; gap: 10px; }
.pt-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pt-field input, .pt-field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--field); background: var(--ink); color: var(--text); width: 100%; min-width: 0; }
.pt-versions { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.pt-versions h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange); margin-bottom: 6px; }
.pt-version { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.pt-version:first-of-type { border-top: 0; }
.pt-back { align-self: flex-start; }
.pt-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pt-group-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange); margin-top: 6px; }
.pt-sheet h2 { font-size: 16px; }
.pt-sheet-no { color: var(--orange); font-size: 14px; }
.pt-card.pt-superseded { border-left-color: var(--red); opacity: 0.92; }
.pt-tag.pt-old { color: var(--red); border-color: var(--red); white-space: normal; }
.pt-tag.pt-wait { color: var(--orange); border-color: var(--orange); white-space: normal; }
.pt-warn { margin: 0; }
/* Transmittals (PM stage 5) */
.pt-tr-message { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-tr-items { list-style: none; margin: 10px 0 0; padding: 0; }
.pt-tr-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.pt-tr-what { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.pt-tr-open { display: flex; align-items: center; gap: 10px; }
.pt-tr-ack { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pt-tr-note { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.pt-tag.pt-ok-tag { color: var(--green); border-color: var(--green); }
/* RFIs (PM stage 6) */
.pt-field textarea { resize: vertical; line-height: 1.4; }
.pt-rfi-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pt-rfi-q { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.pt-rfi-q .pt-tr-message { margin: 6px 0 0; }
.pt-rfi-ref { margin-top: 6px; min-width: 0; }
.pt-rfi-ref .pt-tr-item { border-top: 0; }
.pt-rfi-sup { margin: 4px 0 0; }
.pt-rfi-earlier { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.pt-rfi-earlier summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--orange); min-height: 36px; display: flex; align-items: center; }
.pt-rfi-round { padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.pt-rfi-round:first-of-type { border-top: 0; }
.pt-rfi-response { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--field); min-width: 0; }
/* Notices (PM correspondence) */
.pt-nt-clause { margin: 8px 0 0; }
.pt-nt-body { margin: 10px 0 0; padding: 10px 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.pt-nt-signed { margin: 8px 0 0; }
@media (max-width: 560px) {
    #pt-app { padding: 14px 16px 28px; }
    .pt-btn { width: 100%; }
    .pt-btn.pt-small { width: auto; }
    .pt-who { margin-left: 0; width: 100%; justify-content: space-between; }
    .pt-row > .pt-btn { width: 100%; }
    .pt-tr-open { width: 100%; justify-content: space-between; }
    .pt-tr-open .pt-btn.pt-small { min-height: 44px; }
}
.quality-photo-panel img { display:block;max-width:100%;height:auto; }
.quality-photo-panel label { display:block;margin:.6rem 0; }
.quality-photo-panel input[type=file] { max-width:100%; }
/* To do (PM stage 12) */
.pt-todo-item h3 { font-size: 16px; margin-bottom: 4px; }
.pt-todo-item p { margin: 4px 0 0; }
.pt-todo-what { flex: 1 1 220px; min-width: 0; }
