#gzx-member-enhancement-root, #gzx-member-enhancement-root * { box-sizing: border-box; }
#gzx-member-enhancement-root { font-family: Manrope, "Noto Sans SC", sans-serif; }
#gzx-member-enhancement-root [hidden] { display: none !important; }
.gzx-mm-fab { position: fixed; right: 24px; bottom: 24px; z-index: 99990; border: 0; border-radius: 999px; padding: 12px 18px; background: #1d4ed8; color: #fff; font-weight: 800; box-shadow: 0 14px 36px rgba(29,78,216,.35); cursor: pointer; }
.gzx-mm-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px; background: rgba(8,17,32,.62); }
.gzx-mm-modal { width: min(1100px, 100%); margin: auto; display: flex; flex-direction: column; border: 1px solid #dfe5ee; border-radius: 18px; background: #fff; color: #172033; box-shadow: 0 28px 90px rgba(8,17,32,.32); overflow: hidden; }
.gzx-mm-small-modal { width: min(560px, 100%); }
.gzx-mm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid #e8edf4; background: linear-gradient(180deg, #fff, #fbfcff); }
.gzx-mm-head h2 { margin: 4px 0 6px; font-size: 23px; letter-spacing: -.03em; }
.gzx-mm-head p { margin: 0; color: #66758a; font-size: 13px; }
.gzx-mm-eyebrow { margin: 0; color: #2563eb !important; font-size: 11px !important; font-weight: 800; letter-spacing: .12em; }
.gzx-mm-close { border: 0; background: transparent; color: #66758a; font-size: 30px; line-height: 1; cursor: pointer; }
.gzx-mm-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid #edf1f6; background: #f8fafc; }
.gzx-mm-toolbar input, .gzx-mm-toolbar select, .gzx-mm-form input, .gzx-mm-form select { min-height: 40px; border: 1px solid #d7deea; border-radius: 9px; background: #fff; color: #172033; padding: 0 12px; font: inherit; }
.gzx-mm-toolbar input { flex: 1; min-width: 180px; }
.gzx-mm-toolbar select { width: 240px; }
.gzx-mm-count { margin-left: auto; color: #66758a; font-size: 13px; white-space: nowrap; }
.gzx-mm-body { min-height: 160px; max-height: calc(100vh - 235px); overflow: auto; padding: 18px 22px 22px; }
.gzx-mm-empty { margin: 40px 0; text-align: center; color: #7b8798; }
.gzx-mm-department { margin-bottom: 22px; border: 1px solid #edf1f6; border-radius: 14px; overflow: hidden; }
.gzx-mm-department > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #edf1f6; }
.gzx-mm-department > header > div { display: flex; align-items: center; gap: 10px; }
.gzx-mm-department > header span { display: inline-flex; min-width: 38px; justify-content: center; padding: 3px 7px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 11px; font-weight: 800; }
.gzx-mm-department > header b { font-size: 15px; }
.gzx-mm-department > header em { color: #66758a; font-size: 13px; font-style: normal; }
.gzx-mm-table-wrap { overflow-x: auto; }
.gzx-mm-table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; }
.gzx-mm-table-wrap th { padding: 10px 14px; background: #fff; color: #66758a; font-size: 12px; text-align: left; border-bottom: 1px solid #edf1f6; }
.gzx-mm-table-wrap td { padding: 11px 14px; border-bottom: 1px solid #f1f4f8; font-size: 13px; vertical-align: middle; }
.gzx-mm-table-wrap td small { display: block; margin-top: 3px; color: #9aa5b4; font-size: 11px; }
.gzx-mm-row-actions { display: flex; gap: 7px; white-space: nowrap; }
.gzx-mm-empty-row { padding: 22px !important; text-align: center; color: #98a2b3; }
.gzx-mm-role { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 12px; font-weight: 700; }
.gzx-mm-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #eef2f6; color: #475569; font-size: 12px; font-weight: 700; }
.gzx-mm-status.is-active { background: #dcfce7; color: #166534; }
.gzx-mm-status.is-pending { background: #fef3c7; color: #92400e; }
.gzx-mm-status.is-inactive { background: #fee2e2; color: #991b1b; }
.gzx-mm-primary, .gzx-mm-secondary { border: 0; border-radius: 9px; min-height: 38px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; }
.gzx-mm-primary { background: #1d4ed8; color: #fff; }
.gzx-mm-secondary { background: #eef2f6; color: #334155; }
.gzx-mm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid #e8edf4; background: #fbfcff; }
.gzx-mm-form { display: flex; flex-direction: column; }
.gzx-mm-form [data-mm-edit-fields] { display: grid; gap: 14px; padding: 20px 22px; }
.gzx-mm-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.gzx-mm-form input, .gzx-mm-form select { width: 100%; min-height: 42px; }
.gzx-mm-account-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; color: #66758a; }
.gzx-mm-account-note code { color: #172033; font-weight: 800; }
.gzx-mm-account-note b { color: #991b1b; margin-left: 5px; }
.gzx-mm-hint { margin: 0; color: #66758a; font-size: 12px; line-height: 1.7; }
.gzx-mm-permission-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; }
.gzx-mm-permission-grid section { min-width: 0; }
.gzx-mm-permission-grid h3 { margin: 0 0 12px; font-size: 15px; }
.gzx-mm-flags { display: grid; gap: 9px; }
.gzx-mm-check, .gzx-mm-client { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #e4e9f1; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 650; }
.gzx-mm-check input, .gzx-mm-client input { width: 17px; height: 17px; accent-color: #1d4ed8; }
.gzx-mm-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 9px; max-height: 380px; overflow: auto; padding-right: 4px; }
.gzx-mm-client span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gzx-mm-client small { margin-left: auto; color: #98a2b3; font-size: 10px; }
.gzx-mm-toast { position: fixed; right: 24px; bottom: 84px; z-index: 100010; max-width: min(420px, calc(100vw - 48px)); padding: 11px 14px; border-radius: 10px; background: #172033; color: #fff; font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.gzx-mm-toast.is-show { opacity: 1; transform: translateY(0); }
.gzx-mm-toast.is-error { background: #991b1b; }
.gzx-mm-toast.is-success { background: #166534; }
@media (max-width: 760px) {
  .gzx-mm-overlay { padding: 10px; }
  .gzx-mm-toolbar { flex-wrap: wrap; }
  .gzx-mm-toolbar input, .gzx-mm-toolbar select { flex: 1 1 100%; width: 100%; }
  .gzx-mm-count { margin-left: 0; }
  .gzx-mm-body { max-height: calc(100vh - 260px); padding: 12px; }
  .gzx-mm-permission-grid { grid-template-columns: 1fr; }
  .gzx-mm-account-note { align-items: flex-start; flex-direction: column; }
}
