.pbs-panel{border-top:3px solid #2476e6}
.pbs-panel .panel-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
.pbs-panel .panel-head>div:first-child{flex:1 1 260px;min-width:0}
.pbs-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pbs-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.pbs-metrics>div{background:#f5f8ff;border:1px solid #e1e9f6;border-radius:12px;padding:14px;min-width:0}
.pbs-metrics small{display:block;color:#64748b;margin-bottom:8px}
.pbs-metrics strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.pbs-status{display:inline-block;padding:4px 9px;border-radius:20px;background:#edf2fa;color:#345077;font-size:12px;font-weight:600;white-space:normal}
.pbs-status.good{background:#dcf5e8;color:#126b45}.pbs-status.bad{background:#fff0ed;color:#ad3225}.pbs-status.pending{background:#fff6da;color:#795900}
.pbs-note{background:#f6f9ff;padding:12px 14px;border-radius:10px;color:#4c6284;line-height:1.6}
.pbs-panel details{border:1px solid #e0e8f2;border-radius:12px;margin:16px 0;padding:12px 16px}
.pbs-panel summary{cursor:pointer;font-weight:600;color:#234b79;padding:3px 0}
.pbs-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:16px}
.pbs-form label{display:flex;flex-direction:column;gap:7px;min-width:0}
.pbs-form input,.pbs-form select{width:100%;min-width:0;box-sizing:border-box}
.pbs-form .checkbox-row{flex-direction:row;align-items:flex-start;gap:9px}
.pbs-form .checkbox-row input[type=checkbox]{width:16px;min-width:16px;height:16px;margin:2px 0 0;flex:0 0 16px}
.pbs-form .wide{grid-column:1/-1}.pbs-form .pbs-actions{margin:4px 0}
.pbs-history{max-height:420px;overflow:auto;border:1px solid #e4ebf5;border-radius:10px}
.pbs-history table{width:100%;min-width:660px}.pbs-history th{position:sticky;top:0;background:#f7faff;z-index:1}
.pbs-detail{min-width:200px;max-width:480px;white-space:normal;overflow-wrap:anywhere}
.pbs-detail small{display:block;margin-top:6px}.pbs-detail code{white-space:normal;overflow-wrap:anywhere}
.pbs-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 10px}
.pbs-history-head label{display:flex;align-items:center;gap:8px;margin:0}.pbs-history-head select{width:auto}
#pbsPairDialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #d8e5f7;border-radius:16px;padding:24px}
#pbsPairDialog input{width:100%;box-sizing:border-box;margin:12px 0}#pbsPairDialog::backdrop{background:#0d204b80}
@media(max-width:1000px){.pbs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pbs-metrics,.pbs-form{grid-template-columns:minmax(0,1fr)}.pbs-form .wide{grid-column:auto}.pbs-actions>button{flex:1 1 auto}}
