/* TenantPeach — private resident/management work-order messages */
.tpwt-root,.tpwt-root *{box-sizing:border-box}
.tpwt-root{font-family:Inter,system-ui,-apple-system,sans-serif;min-width:0;color:#275b3d;background:#fff;border:1px solid #d2e5d7;border-radius:15px;padding:20px}
.tpwt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.tpwt-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:850;color:#2d7c54;text-transform:uppercase}
.tpwt-head h3{font:600 23px/1.2 Georgia,"Times New Roman",serif;color:#20553a;margin:8px 0}
.tpwt-head p{max-width:820px;font-size:12px;line-height:1.75;color:#698271;margin:5px 0 12px}
.tpwt-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#637d69;font-size:11px;margin:9px 0 14px}
.tpwt-meta span{background:#f1f8f2;border:1px solid #d4e8d8;padding:6px 10px;border-radius:7px}
.tpwt-meta .tpwt-unread{background:#e5f5ea;border-color:#a6d7b5;color:#226e42;font-weight:820}
.tpwt-messages{background:#fafdfb;border:1px solid #d8e8dd;border-radius:13px;min-height:125px;max-height:480px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scrollbar-gutter:stable}
.tpwt-empty{font-size:12px;line-height:1.75;color:#728475;text-align:center;margin:auto;padding:16px}
.tpwt-message{max-width:min(86%,740px);align-self:flex-start;background:#fff;border:1px solid #d4e4d9;border-radius:12px 12px 12px 3px;padding:12px 15px;box-shadow:0 2px 8px rgba(16,73,39,.025);min-width:0}
.tpwt-message.mine{align-self:flex-end;background:#e9f6ed;border-color:#b5dbc1;border-radius:12px 12px 3px 12px}
.tpwt-message-head{display:flex;align-items:baseline;justify-content:space-between;gap:7px;flex-wrap:wrap;margin-bottom:6px}
.tpwt-message-head strong{font-size:11px;font-weight:820;color:#246e49}
.tpwt-message-head span{font-size:9.5px;color:#6c8373}
.tpwt-message p{font-size:12px;line-height:1.75;color:#365943;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.tpwt-form{display:grid;gap:9px;margin-top:16px}
.tpwt-form[hidden]{display:none}
.tpwt-form label{font-size:11px;font-weight:800;color:#3b6b4b}
.tpwt-form textarea{width:100%;border:1px solid #b9d9c3;background:#fff;border-radius:10px;min-height:95px;resize:vertical;padding:12px 13px;font:12px/1.6 Inter,system-ui,sans-serif;color:#234e35}
.tpwt-form textarea:focus-visible,.tpwt-btn:focus-visible,.tpwt-back:focus-visible{outline:3px solid #95cda7;outline-offset:3px}
.tpwt-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tpwt-form-actions span{font-size:10px;color:#829589}
.tpwt-btn{min-height:38px;border:1px solid #bdd8c5;background:#fff;color:#2c6a48;border-radius:9px;padding:9px 13px;font:760 11px/1.4 Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.tpwt-btn.primary{background:#24754d;border-color:#24754d;color:#fff}
.tpwt-btn:hover:not(:disabled){filter:brightness(.96)}
.tpwt-btn:disabled{opacity:.5;cursor:wait}
.tpwt-notice{margin-top:9px;color:#2c754d;font-size:11px;line-height:1.65}
.tpwt-notice:not(:empty){background:#edf8ef;border:1px solid #d2e7d6;border-radius:8px;padding:9px 12px}
.tpwt-notice.error{background:#fff5ed;border-color:#f0d3b8;color:#9a532d}
.tpwt-disclaimer{font-size:10.5px;line-height:1.7;color:#7b8e80;margin:14px 0 0}
.tpwt-error{color:#aa503d;font-size:12px;padding:15px}
.tpwt-resident-page{font-family:Inter,system-ui,-apple-system,sans-serif;color:#254f39;max-width:1070px;margin:28px auto 80px;padding:0 24px}
.tpwt-resident-page h1{font:600 clamp(25px,3.7vw,38px)/1.2 Georgia,"Times New Roman",serif;color:#204f37;margin:11px 0}
.tpwt-resident-intro{font-size:12.5px;line-height:1.7;color:#678471;margin:0 0 24px}
.tpwt-back{display:inline-flex;align-items:center;gap:7px;color:#267146;font-size:12px;font-weight:830;text-decoration:none;margin-bottom:22px}
.tpwt-back:hover{text-decoration:underline}
.p6-wo-chat-link{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:8px 11px;margin-top:11px;border:1px solid #b8d8c2;border-radius:9px;text-decoration:none;color:#236d46;background:#f1f9f3;font-weight:790;font-size:11px}
.p6-wo-chat-link:hover{background:#e4f3e8}
@media(max-width:680px){.tpwt-root{padding:12px}.tpwt-messages{padding:10px}.tpwt-message{max-width:95%}.tpwt-form-actions{flex-direction:column;align-items:stretch}.tpwt-form-actions button{width:100%}.tpwt-resident-page{padding:0 14px;margin-top:18px}}