.payout-filters { display:flex; flex-wrap:wrap; gap:14px; align-items:end; margin-bottom:14px; }
.payout-filters label { display:grid; gap:7px; color:var(--muted); font-size:14px; font-weight:600; flex:1 1 150px; }
.payout-filters label:first-child { flex-grow:2; }
.payout-filters input,.payout-filters select { width:100%; min-width:0; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:11px 12px; font:inherit; font-size:16px; }
.payout-filters .text-link { min-height:44px; padding:8px; }
.payout-hint { color:var(--muted); font-size:14px; line-height:1.65; margin:12px 0 20px; }
.payout-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:20px 0; }
.payout-metric { padding:24px; display:flex; flex-direction:column; gap:14px; min-width:0; }
.payout-metric small { color:var(--muted); font-size:14px; }
.payout-metric strong { font:800 clamp(23px,2.4vw,32px) Manrope,sans-serif; overflow-wrap:anywhere; color:var(--ink); }
.payout-metric:first-child strong { color:var(--accent-ink); }
.payout-metric span { color:var(--muted); font-size:13px; line-height:1.5; }
.payout-content { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0; align-items:start; }
.payout-content > .panel,.payout-history,.payout-editor { padding:26px; min-width:0; }
.payout-editor[hidden],.payout-empty[hidden] { display:none; }
.payout-editor { margin:20px 0; scroll-margin-top:110px; }
.payout-editor .form-grid { gap:18px; }
.payout-editor input,.payout-editor textarea,.payout-editor select { font-size:16px; }
.payout-net-preview { padding:15px; border-radius:10px; background:var(--soft); color:var(--accent-ink); margin-top:18px; font-weight:600; line-height:1.5; }
#payout-form-status,#payout-filter-error { color:var(--red); font-size:14px; line-height:1.6; }
.payout-months { display:grid; gap:18px; }
.payout-month { display:grid; grid-template-columns:80px minmax(30px,1fr) minmax(90px,auto); align-items:center; gap:12px; font-size:13px; color:var(--muted); }
.payout-month strong { color:var(--ink); text-align:right; overflow-wrap:anywhere; }
.payout-month-track { background:var(--soft); border-radius:6px; height:11px; overflow:hidden; }
.payout-month-track span { display:block; height:100%; background:var(--accent); border-radius:6px; transition:width .25s ease; }
.payout-account-totals { display:grid; gap:10px; max-height:420px; overflow:auto; }
.payout-account-totals button { display:flex; justify-content:space-between; gap:16px; text-align:left; background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:17px; color:var(--ink); font:inherit; cursor:pointer; }
.payout-account-totals button > span { display:grid; gap:7px; min-width:0; overflow-wrap:anywhere; }
.payout-account-totals button > span:last-child { text-align:right; }
.payout-account-totals small { color:var(--muted); font-size:13px; }
.payout-history th { font-size:11px; letter-spacing:.06em; }
.payout-history td { font-size:14px; vertical-align:middle; }
.payout-status { display:inline-block; border:1px solid var(--line); background:var(--soft); padding:6px 10px; border-radius:20px; font-size:12px; white-space:nowrap; }
.payout-status.received { color:var(--accent-ink); }
.payout-row-actions { display:flex; align-items:center; gap:8px; }
.payout-row-actions .text-link { white-space:nowrap; }
.payout-row-actions .row-actions { display:inline-flex; gap:6px; align-items:center; justify-content:center; min-height:40px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--soft); color:var(--ink); font:600 13px 'DM Sans',sans-serif; }
.payout-delete-button { color:var(--red) !important; }
#payout-delete[hidden] { display:none !important; }
#payout-delete { margin-right:auto; }
.payout-editor .form-actions { flex-wrap:wrap; }
[data-payout-open] { cursor:pointer; }
[data-payout-open]:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.payout-details { max-width:260px; min-width:100px; }
.payout-details summary { cursor:pointer; overflow-wrap:anywhere; color:var(--accent-ink); }
.payout-details p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.payout-empty { text-align:center; padding:35px 15px; color:var(--muted); font-size:15px; }
.checklist-bypass-control { border-top:1px solid var(--line); margin-top:16px; padding-top:16px; }
.checklist-bypass-control > label { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:15px; }
.checklist-bypass-control input { margin-top:4px; flex:none; width:18px; height:18px; accent-color:var(--accent-strong); }
.checklist-bypass-control label > span { display:grid; gap:6px; }
.checklist-bypass-control small,.checklist-bypass-control p { font-size:14px; color:var(--muted); line-height:1.6; }
.checklist-bypass-control textarea { width:100%; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:9px; padding:12px; font:inherit; font-size:16px; resize:vertical; }
.checklist-bypass-badge { display:block; width:max-content; max-width:100%; margin-top:6px; padding:4px 7px; background:var(--soft); border:1px dashed var(--line); border-radius:6px; font-size:11px; color:var(--muted); }
.checklist-record ul { padding-left:20px; line-height:1.8; color:var(--muted); }
#checklist-edit-note { margin:12px 0; line-height:1.6; }
.check-gate.is-bypassed { border-style:dashed; }
@media (max-width:1050px) { .payout-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .payout-content { grid-template-columns:1fr; } .payout-content > .panel,.payout-history,.payout-editor { padding:20px; } .payout-filters label { flex-basis:calc(50% - 14px); } .payout-filters label:first-child { flex-basis:100%; } }
@media (max-width:430px) { .payout-summary { gap:10px; } .payout-metric { padding:17px; gap:10px; } .payout-metric strong { font-size:23px; } .payout-month { grid-template-columns:70px minmax(20px,1fr) minmax(90px,auto); gap:8px; font-size:12px; } }
@media (prefers-reduced-motion:reduce) { .payout-month-track span { transition:none; } }

.payout-impact { display:grid; gap:12px; margin:14px 0; min-width:225px; }
.payout-impact dt { color:var(--muted); font-size:12px; line-height:1.6; }
.payout-impact dd { margin:4px 0 0; font-weight:700; font-size:13px; line-height:1.7; }
.payout-details .payout-impact + p { font-size:11px; line-height:1.8; }
