/* Account, customer portal, and owner workspace. */
.portal-shell{max-width:1440px;margin:0 auto;padding:54px var(--gutter) 82px;min-height:65vh}.portal-toolbar,.portal-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;margin-bottom:34px}.portal-heading{max-width:750px}.portal-heading .eyebrow{margin-bottom:17px}.portal-heading h1{font-size:clamp(38px,4.5vw,61px);line-height:1.1}.portal-heading h1 em{color:#6e815d}.portal-heading>p:not(.eyebrow){margin-top:20px;max-width:570px}.portal-toolbar>.portal-actions,.portal-topbar>.portal-actions{padding-top:10px;justify-content:flex-end}.portal-actions,.portal-inline{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.portal-actions>.portal-muted{max-width:250px}.portal-stack{display:flex;flex-direction:column;gap:22px;min-width:0}.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.portal-card,.portal-panel{min-width:0;background:#fffefa;border:1px solid var(--line);border-radius:4px;padding:30px}.portal-card h2,.portal-panel h2{font-size:27px;font-weight:600;line-height:1.2}.portal-card h3,.portal-panel h3{font-size:20px;line-height:1.3}.portal-card .eyebrow,.portal-panel .eyebrow{font-size:9px;margin-bottom:12px}.portal-card>p+.portal-actions,.portal-card>p+.button,.portal-panel>p+.portal-actions{margin-top:24px}.portal-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.portal-section-heading>div{min-width:0}.portal-section-heading h2,.portal-section-heading h3{overflow-wrap:anywhere}.portal-muted{color:var(--muted);font-size:13px;line-height:1.85}.portal-small{font-size:11px!important}.portal-meta{font-size:11px;line-height:1.8;color:var(--muted)}.portal-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.portal-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#e9eedc;color:#4b603e;border-radius:3px;padding:5px 9px;font-size:10px;line-height:1.5;font-weight:600;letter-spacing:.025em}.portal-badge[data-status=complete],.portal-badge[data-status=approved]{background:#dcead5;color:#2b5835}.portal-badge[data-status=declined]{background:#f1e4dc;color:#864a32}.portal-badge[data-status=pending],.portal-badge[data-status=requested]{background:#efeadc;color:#76613a}.portal-badge[data-status=in_review]{background:#e8ebf2;color:#516078}.portal-button-secondary{background:transparent;color:var(--ink);border-color:#b8c3ad}.portal-button-secondary:hover{background:#eef0e6}.portal-link-button{background:none;border:0;padding:3px 0;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:4px}.portal-form{display:flex;flex-direction:column;gap:19px;margin-top:24px}.portal-form label,.portal-field{display:block;font-size:12px;font-weight:600;line-height:1.7;color:var(--ink)}.portal-form input:not([type=checkbox]),.portal-form select,.portal-form textarea,.portal-field input:not([type=checkbox]),.portal-field select,.portal-field textarea{display:block;box-sizing:border-box;width:100%;min-width:0;border:1px solid #cdd5c4;background:#fffefa;border-radius:3px;color:var(--ink);padding:11px 13px;margin-top:7px;font-size:14px;font-weight:400;line-height:1.55}.portal-form input::placeholder,.portal-form textarea::placeholder{color:#7a8374;opacity:1}.portal-form textarea,.portal-field textarea{resize:vertical;min-height:100px}.portal-form input[type=checkbox],.portal-checklist input[type=checkbox]{width:18px;height:18px;accent-color:var(--forest);flex-shrink:0}.portal-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.portal-form .button{align-self:flex-start}.portal-form small{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:6px}.portal-form-divider{padding-top:24px;border-top:1px solid var(--line);margin-top:26px}.portal-form fieldset{padding:0;margin:0;border:0;min-width:0}.portal-shell button:disabled,.portal-shell input:disabled,.portal-shell select:disabled,.portal-shell textarea:disabled{opacity:.58;cursor:default}.portal-shell button:disabled{transform:none}.portal-status{font-size:13px;line-height:1.8;padding:13px 17px;border:1px solid #d8dfce;background:#edf1e4;border-radius:3px;color:#426039;margin:0 0 22px;overflow-wrap:anywhere}.portal-form>.portal-status,.portal-card>.portal-status,.portal-panel>.portal-status{margin:12px 0 0}.portal-status:empty{display:none}.portal-status[data-tone=error],.portal-status.error,.portal-status.is-error{background:#fbede7;border-color:#e5c5b6;color:#87432f}.portal-status[data-tone=success],.portal-status.success,.portal-status.is-success{background:#eaf2e3;border-color:#cbdcc0;color:#355c2e}.portal-empty{font-size:13px;line-height:1.85;color:var(--muted);padding:24px 0}.portal-empty h2{color:var(--ink);margin-bottom:15px}.portal-welcome{display:flex;gap:35px;align-items:center;padding:35px;background:#e9eddc;border:1px solid #d9dfce;border-radius:3px}.portal-welcome h2{font-size:32px}.portal-welcome p{max-width:560px}.portal-monogram{display:grid;place-items:center;min-width:90px;width:90px;height:112px;background:#d7dfc7;border:1px solid #c1cdb3;color:#5d734e;font-size:16px;letter-spacing:.08em}.portal-project-bar{padding:21px 26px;display:flex;gap:28px;justify-content:space-between;align-items:flex-end}.portal-project-bar>.portal-field{flex:1;max-width:500px}.portal-project-bar>.portal-actions{padding-bottom:1px}.portal-overview{padding-bottom:35px}.portal-overview h2{font-size:32px}.portal-overview>.portal-prewrap{margin-top:13px;max-width:850px}.portal-timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));list-style:none;padding:0;margin:35px 0 0;counter-reset:stages}.portal-timeline li{position:relative;padding:31px 8px 0 0;font-size:11px;color:#7a8273;font-weight:500}.portal-timeline li:before{content:counter(stages);counter-increment:stages;display:grid;place-items:center;position:absolute;top:0;left:0;width:21px;height:21px;background:#fffefa;border:1px solid #c4cebb;border-radius:50%;font-size:9px;color:#7d8c70;z-index:1}.portal-timeline li:not(:last-child):after{content:'';position:absolute;top:10px;left:21px;right:0;height:1px;background:#d2daca}.portal-timeline li.is-complete:before{content:'✓';background:#dfe8cb;border-color:#bdcda8;color:#426035}.portal-timeline li.is-complete:after{background:#aabd8f}.portal-timeline li.is-current{color:var(--ink);font-weight:700}.portal-timeline li.is-current:before{color:var(--lime);background:var(--forest);border-color:var(--forest)}.portal-summary-grid{grid-template-columns:.85fr 1.15fr;align-items:stretch}.portal-date-card{background:var(--forest);color:var(--paper);border-color:var(--forest);position:relative;padding-right:65px}.portal-date-card .eyebrow{color:#c1d299}.portal-date-card h2{font-size:21px;font-weight:500;color:#dce6d2;letter-spacing:-.025em}.portal-date-card .portal-date{font:500 clamp(25px,2.8vw,36px)/1.25 var(--display);letter-spacing:-.035em;margin:22px 0 13px;color:#f1f4e9}.portal-date-card>p:last-child{font-size:12px;color:#bdcdb4;line-height:1.8;white-space:pre-wrap}.portal-calendar-icon{position:absolute;right:26px;top:30px;display:grid;place-items:center;border:1px solid #657c53;width:29px;height:29px;border-radius:50%;color:var(--lime)}.portal-detail-grid{grid-template-columns:1fr 1fr}.portal-list{margin:20px 0 0;padding:0;list-style:none}.portal-list>.portal-item,.portal-list>.portal-message,.portal-list>.portal-document{padding:18px 0;border-top:1px solid var(--line)}.portal-list>.portal-item:first-child,.portal-list>.portal-document:first-child{padding-top:0;border-top:0}.portal-item>.portal-meta+.portal-prewrap{margin-top:10px}.portal-item .portal-section-heading{margin-bottom:8px}.portal-item h3{font-size:16px;letter-spacing:-.025em}.portal-item .portal-prewrap{font-size:13px;line-height:1.85}.portal-update-list{padding-left:14px;margin-left:4px;border-left:1px solid #d3ddc7}.portal-update-list>.portal-item{position:relative;padding-left:10px}.portal-update-list>.portal-item:before{content:'';position:absolute;left:-18px;top:27px;width:7px;height:7px;background:#9caf87;border:2px solid #fffefa;border-radius:50%}.portal-update-list>.portal-item:first-child:before{top:7px}.portal-message-list{max-height:560px;overflow:auto;padding-right:5px;scrollbar-width:thin}.portal-message-list .portal-message{border:0;margin:0 0 15px;padding:17px;background:#f0f1e8;border-radius:3px;margin-right:22px}.portal-message-list .portal-message.is-self{background:#e4ecd8;margin-right:0;margin-left:22px}.portal-message-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:9px}.portal-message-head strong{font-size:11px;font-weight:600}.portal-message-head time{font-size:9px;color:var(--muted)}.portal-message .portal-prewrap{font-size:13px;line-height:1.8}.portal-change-response{background:#f0f2e8;border-left:2px solid #acbd95;padding:13px 15px;margin-top:13px}.portal-change-response>strong{display:block;font-size:10px;margin-bottom:6px}.portal-checklist{list-style:none;padding:0;margin:19px 0 0}.portal-checklist li{padding:12px 0;border-bottom:1px solid var(--line)}.portal-checklist li:last-child{border:0;padding-bottom:0}.portal-checklist label{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:12px;line-height:1.8}.portal-checklist input{margin:2px 0 0}.portal-checklist input:checked+span{color:#718267;text-decoration:line-through}.portal-document{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.portal-document strong{font-size:13px;line-height:1.65;display:block}.portal-document .portal-actions{flex-shrink:0;gap:7px;align-items:flex-end;flex-direction:column}.portal-document .portal-actions .button{min-height:36px;font-size:10px;padding:8px 12px}.portal-document .portal-actions .text-link{font-size:11px;max-width:140px;text-align:right}.portal-document>div:first-child{min-width:0;overflow-wrap:anywhere}.portal-setup{max-width:790px;padding:40px;margin-top:30px}.portal-setup>p:not(.eyebrow){color:var(--muted);max-width:580px;margin:22px 0;line-height:1.85}.portal-setup>.text-link{margin-left:22px}.portal-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}.portal-sidebar,.portal-content{min-width:0}.portal-sidebar{position:sticky;top:24px}.portal-project-list{display:flex;flex-direction:column;gap:8px;margin-top:18px}.portal-project-button{width:100%;border:1px solid var(--line);border-radius:3px;background:#fffefa;text-align:left;padding:15px;font-size:13px;line-height:1.55}.portal-project-button strong{display:block;font-size:13px}.portal-project-button small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.portal-project-button[aria-pressed=true],.portal-project-button.is-active,.portal-project-button.active{background:#e7eddc;border-color:#94a77a}.portal-project-button:hover{background:#eef1e6}.portal-panel>.portal-form:first-child{margin-top:0}.portal-form input[type=file]{font-size:12px}.portal-form input[type=file]::file-selector-button{border:0;border-right:1px solid var(--line);background:#e9eedf;padding:8px 12px;margin:-5px 12px -5px -6px;color:var(--ink);font:inherit}.portal-danger{color:#8a4430!important}.portal-panel>.portal-field+.portal-field{margin-top:16px}.portal-subtle-rule{border:0;border-top:1px solid var(--line);margin:24px 0}
@media(max-width:1100px){.portal-shell{padding-left:34px;padding-right:34px}.portal-layout{grid-template-columns:235px minmax(0,1fr);gap:20px}.portal-layout .portal-grid{grid-template-columns:1fr}.portal-card,.portal-panel{padding:25px}.portal-project-bar{padding:20px}.portal-project-bar>.portal-actions{gap:9px}.portal-project-bar .button{padding:11px 13px}.portal-document{flex-direction:column;gap:10px}.portal-document .portal-actions{flex-direction:row;align-items:center}.portal-document .portal-actions .text-link{text-align:left}}
@media(max-width:780px){.portal-shell{padding:35px 22px 60px}.portal-toolbar,.portal-topbar{flex-direction:column;gap:20px}.portal-toolbar>.portal-actions,.portal-topbar>.portal-actions{padding:0;justify-content:flex-start}.portal-heading h1{font-size:43px}.portal-project-bar{flex-direction:column;align-items:stretch;gap:18px}.portal-project-bar>.portal-field{max-width:none}.portal-grid,.portal-summary-grid,.portal-detail-grid,.portal-layout{grid-template-columns:1fr}.portal-sidebar{position:static}.portal-project-list{max-height:360px;overflow:auto}.portal-timeline{row-gap:23px;grid-template-columns:repeat(3,minmax(0,1fr))}.portal-timeline li:nth-child(3):after{display:none}.portal-date-card{min-height:230px}.portal-form input:not([type=checkbox]),.portal-form select,.portal-form textarea,.portal-field input:not([type=checkbox]),.portal-field select,.portal-field textarea{font-size:16px}.portal-message-list{max-height:440px}.portal-overview h2{font-size:29px}.portal-welcome{padding:27px;gap:23px}.portal-welcome h2{font-size:28px}.portal-monogram{min-width:65px;width:65px;height:85px;font-size:13px}.portal-document{flex-direction:row}.portal-document .portal-actions{flex-direction:column;align-items:flex-end}.portal-document .portal-actions .text-link{text-align:right}.portal-setup{padding:29px}}
@media(max-width:460px){.portal-heading h1{font-size:37px}.portal-card,.portal-panel{padding:22px}.portal-card h2,.portal-panel h2{font-size:24px}.portal-section-heading{gap:10px}.portal-field-row{grid-template-columns:1fr;gap:19px}.portal-welcome{align-items:flex-start;gap:18px;padding:24px}.portal-monogram{display:none}.portal-overview .portal-section-heading{flex-direction:column;gap:12px}.portal-timeline li{font-size:10px}.portal-project-bar .portal-actions{display:grid;grid-template-columns:1fr 1fr}.portal-project-bar .button{font-size:10px;min-height:47px;gap:8px}.portal-message-list .portal-message{margin-right:10px;padding:13px}.portal-message-list .portal-message.is-self{margin-left:10px}.portal-message-head{align-items:flex-start;flex-direction:column;gap:3px}.portal-document{flex-direction:column}.portal-document .portal-actions{align-items:center;flex-direction:row}.portal-document .portal-actions .text-link{text-align:left}.portal-setup>.text-link{margin:20px 0 0;display:table}.portal-actions .button{max-width:100%}}

/* Show a waiting cursor only during a real pending operation. */
.portal-shell [aria-busy="true"]:disabled,.portal-shell [aria-busy="true"] :disabled{cursor:wait}

/* Private document preview, shared by the customer and owner workspaces. */
body.document-viewer-open{overflow:hidden}
.document-viewer{width:min(1120px,calc(100vw - 40px));height:min(860px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #ced6c6;border-radius:8px;background:#fffefa;color:var(--ink);box-shadow:0 24px 90px #071d1466}
.document-viewer::backdrop{background:#102c25c9;backdrop-filter:blur(4px)}
.document-viewer-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.document-viewer-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 26px;border-bottom:1px solid var(--line)}
.document-viewer-heading{min-width:0}.document-viewer-heading .eyebrow{margin:0 0 7px;font-size:9px}.document-viewer-heading h2{margin:0;font-size:24px;line-height:1.25;overflow-wrap:anywhere}
.document-viewer-actions,.document-viewer-zoom{display:flex;align-items:center;gap:8px;flex-shrink:0}
.document-viewer .button{min-height:40px;padding:9px 14px;font-size:12px}.document-viewer [hidden]{display:none!important}
.document-viewer-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:54px;padding:8px 26px;background:#f6f7f0;border-bottom:1px solid var(--line)}
.document-viewer-zoom .button{min-width:36px;min-height:32px;padding:5px 10px}.document-viewer-zoom button:nth-child(2){min-width:62px;font-variant-numeric:tabular-nums}
.document-viewer-notices:has(.document-viewer-status:not([hidden])),.document-viewer-notices:has(button:not([hidden])){padding:12px 26px;border-bottom:1px solid var(--line)}
.document-viewer-status{font-size:13px;line-height:1.6;margin:0}.document-viewer-status[data-tone=error]{color:#934b35}.document-viewer-notices button{margin-top:10px}
.document-viewer-canvas{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;background:#e7eae2;position:relative}
.document-viewer-canvas[data-fit=true]{display:flex;align-items:center;justify-content:center}
.document-viewer-image{display:block;flex-shrink:0;max-width:none;max-height:none;height:auto;margin:auto;box-shadow:0 3px 16px #172d1922}
.document-viewer-canvas[data-fit=true] .document-viewer-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.document-viewer-pdf{width:100%;height:100%;border:0;background:white}
@media(max-width:600px){.document-viewer{width:100vw;height:100dvh;border:0;border-radius:0;margin:0}.document-viewer-header{padding:18px 16px;gap:14px;align-items:flex-start;flex-wrap:wrap}.document-viewer-heading{flex:1 1 100%}.document-viewer-heading h2{font-size:22px}.document-viewer-actions{width:100%;justify-content:flex-end}.document-viewer-toolbar{padding:8px 16px;flex-wrap:wrap}.document-viewer-notices:has(.document-viewer-status:not([hidden])),.document-viewer-notices:has(button:not([hidden])){padding:12px 16px}.document-viewer-canvas{padding:10px}}
