/* Job collaboration uses the existing RemodelFlow colors and controls. */
.portal-container { max-width: 840px; margin: 0 auto; }
.portal-page { font-family: system-ui, -apple-system, sans-serif; padding: 28px 16px 40px; }
.portal-brand { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 24px; }
.portal-brand img { width: 70px; max-height: 80px; object-fit: contain; }
.portal-brand h1 { font: 700 clamp(1.3rem,4vw,2rem)/1.3 system-ui,sans-serif; }
.portal-brand p a { display: inline-block; margin: 8px 4px 0; }
.portal-brand .btn { width: auto; }
.portal-hero { background: var(--bg-dark); color: white; border-radius: 18px; padding: clamp(20px,5vw,36px); margin-bottom: 24px; }
.portal-hero h2 { font-size: clamp(1.5rem,5vw,2.1rem); margin: 12px 0; }
.portal-eyebrow { letter-spacing: .14em; font-size: .7rem; color: #e0c693; }
.portal-stage { display: inline-block; border: 1px solid #6f644d; padding: 6px 12px; border-radius: 18px; background: #ffffff09; }
.portal-next { margin: 22px 0; border-top: 1px solid #ffffff25; padding-top: 18px; }
.portal-next p { margin-top: 6px; }
.portal-hero .hint { color: #c8cdd3; }
.portal-milestones { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.portal-milestones span { display: inline-block; margin-right: 8px; color: #dfc58e; }
.portal-milestones .done { color: #d8e9dc; }
.portal-identity { padding: 18px 0 24px; }
.portal-identity input { max-width: 360px; background: white; }
.portal-feed-tabs { display: flex; gap: 8px; margin: 18px 0; }
.portal-feed-tabs .btn { width: auto; flex: 1; }
.portal-post { border: 1px solid var(--border); background: white; border-radius: 14px; padding: 20px; margin-bottom: 18px; overflow-wrap: anywhere; }
.portal-post-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.portal-role { font-weight: 500; font-size: .68rem; background: var(--cream); color: var(--text-muted); padding: 3px 7px; border-radius: 10px; margin-left: 7px; display: inline-block; }
.portal-post time { font-size: .72rem; color: var(--text-muted); }
.portal-body { white-space: pre-wrap; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.portal-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.portal-media-grid:empty { display: none; }
.portal-media-grid img,.portal-media-grid video { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 10px; background: #f0eeea; }
.portal-media-grid video { object-fit: contain; background: #171c22; }
.portal-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; font-size: .8rem; }
.portal-post-actions [aria-pressed=true] { color: var(--green); }
.portal-comment { margin-top: 12px; border-left: 3px solid var(--border); padding: 6px 0 6px 12px; }
.portal-comment strong { font-size: .8rem; }
.portal-comment .portal-body { margin: 6px 0; }
.portal-reply { margin-top: 14px; }
.portal-reply summary,.portal-settings summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.portal-reply form { margin-top: 10px; }
.portal-reply button { width: auto; padding-left: 22px; padding-right: 22px; }
.portal-settings { padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--cream); margin-bottom: 20px; }
.portal-settings form { margin: 12px 0; }
.portal-settings label,.portal-compose label { margin-top: 12px; }
.portal-settings .hint { line-height: 1.6; margin: 10px 0; }
.portal-settings .check-inline { align-items: flex-start; line-height: 1.5; }
.portal-settings .check-inline input { flex: 0 0 16px; margin-top: 3px; }
.portal-review { border-left: 3px solid var(--gold); padding: 14px 18px; margin: 14px 0; white-space: pre-wrap; background: white; line-height: 1.6; overflow-wrap: anywhere; }
.portal-review footer { color: var(--text-muted); font-size: .85rem; margin-top: 8px; }
.portal-footer { text-align: center; font-size: .75rem; color: var(--text-muted); padding: 32px 0 10px; }
.portal-refresh-note { text-align: center; padding-top: 14px; }
.portal-status { line-height: 1.6; margin-bottom: 12px; color: var(--text-muted); }
.portal-status:empty { display: none; }
.portal-welcome { padding: 26px; text-align: center; max-width: 650px; margin: 0 auto; }
.portal-welcome p { line-height: 1.6; margin: 15px 0 20px; }
.portal-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin: 20px 0; }
.portal-toolbar .btn { width: auto; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.portal-actions .btn { flex: 1; width: auto; min-width: 110px; }
.portal-link-card { background: var(--cream); padding: 18px; border-radius: 12px; margin-bottom: 18px; }
.portal-disabled { pointer-events: none; opacity: .5; }
.portal-milestone-edit { display: grid; grid-template-columns: 20px 1fr 28px; gap: 8px; align-items: center; margin-bottom: 8px; }
.portal-milestone-edit input[type=checkbox] { width: 16px; }
.portal-photo-picker { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 10px; padding: 10px 0; }
.portal-photo-picker label { position: relative; }
.portal-photo-picker img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.portal-photo-picker input { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; }
.portal-photo-picker span { display: block; overflow-wrap: anywhere; }
.portal-compose { margin-top: 20px; }
.portal-compose details { margin: 12px 0; }
.portal-empty { padding: 24px; text-align: center; }
.portal-permission { line-height: 1.6; margin: 12px 0; color: var(--green); }
.portal-showcase-job { padding: clamp(18px,5vw,30px); border-radius: 16px; background: white; border: 1px solid var(--border); margin: 20px 0; }
.portal-showcase-job .portal-media-grid img,.portal-showcase-job .portal-media-grid video { height: 260px; }
#jobFolderTabs { display: flex; flex-wrap: wrap; }
#jobFolderTabs .btn { flex: 1; min-width: 95px; width: auto; }
@media(max-width:500px) { .portal-post { padding: 15px; } .portal-media-grid { grid-template-columns: 1fr; } .portal-toolbar { flex-direction: column; } .portal-settings { padding: 12px; } .portal-page { padding: 18px 12px 30px; } .portal-brand { align-items: flex-start; } }

.change-order-totals{display:grid;gap:8px;margin:16px 0}.change-order-totals span{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.change-order-totals span:last-child{border-top:1px solid #d5d9d7;padding-top:12px;font-size:1.1rem}.change-order p{overflow-wrap:anywhere}.change-order form details{margin:12px 0}.change-order .portal-actions{margin-top:12px}
