.hub-page{font-size:15px}.hub-page .actions{flex-wrap:wrap}.hub-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:26px}.hub-project-card{min-width:0;overflow-wrap:anywhere}.hub-project-card h2{font-size:22px;margin:20px 0}.hub-card-top,.hub-section-head,.hub-progress-label{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.hub-new{background:#F3F4F6;color:#2B2D42;border-radius:18px;padding:6px 12px;font-size:13px;font-weight:700}.hub-card-link{color:#2B2D42;font-weight:700}.hub-project-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hub-project-card dt{color:#2B2D42;font-size:13px}.hub-project-card dd{margin:6px 0;font-size:17px;font-weight:700}.hub-page progress{width:100%;height:10px;accent-color:#2B2D42;margin:12px 0}.hub-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#2B2D42;color:#F3F4F6;border-radius:20px;padding:26px;gap:22px;margin-bottom:24px}.hub-metrics>div{display:flex;flex-direction:column;gap:9px;min-width:0}.hub-metrics span,.hub-metrics small{font-size:13px;opacity:.86}.hub-metrics strong{font-size:24px;overflow-wrap:anywhere}.hub-shortcuts{margin-bottom:30px}.hub-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}.hub-main{min-width:0}.hub-main>section,.hub-main>.amount-notices{margin-bottom:34px}.hub-main h2{font-size:23px}.hub-plan{margin:18px 0;padding:0;overflow:hidden}.hub-plan>summary{padding:22px;cursor:pointer;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.hub-plan>summary span{font-size:13px;color:#2B2D42}.hub-plan-content{padding:0 22px 22px}.hub-plan-content h3{margin-top:25px;font-size:18px}.hub-plan-content .table-scroll{max-width:100%}.hub-plan-content table{min-width:520px}.hub-plan-content .pd-floorplan-grid{grid-template-columns:1fr}.hub-file-name{overflow-wrap:anywhere;color:#2B2D42}.hub-phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hub-phases>div{border:1px solid #F3F4F6;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:14px}.hub-phases small{color:#2B2D42}.hub-phases .done{background:#F3F4F6}.hub-phases .current{border-color:#2B2D42;background:#F3F4F6;font-weight:700}.hub-total{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px;background:#F3F4F6;border-radius:10px}.hub-total strong{font-size:22px;color:#2B2D42}.hub-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.hub-photo-grid figure{margin:0;min-width:0}.hub-photo-button{padding:0;border:0;background:transparent;width:100%;cursor:zoom-in}.hub-photo-button img{display:block;width:100%;height:150px;object-fit:contain;background:#F3F4F6;border-radius:10px}.hub-photo-grid figcaption{font-size:12px;color:#2B2D42;overflow-wrap:anywhere}.hub-photo-grid .hub-photo-large{grid-column:1/-1}.hub-photo-large img{height:auto;max-height:75vh}.hub-result{margin:18px 0;overflow-wrap:anywhere}.hub-result p,.hub-result .record p{font-size:15px;line-height:1.85}.hub-result h3{font-size:20px}.hub-result h4{margin-top:22px}.hub-chat{position:sticky;top:18px;padding:22px;min-width:0;scroll-margin-top:110px}.hub-chat h2{font-size:22px}.hub-chat>p{font-size:14px;line-height:1.7}.hub-chat-log{height:340px;overflow-y:auto;overscroll-behavior:contain;background:#F3F4F6;border-radius:14px;padding:12px;margin:16px 0;display:flex;flex-direction:column;gap:14px;scrollbar-gutter:stable}.hub-message{align-self:flex-start;max-width:94%;min-width:0}.hub-message.mine{align-self:flex-end}.hub-message header{display:flex;flex-wrap:wrap;gap:4px 10px;background:none;position:static;border:0;font-size:11px;color:#2B2D42;padding:0;margin-bottom:5px}.hub-message p{background:#F3F4F6;border:1px solid #F3F4F6;border-radius:12px;padding:12px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.65}.hub-message.mine p{background:#2B2D42;color:#F3F4F6;border-color:#2B2D42}.hub-chat textarea{width:100%;min-width:0;max-width:100%;font-size:16px}.hub-chat-status{color:#2B2D42;min-height:0}.hub-chat .form-error{overflow-wrap:anywhere}.hub-chat-inbox-card{display:flex;justify-content:space-between;gap:20px;align-items:center;overflow-wrap:anywhere}.hub-legacy>summary{cursor:pointer;font-weight:700}.hub-legacy>.wrap{padding:18px 0;width:100%;max-width:100%}.hub-legacy .form-layout{display:block}.hub-legacy .timeline{display:flex;flex-wrap:wrap}.hub-legacy .panel{padding:16px}.hub-main section{scroll-margin-top:100px}@media(max-width:1000px){.hub-layout{grid-template-columns:minmax(0,1fr) 320px}.hub-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.hub-project-grid,.hub-layout{grid-template-columns:1fr}.hub-chat{position:static;grid-row:1}.hub-metrics{padding:20px;gap:20px 14px}.hub-metrics strong{font-size:21px}.hub-plan-content{padding:0 16px 16px}.hub-result{padding:20px}.hub-project-card dl{grid-template-columns:1fr}.hub-chat-log{height:300px}.hub-phases>div{padding:10px;font-size:13px}.hub-chat-inbox-card{align-items:flex-start;flex-direction:column}.hub-plan>summary{padding:18px}.hub-shortcuts .btn{font-size:14px}.hub-legacy .form-layout,.hub-legacy .list{min-width:0}.hub-legacy .estimate-paper{min-width:0}}

.hub-chat [hidden]{display:none!important}.hub-chat{top:110px}.hub-plan-content .post-body{overflow-wrap:anywhere}

.admin-chat-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:20px;align-items:start}.admin-chat-customers,.admin-chat-room{min-width:0;padding:20px}.admin-chat-customers [data-chat-inbox]{max-height:660px;overflow-y:auto}.admin-chat-customer{display:flex;flex-direction:column;gap:8px;width:100%;padding:16px;border:1px solid #F3F4F6;border-radius:12px;background:#F3F4F6;text-align:left;font:inherit;font-size:15px;color:#2B2D42;cursor:pointer;margin-bottom:10px;overflow-wrap:anywhere}.admin-chat-customer.active{background:#F3F4F6;border-color:#2B2D42;box-shadow:inset 3px 0 #2B2D42}.admin-chat-customer>span:not(.admin-chat-name),.admin-chat-customer small{color:#2B2D42;font-size:13px}.admin-chat-name{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:17px;font-weight:700}.admin-chat-room-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;border-bottom:1px solid #F3F4F6;padding-bottom:15px}.admin-chat-room-heading h3{margin:0;font-size:22px}.admin-chat-room-heading p{margin:8px 0;overflow-wrap:anywhere}.admin-chat-room .hub-chat{position:static;border:0;box-shadow:none;padding:16px 0 0;margin:0}.admin-chat-room .hub-chat-log{height:380px}.admin-chat-room .hub-chat>p{font-size:15px}.admin-chat-room .hub-chat .hub-section-head{display:none}@media(max-width:900px){.admin-chat-layout{grid-template-columns:1fr}.admin-chat-customers [data-chat-inbox]{max-height:240px}.admin-chat-room .hub-chat-log{height:320px}}
/* My construction: individual information cards without an outer frame. */
.hub-list-page{padding-top:32px;padding-bottom:48px}
.hub-list-page>.page-title{padding:26px 28px;border:1px solid #F3F4F6;border-radius:16px;background:#F3F4F6;margin-bottom:20px}
.hub-list-page>.page-title h1{font-size:32px;margin-bottom:14px}
.hub-list-page>.page-title .sub{font-size:16px;line-height:1.8;margin-bottom:0}
.hub-list-page>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 26px}
.hub-list-page>.actions .btn{padding:20px;border-radius:14px;font-size:17px;min-height:64px;text-align:center}
.hub-list-page>.actions .btn.soft{border:1px solid #F3F4F6;background:#F3F4F6}
.hub-list-page>.amount-notices{border:1px solid #F3F4F6;border-radius:16px;padding:26px;background:#F3F4F6;box-shadow:0 4px 16px #2B2D4209}
.hub-list-page .amount-notice{border:1px solid #F3F4F6;border-radius:12px;padding:20px;margin-top:16px;background:#F3F4F6}
.hub-list-page .hub-project-grid{gap:24px;margin-top:26px;align-items:stretch}
.hub-list-page .hub-project-card{border:1px solid #F3F4F6;border-radius:18px;padding:26px;background:#F3F4F6;box-shadow:0 5px 16px #2B2D4210;transition:border-color .15s,box-shadow .15s}
.hub-list-page .hub-project-card:hover{border-color:#2B2D42;box-shadow:0 7px 20px #2B2D4220}
.hub-list-page .hub-project-card h2{line-height:1.55;margin:20px 0}
.hub-list-page .hub-project-card dl{gap:12px;margin:0 0 20px}
.hub-list-page .hub-project-card dl>div{border:1px solid #F3F4F6;border-radius:10px;background:#F3F4F6;padding:15px;min-width:0}
.hub-list-page .hub-project-card dt{font-size:14px}.hub-list-page .hub-project-card dd{line-height:1.6;font-size:18px;margin-top:8px}
.hub-list-page .hub-progress-label{padding-top:4px;font-size:15px}.hub-list-page progress{height:12px}
.hub-list-page .hub-project-card>p{padding:14px 0;border-top:1px solid #F3F4F6;color:#2B2D42;font-size:14px;line-height:1.8}
.hub-list-page .hub-card-link{display:block;padding:14px 16px;border-radius:10px;background:#F3F4F6;text-align:center;font-size:15px}
@media(max-width:760px){.hub-list-page>.page-title{padding:22px 18px}.hub-list-page>.page-title h1{font-size:28px}.hub-list-page>.page-title .sub{font-size:15px}.hub-list-page>.actions{gap:12px;grid-template-columns:1fr}.hub-list-page>.actions .btn{font-size:16px;padding:16px;min-height:56px}.hub-list-page>.amount-notices,.hub-list-page .hub-project-card{padding:20px}.hub-list-page .hub-project-card dl{grid-template-columns:1fr}.hub-list-page .hub-project-grid{gap:18px}.hub-list-page .hub-project-card h2{font-size:21px}.hub-list-page .amount-notice{padding:16px}}
/* Shared screen-only boxes across services, forms, plans and administration. */
@media screen{
#app .page{--box-line:#F3F4F6;--box-soft:#F3F4F6}
#app .page .page-title{padding:24px 26px;border:1px solid var(--box-line);border-radius:16px;background:var(--box-soft);margin-bottom:24px}
#app .page .page-title .sub{line-height:1.85;margin-bottom:0}
#app .page :is(.panel,.card){border-color:var(--box-line);box-shadow:0 4px 14px #2B2D420c;min-width:0}
#app .page .record{border:1px solid #F3F4F6;border-radius:12px;padding:18px;margin:14px 0;background:#F3F4F6}
#app .page .hint{border:1px solid #F3F4F6;border-radius:10px}
#app .page .hint.warn{border-color:#F3F4F6}
#app .page .table-scroll{border:1px solid #F3F4F6;border-radius:12px;background:#F3F4F6}
#app .page .table-scroll table{margin:0}
#app .page form>.field,#app .page form>.two-cols>.field{padding:16px;border:1px solid #F3F4F6;border-radius:12px;background:#F3F4F6;min-width:0}
#app .page form>.check{padding:14px;border:1px solid #F3F4F6;border-radius:10px;background:#F3F4F6;line-height:1.8}
#app .page :is(.pd-caution,.pd-check,.analysis-questions,.issue-evidence){border:1px solid #F3F4F6;border-radius:12px;padding:18px;margin:14px 0;background:#F3F4F6}
#app .page :is(.pd-folder,.pd-intake-form,.pd-risk-admin,.pd-estimate-notes){border:1px solid #F3F4F6;border-radius:14px;padding:20px;margin-top:18px;margin-bottom:18px}
#app .page .pd-phase{border-color:#F3F4F6;border-radius:14px;margin:16px 0}
#app .page :is(.pd-gallery,.hub-photo-grid,.construction-photo-grid)>figure{border:1px solid #F3F4F6;border-radius:12px;padding:10px;background:#F3F4F6;min-width:0}
#app .page .admin-nav{padding:12px;border:1px solid #F3F4F6;border-radius:14px;background:#F3F4F6}
#app .page .admin-nav>a{border:1px solid #F3F4F6;border-radius:9px;margin-bottom:8px}
#app .page .admin-nav>a.active{border-color:#2B2D42}
#app .page .review-board-row{border:1px solid #F3F4F6;border-radius:12px;padding:18px;margin:12px 0;background:#F3F4F6}
#app .page :is(.form-layout,.two-cols,.cards,.list,.admin-content,.hub-main){min-width:0}
#app .page .actions{flex-wrap:wrap;gap:10px}
#app .page .hub-message header{border:0;background:none;box-shadow:none}
}
@media screen and (max-width:760px){
#app .page .page-title{padding:20px 18px}
#app .page form>.field,#app .page form>.two-cols>.field{padding:13px}
#app .page :is(.record,.pd-caution,.pd-check,.pd-folder,.pd-intake-form,.pd-risk-admin,.pd-estimate-notes){padding:15px}
#app .page .review-board-row{padding:14px}
}
@media screen{
#app .page :is(.hub-photo-grid,.pd-folder>.pd-gallery){grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:18px;align-items:start}
#app .page :is(.hub-photo-grid,.pd-gallery)>figure{padding:14px;border:1px solid #F3F4F6;border-radius:14px;background:#F3F4F6;box-shadow:0 3px 12px #2B2D420c}
#app .page :is(.hub-photo-button,.pd-photo-view){display:block;width:100%;border:1px solid #F3F4F6;border-radius:10px;overflow:hidden;background:#F3F4F6}
#app .page :is(.hub-photo-button,.pd-photo-view) img{height:220px;width:100%;object-fit:contain}
#app .page .hub-photo-large img,#app .page .pd-photo-large img{height:auto;max-height:75vh}
#app .page :is(.hub-photo-grid,.pd-gallery) figcaption{padding:0;margin-top:12px;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.photo-info-box,.photo-note-box{border:1px solid #F3F4F6;border-radius:9px;padding:12px;margin-top:10px;background:#F3F4F6}
.photo-info-box b,.photo-info-box span,.photo-note-box b{display:block}.photo-info-box b,.photo-note-box b{font-size:13px;color:#2B2D42;margin-bottom:6px}.photo-note-box p{margin:0;white-space:pre-wrap;color:#2B2D42;font-size:14px}
#app .page :is(.pd-photo-send,.pd-review-results){border:1px solid #F3F4F6;border-radius:12px;padding:18px;margin-top:20px;background:#F3F4F6}
#app .page .pd-review-results>h4{margin:0 0 16px;font-size:19px}
#app .page .hub-result{border:1px solid #F3F4F6;border-radius:16px;padding:22px;margin:22px 0}
#app .page .hub-result>.post-body,#app .page .hub-result>.record,#app .page .pd-review-results>.record{border:1px solid #F3F4F6;border-radius:12px;background:#F3F4F6;padding:18px;line-height:1.9}
#app .page .hub-result>h4{border-top:1px solid #F3F4F6;padding-top:18px;margin-top:24px}
}
@media screen and (max-width:760px){#app .page :is(.hub-photo-grid,.pd-folder>.pd-gallery){grid-template-columns:1fr}#app .page :is(.hub-result,.pd-photo-send,.pd-review-results){padding:16px}#app .page :is(.hub-photo-button,.pd-photo-view) img{height:230px}}
@media screen{#app .page .hub-photo-grid .hub-photo-large,#app .page .pd-gallery .pd-enlarged{grid-column:1/-1}#app .page .hub-photo-grid .hub-photo-large img,#app .page .pd-gallery .pd-enlarged img{height:auto;max-height:75vh}}
@media screen{
#app .page .hub-description-box{border:1px solid #F3F4F6;border-radius:14px;padding:20px;margin:22px 0;background:#F3F4F6}
#app .page .hub-description-box>h3{margin:0 0 16px;font-size:19px;color:#2B2D42}
#app .page .hub-description-item{border:1px solid #F3F4F6;border-radius:10px;padding:16px;margin:12px 0;background:#F3F4F6}
#app .page .hub-description-item h4{font-size:16px;margin:0 0 10px}
#app .page .hub-description-item p,#app .page .hub-description-box>.post-body{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
#app .page .hub-evidence{border:1px solid #F3F4F6;background:#F3F4F6;padding:12px;border-radius:8px;margin-top:14px}
#app .page .hub-evidence>b{font-size:13px;color:#2B2D42}
#app .page .hub-result .analysis-questions{list-style:none;padding:0;border:0;background:transparent}
#app .page .hub-result .analysis-questions>li{padding:16px;border:1px solid #F3F4F6;border-radius:10px;background:#F3F4F6;margin:12px 0;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
#app .page .hub-result>p:not(.meta),#app .page .hub-result .record>.post-body{border:1px solid #F3F4F6;border-radius:10px;padding:16px;background:#F3F4F6;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
}
@media screen and (max-width:760px){#app .page .hub-description-box{padding:15px}#app .page .hub-description-item{padding:13px}}

/* Keep input and reading position stable while new chat messages arrive. */
.admin-chat-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.admin-chat-filters button{padding:9px 10px;background:#F5F6F8;border:1px solid #8a9a90;border-radius:6px;color:#2B2D42;cursor:pointer;font-size:14px}
.admin-chat-filters button[aria-pressed=true]{background:#2B2D42;color:#fff;border-color:#2B2D42}
.admin-chat-group{margin:18px 0}.admin-chat-group h3{font-size:16px;border-bottom:1px solid #8a9a90;padding-bottom:8px}
.admin-chat-group h3 span{font-size:13px;margin-left:6px}
.hub-chat-consultation{padding:12px 14px;background:#e7eee5;border:1px solid #a0b29f;color:#2B2D42;border-radius:6px;font-weight:700;font-size:15px}
.hub-chat-consultation[data-mode=human]{background:#e0eaf0;color:#183d57;border-color:#a2bacb}
.hub-message[data-sender-role=ai]{border-left:3px solid #4A4D66;background:#edf2e8}
.hub-message[data-sender-role=system]{background:#f2eee3;border-left:3px solid #a79464}
.hub-chat-log{overflow-anchor:none;}
.hub-list-explanation{margin:20px 0;}
.hub-project-card .meta{overflow-wrap:anywhere;}
.record-tabs{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.record-tabs .btn{flex:1;text-align:center;min-width:180px}
.record-detail>.record-actions{margin-bottom:20px}.record-detail [data-record-chat-slot]{margin-bottom:24px}.record-detail [data-record-chat-slot] .hub-chat{position:static;max-width:850px}
.record-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.record-metrics small{display:block;margin-top:8px;line-height:1.7}
.hub-description-box>summary{font-size:17px;font-weight:700;cursor:pointer;padding:5px 0}.hub-description-box[open]>summary{margin-bottom:18px}
.escrow-signature{display:block;width:100%;max-width:600px;height:auto;background:#F3F4F6;border:1px solid #F3F4F6;border-radius:12px}
.record-estimate-result{margin:24px 0}.record-estimate-result>h2{font-size:22px}
@media(max-width:760px){.record-tabs{gap:8px}.record-tabs .btn{min-width:0;flex-basis:100%;font-size:15px}.record-metrics{grid-template-columns:1fr}.record-detail .hub-chat{width:100%;box-sizing:border-box}}

/* Source wording is kept beside its estimate item rather than in a separate fold. */
.hub-quote-inline-note{margin-top:10px;padding-top:8px;border-top:1px solid #e5e7eb;white-space:normal;min-width:180px}
.hub-quote-inline-note b{font-size:12px;color:#687182}
.hub-quote-inline-note p{margin:4px 0 0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.hub-total>small{display:block;margin-top:4px;font-weight:400}
