.ml-moderation { margin: 4px 0 14px; padding: 14px 16px; border: 1px solid #dce5ef; border-radius: 8px; background: #f8fafc; color: #36516f; }
.ml-mod-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ml-mod-head strong { font-size: 14px; }
.ml-mod-status { flex: 1; font-size: 12px; color: #64748b; }
.ml-moderation button, .ml-mod-action { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 36px; padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #365978; font: inherit; line-height: 1.5; cursor: pointer; }
.ml-moderation .ml-mod-toggle { background: #315f91; color: #fff; border-color: #315f91; }
.ml-moderation button:disabled { opacity: .5; cursor: default; }
.ml-mod-options { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.ml-mod-options[hidden] { display: none; }
.ml-mod-hint { flex-basis: 100%; margin: 2px 0; color: #64748b; font-size: 12px; line-height: 1.8; }
body.discuzx5 .ml-moderation #mdly { position: static !important; inset: auto !important; width: auto; height: auto; margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid #dce5ef; background: none; overflow: visible; line-height: 1.8; }
.ml-moderation #mdly .cp, .ml-moderation #mdly > label, .ml-moderation #mdly > h6, .ml-moderation #mdly .pipe { display: none; }
.ml-moderation #mdly > p { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.ml-moderation #mdly > p > strong { font-weight: 400; }
body.discuzx5 .ml-mod-action:hover { background: #edf3fa; text-decoration: none; }
body.discuzx5 .ml-mod-action.ml-mod-danger { color: #a13737; border-color: #e8c9c9; background: #fffafa; }
body.discuzx5 .ml-moderation #mdly > p:has(.ml-mod-danger) { padding-top: 12px; border-top: 1px solid #e5eaf0; }
.ml-mod-select { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px; color: #64748b; font-size: 12px; cursor: pointer; }
.ml-mod-select input { width: 16px; height: 16px; margin: 0; accent-color: #315f91; }
body.discuzx5 .forumportal_listc .ml-mod-selected { background: #fafbfc; border-radius: 0; box-shadow: none; }
body.discuzx5 .forumportal_listc .km_moderate { position: relative; margin-left: 10px; }
body.discuzx5 .ml-thread-management { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; margin: 12px 0; border: 1px solid #dce5ef; border-radius: 8px; background: #f8fafc; }
.ml-thread-mod-title { flex-basis: 100%; font-size: 14px; color: #36516f; }
.ml-thread-management .pipe { display: none; }
.ml-thread-management .ml-mod-danger { order: 2; margin-left: 8px; }
.ml-sticky-note { display: block; flex-basis: 100%; font-size: 11px; color: #64748b; line-height: 1.6; }
@media (max-width: 600px) {
  .ml-moderation { padding: 12px; }
  .ml-moderation button, .ml-mod-action, .ml-mod-select { min-height: 44px; }
  body.discuzx5 .forumportal_listc .km_moderate { float: none; display: flex; justify-content: flex-end; margin: 0 0 4px; }
  .ml-mod-status { min-width: 72px; }
}

body.discuzx5 .ml-mod-action { text-decoration: none; }
body.discuzx5 .ml-moderation #mdly a.ml-mod-danger { color: #a13737; }
.ml-moderation { scroll-margin-top: 80px; }
.ml-mod-dock { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 300; box-sizing: border-box; max-width: calc(100vw - 100px); min-height: 44px; padding: 10px 16px; border: 1px solid #244b77; border-radius: 8px; background: #315f91; color: #fff; box-shadow: 0 4px 18px #21364d30; font: inherit; cursor: pointer; }
.ml-mod-dock[hidden] { display: none; }

/* Compact toolbar: selection controls above a single row of native actions. */
.ml-moderation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
.ml-mod-head { display: contents; }
.ml-mod-head > strong { order: 0; white-space: nowrap; }
.ml-mod-status { order: 0; flex: 0 0 auto; }
.ml-moderation .ml-mod-toggle { order: 2; margin-left: auto; }
.ml-mod-options { order: 1; padding: 0; margin-left: 8px; gap: 8px; }
.ml-mod-hint { order: 4; margin: 0; }
.ml-mod-hint[hidden] { display: none; }
body.discuzx5 .ml-moderation #mdly { order: 3; display: flex; flex-wrap: wrap; align-items: center; flex-basis: 100%; gap: 8px; margin: 0; padding: 10px 0 0; }
body.discuzx5 .ml-moderation #mdly > p { display: contents; }
body.discuzx5 .ml-moderation #mdly > p > strong:empty { display: none; }
body.discuzx5 .ml-moderation #mdly > p.ml-mod-danger-zone { display: flex; margin: 0 0 0 auto; padding: 0 0 0 16px; border: 0; border-left: 1px solid #dce5ef; }
@media (max-width: 600px) {
  .ml-moderation { gap: 8px; padding: 10px 12px; }
  .ml-mod-options { flex-basis: 100%; order: 3; margin: 0; }
  body.discuzx5 .ml-moderation #mdly { order: 4; }
  .ml-mod-hint { order: 5; }
  body.discuzx5 .ml-moderation #mdly > p.ml-mod-danger-zone { padding-left: 8px; }
}

/* Checkbox labels must fit narrow native table cells without vertical text. */
body.discuzx5 .ml-mod-select {
  box-sizing: border-box;
  flex: 0 0 auto;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  min-height: 28px;
  gap: 0;
  padding: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.ml-mod-select-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
