/* Scoped to the patch board; the owner's general theme/custom colors stay intact. */
.mopys-patches .system-shell { max-width:1120px; }
.mopys-patches .system-actions, .mopys-patches .patch-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mopys-patches .patch-admin-note { display:flex; align-items:center; gap:12px 22px; flex-wrap:wrap; margin:0 0 24px; padding:18px 22px; border:1px solid #b8cfbf; border-radius:16px; background:#eef6ef; color:#243a31; }
.mopys-patches .patch-admin-note a { margin-left:auto; }
.mopys-patches .patch-message { padding:18px 22px; margin:0 0 24px; border-radius:14px; border:1px solid #b8cfbf; background:#eef6ef; color:#243a31; overflow-wrap:anywhere; }
.mopys-patches .patch-message-error { background:#fff3ef; border-color:#d5a493; color:#752c20; }
.mopys-patches .patch-editor { margin-bottom:32px; border:2px solid #9fbfa8; }
.mopys-patches .patch-editor h2 { margin-top:8px; }
.mopys-patches .patch-form-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; }
.mopys-patches .patch-wide { grid-column:1 / -1; }
.mopys-patches .patch-form label { display:block; margin-bottom:7px; font-weight:700; }
.mopys-patches .patch-form input:not([type=checkbox]), .mopys-patches .patch-form select, .mopys-patches .patch-form textarea { width:100%; min-width:0; box-sizing:border-box; padding:12px 14px; border:1px solid #8da897; border-radius:10px; font:inherit; background:var(--mopys-card,#fff); color:var(--mopys-text,#243a31); }
.mopys-patches .patch-form textarea { min-height:240px; resize:vertical; line-height:1.65; }
.mopys-patches .patch-help { font-size:.92rem; line-height:1.6; }
.mopys-patches .patch-options { display:flex; gap:16px 24px; flex-wrap:wrap; margin:24px 0 12px; }
.mopys-patches .patch-options label { display:flex; align-items:center; gap:9px; margin:0; }
.mopys-patches .patch-options input { width:18px; height:18px; accent-color:#205b43; }
.mopys-patches .patch-card { margin-bottom:24px; overflow-wrap:anywhere; }
.mopys-patches .patch-card h2 { margin:0 0 8px; }
.mopys-patches .patch-badges { display:flex; flex-wrap:wrap; gap:8px; }
.mopys-patches .patch-body { line-height:1.8; margin-top:16px; }
.mopys-patches .patch-image { display:block; width:100%; max-height:400px; object-fit:contain; border-radius:14px; margin:20px 0; background:#f1f5f2; }
.mopys-patches .patch-preview { width:auto; max-width:100%; max-height:180px; }
.mopys-patches .patch-card-tools { border-top:1px solid #d6e3d9; padding-top:18px; margin-top:24px; }
.mopys-patches .patch-danger, .mopys-patches .patch-danger:hover { background:#8f3028 !important; border-color:#8f3028 !important; color:#fff !important; padding:12px 20px; border-radius:10px; font:inherit; font-weight:700; cursor:pointer; }
.mopys-patches a.patch-danger-link { color:#872d23 !important; font-weight:700; padding:10px 8px; text-decoration:underline; text-underline-offset:3px; }
.mopys-patches :is(a,button,input,select,textarea):focus-visible { outline:3px solid #bf7c16; outline-offset:3px; }
.mopys-patches #patch-editor, .mopys-patches .patch-card { scroll-margin-top:110px; }
@media(max-width:640px) {
  .mopys-patches .patch-form-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .mopys-patches .patch-admin-note { align-items:flex-start; flex-direction:column; }
  .mopys-patches .patch-admin-note a { margin-left:0; }
  .mopys-patches .system-topbar { align-items:flex-start; }
}
