.lhgmq-editor-return {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
.lhgmq-editor-return a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid #151e2d;border-radius:6px;background:#151e2d;color:#fff;text-decoration:none;font:600 14px Arial,sans-serif;box-sizing:border-box;}
.lhgmq-editor-return a:focus-visible {outline:2px solid #236192;outline-offset:3px;}
@media (max-width:767px) {
 body:has(#rostereditor) {margin:0;padding:8px;box-sizing:border-box;min-width:0;font-size:14px;}
 #rostereditor,#rostereditor .pagewrapper {min-width:0;width:100%;box-sizing:border-box;}
 #rostereditor .columnwrapper {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible;}
 #rostereditor .col4 {width:auto;float:none;min-width:0;overflow:visible;padding:0;}
 #rostereditor ol {margin:0;padding:2px;box-shadow:none;border:1px solid #ccc;border-radius:6px;min-height:80px;}
 #rostereditor h4.columnheader {font-size:11px;padding:8px 2px;background:#151e2d;color:#fff;line-height:1.4;margin-bottom:8px;}
 #rostereditor li.playerrow {font-size:11px !important;font-weight:normal;min-height:52px;margin:0;padding:6px 3px;box-sizing:border-box;border:1px solid #a8b3c3;border-radius:4px;box-shadow:none;overflow:visible;overflow-wrap:anywhere;}
 #rostereditor li.playerrow + li.playerrow {margin-top:4px;}
 #rostereditor .rowinfo {float:none;width:100%;font-size:11px;}
 #rostereditor .rowname {float:none;font-size:11px;font-weight:bold;line-height:1.3;}
 #rostereditor .rowinfoline {float:none;margin:3px 0;font-size:10px;line-height:1.3;}
 #rostereditor .rowcondition,#rostereditor .rowsuspension,#rostereditor .rowsuspension99,#rostereditor .rowwaiver {float:none;display:inline-block;font-size:10px;padding:2px 3px;margin:2px 2px 0 0;box-shadow:none;}
 #rostereditor .rostererror,#rostereditor .rostererror .error {font-size:14px !important;line-height:1.5;overflow-wrap:anywhere;}
 #rostereditor .rostererror .waivernotice {font-size:14px;}
 #rostereditor .ui-accordion-content {padding:8px 0 !important;height:auto !important;}
 #rostereditor h3.withsave,#rostereditor .ui-accordion-header {font-size:14px;line-height:1.5;white-space:normal;}
 #rostereditor .positionlist {display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 0;}
 #rostereditor .positionlist label {font-size:14px !important;margin:0 8px 0 0;}
 #rostereditor .positionlist input[type=checkbox] {width:20px;height:20px;margin:0;}
 #rostereditor .Save {display:flex;flex-wrap:wrap;gap:8px;float:none;margin:8px 0 12px;}
 #rostereditor .Save input {flex:1 1 140px;min-height:48px;font-size:16px;text-align:center;padding:10px 16px;}
 #rostereditor #saveroster {background:#151e2d;color:#fff;border:1px solid #151e2d;border-radius:4px;}
}

/* Three navigation buttons remain on a single row. */
.lhgmq-editor-return {display:flex;flex-wrap:nowrap;gap:6px;min-width:0;}
@media (max-width:767px) {
 .lhgmq-editor-return a {flex:1 1 0;min-width:0;min-height:44px;padding:0 4px;font-size:12px;white-space:nowrap;text-align:center;}
}
