.po-terms{width:min(760px,94vw);max-height:88vh;padding:0;border:1px solid #cbd2df;border-radius:16px;background:white;color:#233047;box-shadow:0 12px 60px #17214333}
.po-terms::backdrop{background:#17214366}.po-terms form{display:flex;flex-direction:column;max-height:85vh}.po-terms header,.po-terms footer{padding:16px 20px}.po-terms header h2{margin:0;font-size:19px}.po-reference,.po-terms small{color:#576574;margin:5px 0 0}
.po-terms-lines{overflow:auto;border-block:1px solid #dde2e8}.po-terms-lines section{padding:12px 20px;display:grid;gap:12px;align-items:center;grid-template-columns:minmax(0,1fr) 115px 150px}.po-terms-lines section+section{border-top:1px solid #e5e8ed}
.po-terms-lines strong,.po-terms-lines small{display:block}.po-terms label{font-size:12px;color:#455267}.po-terms input{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid #9ca9bc;border-radius:8px;padding:8px;background:white;color:#202b3d;font:inherit;font-size:15px}
.po-terms footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.po-terms footer div{margin-left:auto}.po-terms output{font-weight:700}.po-terms [role=status]{color:#a42b23}
.po-terms button,#pHead .po-edit-terms,#pHead .rvb,#pfoot .po-manage summary,#pwrap .po-row-actions summary{padding:7px 12px;border:1px solid #bcc6d2;border-radius:8px;background:white;color:#354456;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.po-terms [type=submit],#pHead .rvb{background:#176644;color:white;border-color:#176644}.po-terms button:disabled{opacity:.5}#pHead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 18px}
#pfoot .po-manage{position:relative}#pfoot .po-manage>div{position:absolute;bottom:calc(100% + 6px);left:0;z-index:5;min-width:180px;padding:6px;background:white;border:1px solid #cbd2df;border-radius:10px;box-shadow:0 6px 20px #1f293726}
#poManageActions button:not([hidden]){display:block;width:100%;text-align:left;margin:2px 0}#poManageActions button[hidden]{display:none}#pwrap .po-row-actions summary{display:inline-block}#pwrap .po-row-actions[open] summary{margin-bottom:5px}#pwrap .po-row-actions button{display:block;margin:3px auto}
@media(max-width:600px){.po-terms-lines section{grid-template-columns:1fr 1fr;padding:10px 14px}.po-terms-lines section>div{grid-column:1/-1}.po-terms header,.po-terms footer{padding:12px 14px}#pfoot{gap:6px}#pHead{padding:10px}}
