/* YASBD TaskPay 2.0 — scoped front-end system */
.taskpay-wrap{
 --tp-orange:#F36B21;--tp-black:#111;--tp-white:#fff;--tp-bg:#f6f6f6;
 --tp-muted:#707070;--tp-border:#e9e9e9;--tp-green:#16834a;
 width:100%;max-width:1180px;margin:28px auto;color:var(--tp-black);
 font-family:inherit;line-height:1.65
}
.taskpay-wrap *{box-sizing:border-box}
.taskpay-wrap h2,.taskpay-wrap h3{color:var(--tp-black);font-family:inherit}
.tp-page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin:0 0 25px}
.tp-page-heading h2{font-size:clamp(27px,4vw,39px);font-weight:850;letter-spacing:-1.1px;line-height:1.15;margin:8px 0}
.tp-page-heading p{color:var(--tp-muted);margin:0;font-size:14px}
.tp-kicker{font-size:11px;font-weight:850;letter-spacing:1.6px;color:var(--tp-orange)}
.tp-member-id{min-width:190px;padding:14px 17px;border:1px solid var(--tp-border);border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:3px}
.tp-member-id small{font-size:11px;color:var(--tp-muted)}
.tp-member-id strong{font-size:17px;letter-spacing:.6px}
.tp-copy{align-self:flex-start;border:0;background:transparent;color:var(--tp-orange);font-weight:800;padding:2px 0;cursor:pointer}
.tp-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0}
.tp-stat{background:#fff;border:1px solid var(--tp-border);border-radius:14px;padding:19px;min-height:125px}
.tp-stat small,.tp-stat span{display:block;color:var(--tp-muted);font-size:12px}
.tp-stat strong{display:block;font-size:29px;line-height:1.3;margin:8px 0;font-weight:850;letter-spacing:-.7px}
.tp-stat-dark{background:var(--tp-black);border-color:var(--tp-black);color:#fff}
.tp-stat-dark strong{color:var(--tp-orange)}
.tp-stat-dark small,.tp-stat-dark span{color:#ccc}
.tp-nav{display:flex;gap:7px;flex-wrap:wrap;padding:9px;background:#f4f4f4;border-radius:12px;margin:20px 0 24px}
.tp-nav a{padding:9px 14px;border-radius:8px;color:#333!important;text-decoration:none!important;font-size:13px;font-weight:750}
.tp-nav a:hover{background:#fff;color:var(--tp-orange)!important}
.tp-panel,.tp-transfer-card{background:#fff;border:1px solid var(--tp-border);border-radius:16px;padding:23px;margin:18px 0}
.tp-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.tp-panel-heading h3,.tp-panel h3,.tp-transfer-card h3{font-size:18px;font-weight:850;margin:0 0 14px}
.tp-panel-heading a{color:var(--tp-orange);font-weight:750;text-decoration:none}
.tp-history-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-top:1px solid var(--tp-border)}
.tp-history-row strong,.tp-history-row small{display:block}
.tp-history-row small{font-size:11px;color:var(--tp-muted);margin-top:3px}
.tp-status-badge{display:inline-flex;align-items:center;border-radius:30px;padding:5px 10px;font-size:11px;font-weight:850;white-space:nowrap}
.tp-status-pending{background:#fff3e8;color:#b84c0b}
.tp-status-approved{background:#e8f7ee;color:#167341}
.tp-status-rejected{background:#fff0f0;color:#b42318}
.tp-category-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:22px 0}
.tp-category-chip{display:flex;align-items:center;gap:10px;padding:13px 14px;border:1px solid var(--tp-border);border-radius:12px;background:#fff;min-width:0}
.tp-category-chip span{width:35px;height:35px;display:grid;place-items:center;background:color-mix(in srgb,var(--cat-color) 12%,white);border-radius:10px;font-size:17px}
.tp-category-chip b{font-size:12px;line-height:1.3}
.tp-task-card{background:#fff;border:1px solid var(--tp-border);border-radius:16px;overflow:hidden;margin:17px 0;box-shadow:0 5px 20px rgba(0,0,0,.035);transition:transform .2s,box-shadow .2s}
.tp-task-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.07)}
.tp-task-banner{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 20px;background:var(--cat-color);color:#fff}
.tp-task-category{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:850;letter-spacing:.3px}
.tp-task-category i{font-style:normal;font-size:19px}
.tp-points{font-size:24px;font-weight:900;line-height:1}
.tp-points small{font-size:9px;letter-spacing:1px;font-weight:900}
.tp-task-content{padding:21px 22px 23px}
.tp-task-code{color:var(--tp-muted);font-size:10px;letter-spacing:1px;font-weight:800}
.tp-task-title-row h3{font-size:21px;font-weight:850;line-height:1.3;margin:4px 0 12px}
.tp-description{font-size:14px;color:#505050;line-height:1.8}
.tp-description p{margin:0 0 10px}
.tp-meta{font-size:12px;color:var(--tp-muted);margin:12px 0}
.tp-external-link{display:inline-flex;margin:7px 9px 5px 0;padding:8px 12px;background:#fff2e9;color:#b9470c!important;border-radius:7px;font-size:12px;font-weight:800;text-decoration:none!important}
.tp-external-link:hover{background:var(--tp-orange);color:#fff!important}
.tp-submit-details{border-top:1px solid var(--tp-border);margin-top:17px;padding-top:15px}
.tp-submit-details summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;font-weight:850;color:var(--tp-black)}
.tp-submit-details summary::-webkit-details-marker{display:none}
.tp-submit-details summary span{font-size:22px;color:var(--tp-orange)}
.tp-submit{display:grid;gap:13px;margin-top:16px}
.tp-submit label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#292929}
.tp-submit textarea,.tp-submit input,.tp-submit select{width:100%;max-width:100%;padding:12px 13px;border:1px solid #dedede;border-radius:8px;background:#fff;font:inherit;font-size:14px;color:#111}
.tp-submit textarea:focus,.tp-submit input:focus{outline:2px solid rgba(243,107,33,.2);border-color:var(--tp-orange)}
.tp-submit button{justify-self:start;border:0;border-radius:8px;padding:12px 21px;background:var(--tp-orange);color:#fff;font-size:13px;font-weight:850;cursor:pointer}
.tp-submit button:hover{background:#d95712}
.tp-submit>small{color:var(--tp-muted);font-size:11px}
.tp-notice,.tp-empty,.tp-locked,.tp-submission-state{padding:14px 16px;border:1px solid var(--tp-border);border-radius:10px;background:#fafafa;margin:14px 0;font-size:13px}
.tp-submission-state{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tp-submission-state p{flex-basis:100%;margin:0;color:var(--tp-muted)}
.tp-table-wrap{width:100%;overflow-x:auto}
.tp-table{width:100%;border-collapse:collapse;margin-top:10px;min-width:570px}
.tp-table th,.tp-table td{padding:13px 12px;border-bottom:1px solid var(--tp-border);text-align:left;font-size:13px}
.tp-table th{background:#f7f7f7;color:#555;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.tp-positive{color:#16834a;font-weight:850}.tp-negative{color:#b42318;font-weight:850}
.tp-transfer-card{max-width:680px}
.tp-transfer-card .tp-submit button{width:100%;justify-self:stretch}
.tp-transfer-card .tp-submit small{line-height:1.7}
@media(max-width:900px){.tp-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.tp-category-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.taskpay-wrap{margin:16px auto}.tp-page-heading{display:block}.tp-member-id{margin-top:16px}.tp-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tp-stat{padding:14px;min-height:110px}.tp-stat strong{font-size:24px}.tp-category-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tp-category-chip{padding:10px}.tp-category-chip b{font-size:11px}.tp-task-banner{padding:12px 14px}.tp-points{font-size:21px}.tp-task-content{padding:17px}.tp-task-title-row h3{font-size:18px}.tp-panel,.tp-transfer-card{padding:16px}.tp-history-row{align-items:flex-start}.tp-nav{gap:3px}.tp-nav a{padding:8px 10px;font-size:12px}}
