/* Clear actions, accessible mobile dialogs and unambiguous totals. */
.community-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:90vh;max-height:90dvh;overflow:auto;border:1px solid #cbdbe7;border-radius:18px;padding:24px;color:#182c45;background:#fff}
.community-dialog::backdrop{background:#102b4380}
.community-dialog h2{padding-right:44px;font-size:23px}
.community-close{float:right;min-width:44px;min-height:44px}
.community-dialog label{display:grid;gap:6px;margin:14px 0;font-weight:650}
.community-dialog input,.community-dialog textarea,.community-dialog select{box-sizing:border-box;width:100%;font:inherit;font-size:16px;color:#182c45;background:#fff;border:1px solid #b8ccdc;border-radius:9px;padding:12px}
.community-dialog textarea{min-height:100px;resize:vertical}
.community-dialog p{line-height:1.5;overflow-wrap:anywhere}
.community-card{padding:16px;margin:14px 0;border:1px solid #d8e4ed;border-radius:12px}
.community-error{color:#9e2424;white-space:pre-wrap}
#sellerNextActions{order:-10;margin:0 0 22px;background:#fff;border:1px solid #caddeb;border-radius:14px;padding:18px}
#sellerNextActions h2{font-size:22px;margin:0 0 6px}
#sellerNextActions .next-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:12px}
#sellerNextActions button{display:grid;text-align:left;padding:14px;border:1px solid #c9dbe9;border-radius:10px;background:#edf4fa;color:#183952;cursor:pointer;font:inherit;gap:6px;min-height:70px}
#sellerNextActions button strong{font-size:25px}
#sellerNextActions small{display:block;color:#586c80;margin-top:10px}
.payment-breakdown{display:grid;gap:8px;padding:14px;border:1px solid #caddeb;border-radius:10px;margin:12px 0;background:#f2f7fb}
.payment-breakdown span{display:flex;justify-content:space-between;gap:12px}
.market-order-card{margin:14px 0;padding:4px;scroll-margin-top:20px}
.market-order-card:focus{outline:3px solid #c99b36;border-radius:12px}
.order-help{margin:8px 0 20px;white-space:normal}
@media(max-width:760px){
 dialog[open]{box-sizing:border-box;max-width:calc(100vw - 20px);max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
 dialog input,dialog select,dialog textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}
 dialog .btn{min-height:44px;white-space:normal}
 .community-dialog{padding:16px}
 #sellerNextActions .next-actions{grid-template-columns:1fr 1fr}
 .payment-breakdown{font-size:14px}
 .seller-side #sellerActivityLinks{flex-shrink:0}
}

.order-piece-photo{display:block;width:110px;height:90px;object-fit:contain;background:#eef3f7;border-radius:9px;margin:8px}
