/* TenantPeach — dedicated work order and owner-management conversations */
.tpwd-root,.tpwd-root *{box-sizing:border-box}
.tpwd-root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;max-width:1240px;margin:24px auto 60px;padding:0 26px;color:#254b37}
.tpwd-root button,.tpwd-root input,.tpwd-root textarea,.tpwd-root select{font-family:inherit}
.tpwd-root a:focus-visible,.tpwd-root button:focus-visible,.tpwd-root textarea:focus-visible,.tpwd-root select:focus-visible{outline:3px solid #98d3ab;outline-offset:3px}
.tpwd-loading{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:270px;gap:18px;font-size:14px;color:#557c5e}
.tpwd-spinner{width:30px;height:30px;display:block;border-radius:50%;border:3px solid #cfe7d5;border-top-color:#2b7950;animation:tpwdspin .8s linear infinite}
@keyframes tpwdspin{to{transform:rotate(360deg)}}
.tpwd-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0 16px;flex-wrap:wrap}
.tpwd-back{text-decoration:none;color:#2b7652;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:6px}
.tpwd-back:hover{text-decoration:underline}
.tpwd-private{display:inline-flex;align-items:center;gap:7px;color:#5a7964;font-size:10px;font-weight:750;letter-spacing:.04em}
.tpwd-private:before{content:"●";font-size:9px;color:#45966b}
.tpwd-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border:1px solid #cfe3d5;border-radius:20px;background:linear-gradient(110deg,#edf8f0,#fff 68%);padding:30px 33px 29px;box-shadow:0 8px 25px rgba(15,64,39,.035)}
.tpwd-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:850;color:#3a8961;text-transform:uppercase}
.tpwd-number{font-size:12px;letter-spacing:.06em;font-weight:850;color:#2c7251;margin:13px 0 7px}
.tpwd-hero h1{font:600 clamp(25px,3.2vw,37px)/1.17 Georgia,"Times New Roman",serif;letter-spacing:-.025em;color:#183e2b;margin:0 0 12px}
.tpwd-hero p{font-size:12px;font-weight:560;color:#63816e;line-height:1.65;margin:0}
.tpwd-hero-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
.tpwd-pill{border:1px solid #cae1d0;background:#f8fcf8;color:#285c41;border-radius:20px;padding:8px 12px;font-size:11px;font-weight:850;white-space:nowrap}
.tpwd-pill.current{background:#e5f3e9;border-color:#b4d6bf}
.tpwd-pill.urgent{background:#fff0e9;border-color:#eecbbc;color:#a44733}
.tpwd-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e3ece6;padding:15px 0;margin-bottom:18px}
.tpwd-tabs button{border:1px solid #d9e8dd;background:#fff;border-radius:999px;color:#35674a;padding:8px 13px;cursor:pointer;font-size:11px;font-weight:770}
.tpwd-tabs button:hover{background:#ebf8ef;border-color:#9fcbae}
.tpwd-section{scroll-margin-top:90px;margin:22px 0 26px;min-width:0}
.tpwd-section-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:15px}
.tpwd-section-head h2{font:600 clamp(20px,2.4vw,27px)/1.22 Georgia,serif;letter-spacing:-.02em;color:#1b5137;margin:7px 0}
.tpwd-section-head p{font-size:12px;color:#66806e;line-height:1.7;margin:0;max-width:760px}
.tpwd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}
.tpwd-data{display:flex;flex-direction:column;gap:8px;padding:15px 17px;background:#fff;border:1px solid #dde9df;border-radius:12px;min-width:0}
.tpwd-data span{font-size:10px;color:#6c8274;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.tpwd-data strong{font-size:14px;line-height:1.4;color:#224e35;overflow-wrap:anywhere}
.tpwd-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.tpwd-info-card{background:#fff;border:1px solid #dbe8df;border-radius:14px;padding:20px;min-width:0;margin:12px 0}
.tpwd-info-card h3{font:600 20px Georgia,serif;color:#20553b;margin:0 0 14px}
.tpwd-info-card>p{font-size:13px;line-height:1.8;color:#486d54;white-space:pre-wrap;overflow-wrap:anywhere}
.tpwd-info-card .tpwd-compact{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.tpwd-info-card .tpwd-compact .tpwd-data{padding:11px;background:#f7fbf8}
.tpwd-mini-label{background:#e9f5ec;border-radius:6px;padding:7px 10px;color:#2c6f4b;font-size:11px;font-weight:740}
.tpwd-muted{font-size:11px!important;line-height:1.6!important;color:#718577!important}
.tpwd-warning{padding:12px;border:1px solid #e9d4a9;background:#fff9e9;border-radius:9px;color:#83622b;font-size:12px;line-height:1.5}
.tpwd-conversation{background:#f9fcf9;border:1px solid #cfe3d5;border-radius:17px;padding:23px}
.tpwd-conversation .tpwd-section-head{margin-bottom:11px}
.tpwd-conversation-meta{display:flex;flex-wrap:wrap;gap:9px 15px;justify-content:space-between;padding:11px 13px;border-radius:9px;background:#eaf5ed;border:1px solid #d6eadc;color:#3a7752;font-size:10.5px;font-weight:780}
.tpwd-message-log{display:flex;flex-direction:column;gap:10px;padding:18px 12px 16px;max-height:520px;min-height:150px;overflow-y:auto;overscroll-behavior:contain}
.tpwd-bubble{align-self:flex-start;background:#fff;border:1px solid #d7e4da;border-radius:12px 12px 12px 3px;box-shadow:0 2px 9px rgba(27,76,45,.025);padding:12px 15px;max-width:min(80%,660px);min-width:110px}
.tpwd-bubble.mine{align-self:flex-end;background:#e8f5eb;border-color:#aed6bd;border-radius:12px 12px 3px 12px}
.tpwd-message-top{display:flex;gap:5px 12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 7px}
.tpwd-message-top strong{font-size:11px;color:#236045;font-weight:830}
.tpwd-message-top span{font-size:10px;color:#78917c}
.tpwd-bubble p{font-size:12.5px;line-height:1.7;color:#345a43;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.tpwd-no-messages{align-self:center;padding:30px 18px;text-align:center;color:#628170;max-width:450px}
.tpwd-no-messages strong{font:600 22px Georgia,serif;color:#285e44}
.tpwd-no-messages p{font-size:12px;line-height:1.7}
.tpwd-compose{border-top:1px solid #dae8de;padding:15px 0 5px;display:flex;flex-direction:column;gap:8px}
.tpwd-compose>label{font-size:12px;color:#285d43;font-weight:780}
.tpwd-compose textarea{width:100%;resize:vertical;min-height:95px;max-height:230px;border:1px solid #bfd9c9;border-radius:12px;padding:13px;font-size:13px;line-height:1.6;color:#234a32;background:#fff}
.tpwd-compose textarea::placeholder{color:#89a092}
.tpwd-compose-actions{display:flex;gap:12px;justify-content:space-between;align-items:center}
.tpwd-compose-actions span{font-size:10px;color:#718b78}
.tpwd-btn{border:1px solid #bfdbc8;border-radius:10px;padding:10px 15px;min-height:39px;font:790 11.5px/1.35 Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.tpwd-btn.primary{background:#1d7850;border-color:#1d7850;color:#fff}
.tpwd-btn.neutral{background:#fff;color:#266b49}
.tpwd-btn:hover:not(:disabled){filter:brightness(.96)}
.tpwd-btn:disabled{opacity:.6;cursor:wait}
.tpwd-feedback{font-size:11.5px;line-height:1.6;color:#537558;min-height:16px}
.tpwd-status-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tpwd-status-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:780;color:#37664a}
.tpwd-status-form label.full,.tpwd-status-form .full{grid-column:1/-1}
.tpwd-status-form select,.tpwd-status-form textarea{border-radius:9px;border:1px solid #cdded2;background:white;color:#294a36;font-size:12px;padding:11px;width:100%;min-height:40px}
.tpwd-status-form textarea{resize:vertical;min-height:70px}
.tpwd-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpwd-related-list{display:grid;gap:8px}
.tpwd-related-item{display:flex;gap:14px;align-items:center;justify-content:space-between;border:1px solid #e2ebe5;border-radius:10px;padding:12px 14px;text-decoration:none;color:#2e6447;font-size:11px}
.tpwd-related-item.selected{background:#e9f5eb;border-color:#b5d8bf}
.tpwd-related-item span{flex:1 1 200px}
.tpwd-related-item b{font-size:11px}
.tpwd-related-item small{font-size:10px}
.tpwd-history-list{display:grid;gap:9px;margin-top:10px}
.tpwd-history-list>div{border-left:3px solid #b4d8be;background:#f7fbf8;padding:11px 13px;display:flex;flex-direction:column;gap:5px;border-radius:0 8px 8px 0}
.tpwd-history-list strong{font-size:12px;color:#315943}
.tpwd-history-list small{font-size:10px;color:#76907e}
.tpwd-history-list p{font-size:11.5px;line-height:1.65;color:#54705b;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.tpwd-footer{border-top:1px solid #dee8e1;margin-top:30px;padding:23px 0;display:flex;justify-content:space-between;gap:10px;align-items:center}
.tpwd-footer small{font-size:10px;color:#829488}
.tpwd-error-page{background:#f9fcfa;border:1px solid #d4e6da;border-radius:18px;padding:40px 35px;margin-top:55px}
.tpwd-error-page h1{font:600 30px Georgia,serif;color:#285b3d}
.tpwd-error-page p{font-size:13px;color:#577461;line-height:1.7;max-width:630px}
.tpwd-error-page .tpwd-actions{margin:20px 0 0}
@media(max-width:900px){.tpwd-root{padding:0 16px}.tpwd-hero{padding:22px}.tpwd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tpwd-info-grid{grid-template-columns:1fr}.tpwd-bubble{max-width:89%}}
@media(max-width:600px){.tpwd-root{padding:0 12px;margin:10px auto 35px}.tpwd-hero{padding:18px;flex-direction:column;gap:12px}.tpwd-hero h1{font-size:26px}.tpwd-section{margin-top:18px}.tpwd-conversation{padding:13px}.tpwd-kpis{gap:8px}.tpwd-data{padding:11px 12px}.tpwd-data strong{font-size:12px}.tpwd-tabs{gap:6px}.tpwd-tabs button{font-size:10px;padding:8px 9px}.tpwd-info-card{padding:14px}.tpwd-info-card .tpwd-compact{grid-template-columns:1fr}.tpwd-message-log{padding:11px 3px}.tpwd-bubble{max-width:95%;padding:10px}.tpwd-conversation .tpwd-section-head{flex-direction:column}.tpwd-status-form{grid-template-columns:1fr}.tpwd-status-form label.full,.tpwd-status-form .full{grid-column:auto}.tpwd-footer{flex-direction:column;align-items:flex-start}}