.mf-member-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mf-member-actions button { border: 1px solid #c9d9ef; background: #fff; color: #205b8b; border-radius: 6px; padding: 7px 12px; cursor: pointer; font: inherit; }
.mf-admin { color: #27394d; max-width: 1440px; margin: 0 auto; padding: 20px 22px 38px; }
.mf-admin * { box-sizing: border-box; }
.mf-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mf-admin-head h2 { margin: 0; font-size: 23px; line-height: 1.3; }
.mf-admin-head p { color: #62748b; margin: 4px 0 0; font-size: 13px; }
.mf-state { font-size: 12px; border: 1px solid #d7e2f0; padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
.mf-state-published { color: #167450; background: #e8f8ef; border-color: #bbe8cd; }
.mf-state-paused { color: #a16008; background: #fff4df; border-color: #f3d9a6; }
.mf-state-draft { color: #67758a; background: #f3f6fa; }
.mf-message { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #c8dcf6; background: #f1f7ff; border-radius: 5px; font-size: 13px; overflow-wrap: anywhere; }
.mf-auto-status { min-height: 18px; margin: -4px 0 10px; color: #168064; font-size: 12px; }
.mf-auto-status[data-error="true"] { color: #bb3a2d; }
.mf-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid #dce5ee; margin-bottom: 18px; }
.mf-stat-strip > div { min-width: 0; padding: 13px 16px; border-right: 1px solid #e5ebf1; }
.mf-stat-strip > div:first-child { padding-left: 0; }
.mf-stat-strip > div:last-child { border-right: 0; }
.mf-stat-strip small { display: block; color: #66788e; margin-bottom: 3px; }
.mf-stat-strip strong { font-size: 21px; line-height: 1.2; }
.mf-admin-section { padding: 18px 0 21px; border-bottom: 1px solid #dce5ee; }
.mf-admin-section:last-child { border-bottom: 0; }
.mf-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mf-section-head h3 { margin: 0; font-size: 16px; }
.mf-section-head span { color: #6e7c8f; font-size: 12px; text-align: right; }
.mf-section-head span[data-invalid="true"] { color: #c23b2c; font-weight: 700; }
.mf-odds-warning { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #e35c40; background: #fff3ed; color: #9c392b; font-size: 13px; }
.mf-admin input, .mf-admin select, .mf-admin textarea { border: 1px solid #d2dfea; border-radius: 5px; background: #fff; color: #22374c; font: inherit; padding: 8px 10px; min-width: 0; }
.mf-admin input:focus, .mf-admin select:focus, .mf-admin textarea:focus { outline: 2px solid #9dccf6; outline-offset: 1px; }
.mf-admin input[type="checkbox"] { width: 17px; height: 17px; padding: 0; accent-color: #167a78; }
.mf-admin button { border: 1px solid #cbd8e8; border-radius: 5px; background: #fff; color: #275a82; padding: 8px 11px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mf-admin button:hover { background: #edf5fb; }
.mf-admin button:disabled { opacity: .45; cursor: default; }
.mf-admin button.mf-primary { background: #155a83; border-color: #155a83; color: #fff; }
.mf-admin button.mf-primary:hover { background: #0d476a; }
.mf-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mf-settings-grid label, .mf-grant-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #4b6076; font-size: 13px; }
.mf-settings-grid label input, .mf-settings-grid label select, .mf-settings-grid textarea, .mf-grant-form input { width: 100%; }
.mf-settings-grid label small { color: #7a8999; font-weight: 400; }
.mf-settings-grid .mf-wide { grid-column: 1 / -1; }
.mf-settings-grid textarea { resize: vertical; }
.mf-form-footer { display: flex; justify-content: flex-end; }
.mf-link-row { margin-top: 17px; border-top: 1px dashed #dce5ee; padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mf-link-row strong, .mf-link-row small { display: block; }
.mf-link-row small, .mf-muted { color: #6c7d8e; font-size: 12px; }
.mf-prize-head, .mf-prize-row { display: grid; grid-template-columns: minmax(160px, 1.6fr) minmax(110px, .8fr) minmax(110px, .8fr) 84px minmax(120px, 1fr); gap: 8px; align-items: center; }
.mf-prize-head { color: #66788e; font-size: 12px; padding: 0 8px 8px; }
.mf-prize-row { border-top: 1px solid #ebeff4; padding: 10px 8px; }
.mf-prize-row label:not(.mf-switch) { position: relative; min-width: 0; }
.mf-prize-row label:not(.mf-switch) input { width: 100%; }
.mf-prize-row label:not(.mf-switch) span { display: none; }
.mf-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.mf-row-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.mf-row-actions small { color: #677b8d; width: 100%; text-align: right; }
.mf-row-actions button { padding: 5px 8px; font-size: 12px; }
.mf-percent-field { position: relative; }
.mf-percent-field input { padding-right: 29px; }
.mf-percent-field b { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); color: #526a7d; font-size: 13px; pointer-events: none; }
.mf-task-editor { display: grid; gap: 7px; }
.mf-task-editor > strong { font-size: 13px; color: #4b6076; }
.mf-task-editor > small { font-size: 12px; color: #7a8999; }
.mf-task-editor > button { justify-self: start; }
#mf-task-rows { display: grid; gap: 4px; }
.mf-task-row { display: grid; grid-template-columns: 26px minmax(120px, 1fr) 110px 20px 32px; align-items: end; gap: 8px; max-width: 715px; }
.mf-admin .mf-task-drag { width: 26px; height: 36px; padding: 0; touch-action: none; user-select: none; cursor: grab; color: #657c92; font-size: 19px; line-height: 1; }
.mf-task-row.is-dragging { position: relative; z-index: 1; background: #edf6ff; box-shadow: 0 2px 7px #c7d9ec; }
.mf-task-row.is-dragging .mf-task-drag { cursor: grabbing; }
.mf-task-row label { font-size: 11px; color: #687d8f; }
.mf-task-row input { width: 100%; }
.mf-task-row > span { padding-bottom: 8px; font-size: 12px; }
.mf-heat-editor { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid #e7edf3; }
.mf-heat-editor > strong { font-size: 13px; color: #4b6076; }
.mf-heat-editor > small { font-size: 12px; color: #7a8999; }
.mf-heat-editor > button { justify-self: start; }
.mf-heat-row { display: grid; grid-template-columns: minmax(100px, 150px) minmax(130px, 1fr) auto; align-items: end; gap: 8px; max-width: 680px; }
.mf-heat-row label { font-size: 11px; color: #687d8f; }
.mf-heat-row input { width: 100%; }
.mf-new-row { background: #f6f9fc; }
.mf-grant-form { display: grid; grid-template-columns: minmax(130px, 1fr) 100px minmax(170px, 1.5fr) auto; gap: 10px; align-items: end; }
.mf-admin .table-wrap { overflow-x: auto; }
.mf-admin table { width: 100%; border-collapse: collapse; }
.mf-admin th, .mf-admin td { text-align: left; border-bottom: 1px solid #e7edf3; padding: 10px 8px; vertical-align: middle; }
.mf-admin th { font-size: 12px; color: #64778a; }
.mf-admin td { font-size: 13px; }
.mf-admin td small { display: block; color: #789; margin-top: 2px; }
.mf-admin input.mf-record-check { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: #2463eb; }
.mf-batch-bar { display: flex; gap: 8px; margin: 10px 0; }
.mf-delivery { font-weight: 600; font-size: 12px; }
.mf-delivery-success { color: #16834f; }
.mf-delivery-failed, .mf-delivery-unknown { color: #d44632; }
.mf-delivery-queued, .mf-delivery-sending { color: #a26d14; }
.mf-admin .mf-deliver { display: block; margin-top: 6px; color: #1959d1; }
.mf-admin td:last-child small { overflow-wrap: anywhere; max-width: 230px; }
.mf-pages { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; font-size: 12px; color: #697c8f; }
@media (max-width: 800px) {
  .mf-admin { padding: 14px 12px 26px; }
  .mf-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .mf-stat-strip > div:nth-child(2) { border-right: 0; }
  .mf-stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid #e5ebf1; }
  .mf-stat-strip > div:nth-child(3) { padding-left: 0; }
  .mf-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-prize-head { display: none; }
  .mf-prize-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 0; }
  .mf-prize-row > input[name="title"] { grid-column: 1 / -1; width: 100%; }
  .mf-prize-row label:not(.mf-switch) span { display: block; font-size: 11px; color: #687d8f; margin-bottom: 3px; }
  .mf-row-actions { grid-column: 1 / -1; }
  .mf-grant-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-grant-form label:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .mf-task-row { grid-template-columns: 24px minmax(100px, 1fr) 88px 16px 30px; gap: 5px; }
  .mf-admin .mf-task-drag { width: 24px; }
  .mf-heat-row { grid-template-columns: minmax(82px, 1fr) minmax(105px, 1.4fr) auto; gap: 5px; }
  .mf-admin-head h2 { font-size: 20px; }
  .mf-stat-strip strong { font-size: 18px; }
  .mf-section-head { align-items: flex-start; flex-direction: column; }
  .mf-section-head span { text-align: left; }
  .mf-link-row { align-items: flex-start; flex-direction: column; }
}

/* Activity management: compact overview with separate configuration and fulfillment views. */
.mf-admin { max-width: 1480px; padding: 22px 24px 32px; background: #fff; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #293344; }
.mf-admin [hidden] { display: none !important; }
.mf-admin-head { margin-bottom: 20px; align-items: center; }
.mf-admin-head h2 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 21px; }
.mf-admin-head p { font-size: 12px; margin-top: 7px; color: #748093; }
.mf-head-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.mf-auto-status { margin: 0; min-height: 0; font-size: 12px; }
.mf-stat-strip { background: #f6f8fb; border: 0; margin: 0 0 20px; padding: 14px 0; }
.mf-stat-strip > div { padding: 0 22px; border-color: #e0e5ec; }
.mf-stat-strip > div:first-child { padding-left: 22px; }
.mf-stat-strip small { font-size: 12px; color: #6d7788; }
.mf-stat-strip strong { font-size: 26px; font-variant-numeric: tabular-nums; color: #263143; }
.mf-stat-strip .mf-stat-pending strong { color: #cf4b3f; }
.mf-stat-strip .mf-stat-heat strong { color: #b27016; }
.mf-tabs { display: flex; gap: 24px; border-bottom: 1px solid #dbe1e9; }
.mf-admin .mf-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 2px; color: #657083; font-size: 14px; }
.mf-admin .mf-tabs button[aria-selected="true"] { color: #205dd4; border-bottom-color: #205dd4; }
.mf-admin button:focus-visible, .mf-admin summary:focus-visible { outline: 2px solid #75a5fa; outline-offset: 3px; }
.mf-admin button { font-size: 13px; min-height: 34px; padding: 6px 11px; box-shadow: none; }
.mf-admin button.mf-primary { background: #2462d5; border-color: #2462d5; }
.mf-admin button.mf-primary:hover { background: #194fb8; }
.mf-admin-section { border: 0; padding: 22px 0 0; }
.mf-section-head { margin-bottom: 18px; align-items: center; }
.mf-section-head h3 { font-size: 15px; }
.mf-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; gap: 22px 24px; }
.mf-settings-grid label, .mf-grant-form label { font-size: 12px; color: #5a6576; }
.mf-settings-grid input, .mf-settings-grid select { min-height: 38px; }
.mf-task-heat-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.mf-task-editor, .mf-heat-editor { display: block; min-width: 0; }
.mf-heat-editor { border-top: 0; border-left: 1px solid #e1e6ed; padding: 0 0 0 28px; }
#mf-task-rows, #mf-heat-rows { display: grid; gap: 12px; margin-bottom: 18px; }
.mf-task-row { grid-template-columns: 26px minmax(0, 1fr) 76px 16px 30px; gap: 7px; max-width: none; }
.mf-task-row label, .mf-heat-row label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: #768192; }
.mf-task-row input, .mf-heat-row input { min-height: 36px; font-size: 13px; }
.mf-task-row > span { padding-bottom: 8px; }
.mf-admin .mf-task-drag { min-height: 36px; }
.mf-heat-row { grid-template-columns: 100px minmax(0, 1fr) auto; max-width: none; }
.mf-admin .mf-task-remove { width: 30px; padding: 0; height: 36px; color: #8a95a5; }
.mf-prize-head { background: #f6f8fb; padding: 10px 12px; }
.mf-prize-row { padding: 14px 12px; }
.mf-stock-summary { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; line-height: 1.5; font-size: 12px; }
.mf-stock-summary strong { color: #147c74; font-weight: 600; }
.mf-stock-summary small, .mf-stock-toolbar small { color: #687d8f; font-size: 12px; }
.mf-stock-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.mf-prize-head, .mf-prize-row { grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(110px, 1fr) 90px minmax(120px, 1fr); gap: 18px; }
.mf-new-row { margin-top: 12px; background: #f8fafc; border: 1px dashed #dce3ec; }
.mf-record-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mf-record-tabs { display: flex; gap: 4px; padding: 3px; background: #f0f3f7; border-radius: 5px; }
.mf-admin .mf-record-tabs button { background: transparent; border: 1px solid transparent; color: #697588; font-weight: 500; padding: 5px 12px; }
.mf-admin .mf-record-tabs button[aria-selected="true"] { background: #fff; border-color: #dfe5ed; color: #28364b; }
.mf-record-tabs b { font-size: 11px; padding-left: 6px; font-weight: 600; }
.mf-batch-bar { margin: 0 0 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mf-batch-bar select { width: 140px; flex: 0 0 140px; height: 34px; font-size: 12px; padding: 5px 28px 5px 10px; }
.mf-batch-bar > span { font-size: 12px; color: #8090a2; margin-left: auto; }
.mf-record-table th { background: #f6f8fb; white-space: nowrap; font-weight: 500; }
.mf-record-table td { padding: 14px 10px; font-size: 12px; }
.mf-record-table th:first-child, .mf-record-table td:first-child { width: 34px; }
.mf-record-table td:nth-child(2) strong { font-size: 13px; color: #28364b; }
.mf-record-table td:nth-child(2) small { max-width: 180px; font-size: 11px; }
.mf-record-table td:nth-child(3) { font-weight: 600; }
.mf-record-table td:nth-child(4) { color: #748094; font-size: 11px; max-width: 130px; }
.mf-record-table td:nth-child(5) { color: #768195; white-space: nowrap; }
.mf-handling { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 4px; background: #f2f4f7; }
.mf-handling-pending { color: #9b6b18; background: #fff5dd; }
.mf-handling-fulfilled { color: #18805a; background: #eaf7ef; }
.mf-mobile-select { display: none; }
.mf-record-table tr:hover td { background: #f9fbff; }
.mf-record-actions { min-width: 200px; }
.mf-record-actions button { margin: 2px 5px 2px 0; font-size: 12px; }
.mf-delivery-cell { min-width: 140px; }
.mf-receipt { color: #7c8899; font-size: 11px; margin-top: 4px; }
.mf-receipt summary { cursor: pointer; }
.mf-receipt small { max-width: 220px; overflow-wrap: anywhere; }
.mf-grant-disclosure { border-top: 1px solid #e0e5ec; margin-top: 24px; padding-top: 16px; }
.mf-grant-disclosure > summary { cursor: pointer; color: #5b6d85; font-size: 13px; font-weight: 600; }
.mf-grant-form { padding-top: 18px; max-width: 1000px; }
.mf-pages { font-variant-numeric: tabular-nums; }
@media (max-width: 1050px) {
  .mf-task-heat-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mf-heat-editor { border-left: 0; border-top: 1px solid #e1e6ed; padding: 24px 0 0; }
  .mf-task-row { max-width: 720px; }
  .mf-heat-row { max-width: 640px; }
}
@media (max-width: 700px) {
  .mf-admin { padding: 16px 12px 28px; }
  .mf-admin-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .mf-admin-head h2 { font-size: 19px; gap: 8px; }
  .mf-head-actions { width: 100%; justify-content: space-between; }
  .mf-stat-strip { padding: 10px 0; margin-bottom: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mf-stat-strip > div, .mf-stat-strip > div:first-child, .mf-stat-strip > div:nth-child(3) { padding: 0 6px; border: 0; border-right: 1px solid #e0e5ec; }
  .mf-stat-strip > div:last-child { border-right: 0; }
  .mf-stat-strip small { font-size: 11px; white-space: nowrap; }
  .mf-stat-strip strong { font-size: 23px; }
  .mf-tabs { gap: 0; justify-content: space-between; }
  .mf-admin .mf-tabs button { padding: 12px 2px; font-size: 12px; }
  .mf-admin-section { padding-top: 18px; }
  .mf-section-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .mf-record-tabs b { padding-left: 3px; }
  .mf-admin .mf-record-tabs button { padding: 5px 8px; font-size: 12px; }
  .mf-record-navigation { gap: 6px; }
  .mf-record-navigation > button { font-size: 12px; padding: 5px 8px; }
  .mf-record-table table, .mf-record-table tbody { display: block; min-width: 0; width: 100%; }
  .mf-record-table thead { display: none; }
  .mf-record-table tr { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 15px 0; border-bottom: 1px solid #e1e6ed; }
  .mf-admin .mf-record-table table tbody td { display: block; border: 0; padding: 0; min-width: 0; max-width: none; }
  .mf-record-table td:first-child { width: 20px; grid-row: 1 / 5; }
  .mf-record-table td:nth-child(2) { grid-column: 2 / 4; }
  .mf-record-table td:nth-child(2) small { max-width: none; }
  .mf-record-table td:nth-child(3) { grid-column: 2 / 4; font-size: 14px; }
  .mf-record-table td:nth-child(4) { grid-column: 2 / 4; max-width: none; }
  .mf-record-table td:nth-child(5) { grid-column: 2; font-size: 11px; }
  .mf-record-table td:nth-child(7) { grid-row: 4; grid-column: 3; min-width: 0; text-align: right; }
  .mf-record-table td:nth-child(6) { grid-column: 2 / 4; }
  .mf-record-table .mf-record-actions { min-width: 0; }
  .mf-record-table td[colspan] { grid-column: 1 / -1; }
  .mf-record-table .mf-receipt small { max-width: none; }
  .mf-record-table tr:hover td { background: transparent; }
  .mf-batch-bar > span { margin-left: 0; }
  .mf-batch-bar select { width: 115px; flex-basis: 115px; }
  .mf-mobile-select { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: #768195; }
  .mf-pages { flex-wrap: wrap; gap: 6px; }
  .mf-settings-grid { gap: 18px 12px; }
  .mf-task-row { grid-template-columns: 24px minmax(0, 1fr) 66px 12px 28px; gap: 5px; }
  .mf-heat-row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px; }
  .mf-prize-row { padding: 14px 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .mf-admin * { scroll-behavior: auto; } }
