/* JoyJoy staff role: Editor. Shared across all cabinet layouts/bundles. */
.staff-role-label.is-editor,
.management-role-badge.is-editor,
.account-role-badge.is-editor,
.admin-role-chip.is-editor{
  color:#5b21b6!important;
  background:#f3e8ff!important;
  border:1px solid #d8b4fe!important;
}
.staff-control-strip.is-editor-mode .staff-developer-mode,
body[data-account-role="editor"] .staff-developer-mode{
  border-color:rgba(124,58,237,.24);
  background:linear-gradient(180deg,rgba(245,243,255,.92),rgba(250,250,255,.96));
}
body[data-account-role="editor"] .staff-developer-mode input:checked+i{
  background:#7c3aed!important;
  border-color:#7c3aed!important;
}
body[data-account-role="editor"] .developer-mode-live{
  border-color:#d8b4fe;
  background:#f3e8ff;
  color:#5b21b6;
}
html[data-theme="dark"] :is(.staff-role-label,.management-role-badge,.account-role-badge,.admin-role-chip).is-editor{
  color:#d8b4fe!important;
  background:rgba(124,58,237,.2)!important;
  border-color:rgba(196,181,253,.38)!important;
}
html[data-theme="dark"] body[data-account-role="editor"] .staff-developer-mode{
  border-color:rgba(167,139,250,.3);
  background:rgba(76,29,149,.14);
}
html[data-theme="dark"] body[data-account-role="editor"] .developer-mode-live{
  border-color:rgba(196,181,253,.35);
  background:rgba(124,58,237,.18);
  color:#ddd6fe;
}

/* Editor console is deny-by-default even before the admin runtime module finishes loading. */
body[data-account-role="editor"] #panel-admin .admin-hub-nav [data-admin-hub-tab]:not([data-admin-hub-tab="users"]):not([data-admin-hub-tab="promocodes"]):not([data-admin-hub-tab="availability"]):not([data-admin-hub-tab="mail"]):not([data-admin-hub-tab="announcements"]),
body[data-account-role="editor"] #panel-admin [data-admin-hub-view]:not([data-admin-hub-view="users"]):not([data-admin-hub-view="promocodes"]):not([data-admin-hub-view="availability"]):not([data-admin-hub-view="mail"]):not([data-admin-hub-view="announcements"]),
body[data-account-role="editor"] #panel-admin [data-admin-announcement-mode-v2="bots"],
body[data-account-role="editor"] #panel-admin [data-admin-announcement-mode-panel-v2="bots"],
body[data-account-role="editor"] #panel-admin .admin-promocode-editor-b3c7a81a8{
  display:none!important;
}

/* Editor user access is read-only at the UI layer; API mutations stay Administrator-only. */
body[data-account-role="editor"] #panel-admin .admin-add-tester-card{display:none!important;}
body[data-account-role="editor"] #panel-admin .admin-account-access-v29.is-editor-readonly-v31{
  border-color:rgba(124,58,237,.2);
  background:linear-gradient(180deg,rgba(250,248,255,.96),rgba(255,255,255,.98));
}
body[data-account-role="editor"] #panel-admin .admin-account-access-v29.is-editor-readonly-v31 code{
  overflow-wrap:anywhere;
  word-break:break-word;
}
html[data-theme="dark"] body[data-account-role="editor"] #panel-admin .admin-account-access-v29.is-editor-readonly-v31{
  border-color:rgba(167,139,250,.28);
  background:rgba(76,29,149,.10);
}
