.tpwe-manage,.tpwe-public{font-family:Inter,system-ui,sans-serif;color:#244f3d}
.tpwe-manage *,.tpwe-public *{box-sizing:border-box}
.tpwe-manage{background:#fbfdfb;border:1px solid #d9e5d9;border-radius:12px;padding:15px;margin:13px 0}
.tpwe-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.tpwe-top h4{font:600 19px Georgia,serif;color:#1a4d38;margin:0}
.tpwe-link{color:#237454;text-decoration:underline;font:700 12px Inter,system-ui;cursor:pointer;background:none;border:0;padding:0}
.tpwe-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.tpwe-counts>div{background:#fff;border:1px solid #dce8dc;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:4px}
.tpwe-counts b{font-size:26px;color:#276348}
.tpwe-counts span{font-size:12px;color:#5d7b67}
.tpwe-counts em{font:750 11px Inter,system-ui;color:#9d7139}
.tpwe-muted{font-size:12px;color:#627c6c;line-height:1.7}
.tpwe-photos{display:grid;gap:9px;margin:14px 0}
.tpwe-photo{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce8db;background:#fff;padding:12px;border-radius:10px}
.tpwe-photo>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.tpwe-photo b{font-size:12px;overflow-wrap:anywhere}.tpwe-photo small{font-size:11px;color:#687d6e}
.tpwe-label{font:740 10px Inter,system-ui;background:#ebf5ed;color:#2c6d4c;border-radius:8px;padding:4px 7px;align-self:start}
.tpwe-error{background:#fff0ed;color:#934236;border:1px solid #e9c9c1;padding:13px;border-radius:9px;font-size:12px}
.tpwe-message{font-size:12px;color:#276748;line-height:1.6}
.tpwe-public{min-height:75vh;background:#f5f8f4;padding:33px 12px 70px}
.tpwe-card{background:#fff;max-width:760px;margin:0 auto;padding:clamp(19px,4vw,39px);border:1px solid #d9e9dc;border-radius:17px}
.tpwe-card>small{color:#287951;font:850 11px Inter,system-ui;letter-spacing:.13em}
.tpwe-card h1{font:600 clamp(29px,4vw,39px) Georgia,serif;color:#1f583e;margin:14px 0}
.tpwe-card>p{font-size:14px;color:#6b8270;line-height:1.7}
.tpwe-card h2{font:600 21px Georgia,serif;color:#21523b}
.tpwe-number{background:#eaf5ed;color:#256c4b;border-radius:8px;padding:9px 12px;display:inline-flex;font-weight:800;font-size:12px;margin:12px 0}
.tpwe-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.tpwe-upload-form{background:#fcfefd;border:1px solid #d5e5d9;border-radius:11px;padding:16px;min-width:0}
.tpwe-upload-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:750}
.tpwe-upload-form input{width:100%;min-width:0;font-size:12px}
.tpwe-btn{display:inline-flex;min-height:40px;align-items:center;justify-content:center;color:#fff;background:#197050;border:1px solid #197050;border-radius:9px;font:750 12px Inter,system-ui;padding:10px 13px;margin-top:12px;cursor:pointer;text-decoration:none}
.tpwe-btn:disabled{opacity:.55;cursor:wait}
.tpwe-card footer{display:flex;gap:11px;justify-content:space-between;flex-wrap:wrap;margin-top:22px;border-top:1px solid #e0ebe1;padding-top:17px;font-size:11px;color:#738779}
.tpwe-card footer a{color:#21704d}
@media(max-width:650px){.tpwe-upload-grid{grid-template-columns:1fr}.tpwe-card{padding:18px}.tpwe-photo{flex-direction:column;align-items:flex-start}.tpwe-manage{padding:12px}}
.tpwe-warning{margin:12px 0;padding:12px 14px;background:#fff6e6;border:1px solid #e6d3a6;border-radius:9px;font:650 12px/1.6 Inter,system-ui,sans-serif;color:#846022}

.tpwe-order-context{font-size:12px;color:#2b6549;line-height:1.6;margin:-2px 0 12px}
.tpwe-order-context span{color:#607c69}
.tpwe-help{margin:12px 0;padding:12px 14px;background:#eaf6ed;border:1px solid #c6e4ce;border-radius:9px;color:#22593f;font:600 12px/1.65 Inter,system-ui,sans-serif}
.tpwe-help a{font-weight:800;color:#176445;text-decoration:underline}
.tpwe-signin-options{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.tpwe-signin-options .tpwe-btn{margin-top:4px}
.tpwe-btn.secondary{background:white;color:#1d6b4b;border-color:#aacdb7}

/* Fixed photo page return navigation */
.tpwe-return-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:18px 0 12px}
.tpwe-back-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:11px 16px;background:#176f4d;color:#fff!important;border:1px solid #176f4d;border-radius:10px;font:780 13px/1.35 Inter,system-ui,sans-serif;text-decoration:none!important;box-shadow:0 2px 6px rgba(25,84,53,.09);cursor:pointer}
.tpwe-back-button:hover{background:#115f42;border-color:#115f42}
.tpwe-back-button:focus-visible,.tpwe-card footer a:focus-visible{outline:3px solid #82c6a1;outline-offset:3px}
.tpwe-card footer a#tpweBack{display:inline-flex;align-items:center;min-height:40px;padding:8px 10px;border:1px solid #c8dfd2;border-radius:9px;font-weight:760;font-size:12px;text-decoration:none}
.tpwe-card footer a#tpweBack:hover{background:#edf6f0}
@media(max-width:650px){.tpwe-return-row{margin:14px 0}.tpwe-back-button{width:100%;text-align:center}}


/* Work-order photo evidence cards — labels and safe, on-demand signed previews */
.tpwe-photos .tpwe-photo{flex-wrap:wrap;align-items:center}
.tpwe-photos .tpwe-photo>div:first-child{flex:1 1 200px;min-width:0}
.tpwe-photos .tpwe-photo>b{overflow-wrap:anywhere}
.tpwe-photos .tpwe-photo-preview{display:flex;flex:1 1 100%;flex-direction:column;align-items:flex-start;gap:8px;border-top:1px solid #e1ebe4;padding-top:12px;max-width:100%;min-width:0}
.tpwe-photos .tpwe-photo-preview img{display:block;width:auto;max-width:100%;height:auto;max-height:255px;object-fit:contain;background:#f0f5f0;border:1px solid #dce8de;border-radius:10px}
.tpwe-photos .tpwe-photo-preview a{font-size:12px;font-weight:760}
@media(max-width:650px){.tpwe-photos .tpwe-photo-preview img{max-height:220px}}
/* recovery */
.tpwe-pending{margin:16px 0;padding:15px;border:1px solid #d9e6db;border-radius:12px;background:#fafdfb}.tpwe-pending h2{font-size:16px;margin:0 0 8px}.tpwe-pending-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #e5eee7}.tpwe-pending-item span{flex:1;min-width:180px;overflow-wrap:anywhere}

.tpwe-ready{border:1px solid #b8dfc8;background:#f0fbf4;color:#17533a;padding:11px;border-radius:9px;font-size:12px}.tpwe-milestones{border:1px solid #d9e8dd;border-radius:10px;padding:12px;margin:12px 0;background:#fff}.tpwe-milestones>strong{font-size:12px}.tpwe-milestone{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #e8f0ea;font-size:12px}.tpwe-milestone>span{flex:1}.tpwe-milestone>b{border-radius:7px;padding:4px 8px;background:#edf2ef;font-size:11px}.tpwe-milestone>b[data-state="SENT"]{color:#176240;background:#e1f5e8}.tpwe-milestone>b[data-state="FAILED"]{color:#9b4036;background:#fff0ed}.tpwe-milestone small{color:#617569}
