:root {
  --platform-bg: #050b16;
  --platform-panel: rgba(10, 22, 39, 0.94);
  --platform-panel-soft: rgba(13, 29, 49, 0.82);
  --platform-line: rgba(86, 170, 230, 0.22);
  --platform-cyan: #24c8ff;
  --platform-blue: #2f7cff;
  --platform-green: #2de3a5;
  --platform-gold: #f4bd4f;
  --platform-red: #ff5f78;
  --platform-text: #f5f9ff;
  --platform-muted: #91a6bd;
}

.platform-admin-overlay[hidden],
.platform-editor[hidden],
.platform-confirm[hidden],
.platform-toast[hidden] {
  display: none !important;
}

body.platform-admin-locked,
body.platform-admin-open {
  overflow: hidden !important;
}

.platform-admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--platform-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(30, 134, 255, 0.2), transparent 33%),
    radial-gradient(circle at 90% 84%, rgba(22, 214, 184, 0.14), transparent 28%),
    rgba(2, 7, 15, 0.88);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  animation: platform-fade-in 180ms ease-out;
}

.platform-admin-dialog {
  position: relative;
  width: min(1420px, 100%);
  height: min(900px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(77, 172, 236, 0.34);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(18, 39, 66, 0.72), transparent 42%),
    linear-gradient(180deg, #081321, #050c16 76%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.045);
  animation: platform-dialog-in 240ms cubic-bezier(.2,.8,.2,1);
}

.platform-admin-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(68, 153, 209, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 153, 209, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.platform-admin-header,
.platform-admin-toolbar,
.platform-summary,
.platform-panel {
  position: relative;
  z-index: 1;
}

.platform-admin-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--platform-line);
  background: linear-gradient(90deg, rgba(18, 54, 88, 0.64), rgba(7, 19, 34, 0.7));
}

.platform-owner-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(244, 189, 79, 0.62);
  border-radius: 17px;
  color: #ffe8a6;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, rgba(244, 189, 79, 0.25), rgba(41, 22, 3, 0.45));
  box-shadow: 0 0 32px rgba(244, 189, 79, 0.15), inset 0 1px rgba(255, 255, 255, 0.14);
}

.platform-admin-heading p,
.platform-editor header p {
  margin: 0 0 5px;
  color: var(--platform-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.platform-admin-heading h2,
.platform-editor header h3 {
  margin: 0;
  color: var(--platform-text);
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.platform-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--platform-line);
  border-radius: 13px;
  color: #d8eaff;
  font: 500 25px/1 inherit;
  background: rgba(6, 16, 29, 0.76);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 200, 255, 0.7);
  background: rgba(23, 68, 99, 0.68);
}

.platform-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px 12px;
}

.platform-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--platform-line);
  border-radius: 15px;
  background: rgba(2, 10, 19, 0.7);
}

.platform-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: var(--platform-muted);
  font: 800 13px/1 inherit;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.platform-tabs button.is-active {
  color: white;
  background: linear-gradient(135deg, #1878d8, #10a9dc);
  box-shadow: 0 8px 22px rgba(16, 157, 220, 0.24);
}

.platform-primary-button,
.platform-secondary-button,
.platform-danger-button,
.platform-danger-ghost {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font: 850 13px/1 inherit;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease, background 150ms ease;
}

.platform-primary-button {
  border: 1px solid rgba(79, 211, 255, 0.52);
  color: #00111d;
  background: linear-gradient(135deg, #43d9ff, #159ee8);
  box-shadow: 0 12px 30px rgba(21, 158, 232, 0.2);
}

.platform-secondary-button {
  border: 1px solid rgba(91, 164, 218, 0.3);
  color: #d9ebfb;
  background: rgba(10, 25, 43, 0.74);
}

.platform-danger-button {
  border: 1px solid rgba(255, 95, 120, 0.5);
  color: white;
  background: linear-gradient(135deg, #e94364, #b72246);
}

.platform-danger-ghost {
  border: 1px solid rgba(255, 95, 120, 0.32);
  color: #ff9aac;
  background: rgba(105, 18, 42, 0.2);
}

.platform-primary-button:hover,
.platform-secondary-button:hover,
.platform-danger-button:hover,
.platform-danger-ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.platform-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 26px 14px;
}

.platform-summary > article {
  position: relative;
  overflow: hidden;
  min-height: 75px;
  padding: 14px 16px;
  border: 1px solid var(--platform-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 42, 68, 0.8), rgba(7, 18, 31, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.platform-summary > article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: inherit;
  background: linear-gradient(var(--platform-cyan), var(--platform-blue));
  box-shadow: 0 0 18px rgba(36, 200, 255, 0.45);
}

.platform-summary > article:nth-child(2)::before { background: var(--platform-green); }
.platform-summary > article:nth-child(3)::before { background: var(--platform-gold); }
.platform-summary > article:nth-child(4)::before { background: #9b7dff; }

.platform-summary > article > span {
  display: block;
  margin-bottom: 6px;
  color: var(--platform-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-summary strong {
  color: white;
  font-size: 25px;
  line-height: 1;
}

.platform-summary small {
  display: block;
  margin-top: 7px;
  color: #839bb0;
  font-size: 10px;
  font-weight: 650;
}

.platform-panel {
  display: none;
  height: calc(100% - 294px);
  min-height: 250px;
  overflow: auto;
  padding: 0 26px 26px;
  scrollbar-color: rgba(49, 173, 231, 0.55) transparent;
}

.platform-panel.is-active {
  display: block;
  animation: platform-panel-in 170ms ease-out;
}

.platform-user-tools,
.platform-audit-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 14px;
  background: linear-gradient(#07101d 72%, transparent);
}

.platform-search {
  display: flex;
  align-items: center;
  width: min(650px, 100%);
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--platform-line);
  border-radius: 14px;
  background: rgba(3, 12, 23, 0.84);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.2);
}

.platform-search > span {
  color: var(--platform-cyan);
  font-size: 20px;
}

.platform-search input {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: white;
  font: 600 14px/1 inherit;
  background: transparent;
}

.platform-user-list {
  display: grid;
  gap: 10px;
}

.platform-user-card {
  display: grid;
  grid-template-columns: auto minmax(210px, 1.15fr) minmax(280px, 1.5fr) minmax(150px, .65fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 98px;
  padding: 15px 17px;
  border: 1px solid rgba(72, 146, 198, 0.22);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(13, 31, 52, 0.96), rgba(7, 17, 30, 0.9));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.platform-user-card:disabled {
  opacity: 1;
  cursor: default;
}

.platform-user-card:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 190, 242, 0.42);
  background: linear-gradient(105deg, rgba(15, 40, 66, 0.98), rgba(7, 19, 34, 0.93));
}

.platform-user-card.is-owner {
  border-color: rgba(244, 189, 79, 0.42);
  background: linear-gradient(105deg, rgba(63, 43, 12, 0.55), rgba(9, 22, 36, 0.96));
  box-shadow: 0 12px 34px rgba(80, 48, 6, 0.16), inset 3px 0 var(--platform-gold);
}

.platform-user-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(53, 188, 244, 0.42);
  border-radius: 15px;
  color: #bfeeff;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(19, 124, 179, 0.45), rgba(13, 42, 72, 0.75));
}

.is-owner .platform-user-avatar {
  border-color: rgba(244, 189, 79, 0.55);
  color: #ffe7a0;
  background: rgba(130, 82, 8, 0.3);
}

.platform-user-identity,
.platform-user-access,
.platform-user-state {
  min-width: 0;
}

.platform-user-identity strong,
.platform-user-access strong {
  display: block;
  overflow: hidden;
  color: #f7fbff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-user-identity span,
.platform-user-access span,
.platform-user-state small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--platform-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-user-identity em {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #a8bfd2;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-role-badge,
.platform-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(67, 191, 241, 0.32);
  border-radius: 999px;
  color: #9be7ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(15, 105, 151, 0.2);
}

.platform-role-badge.owner,
.platform-role-badge.is-owner {
  border-color: rgba(244, 189, 79, 0.5);
  color: #ffe391;
  background: rgba(154, 102, 17, 0.22);
}

.platform-status-badge.active,
.platform-status-badge.is-active {
  border-color: rgba(45, 227, 165, 0.38);
  color: #6cf1c1;
  background: rgba(20, 131, 94, 0.2);
}

.platform-status-badge.pending,
.platform-status-badge.is-pending {
  border-color: rgba(244, 189, 79, 0.38);
  color: #ffd275;
  background: rgba(151, 98, 13, 0.2);
}

.platform-status-badge.disabled,
.platform-status-badge.is-disabled {
  border-color: rgba(255, 95, 120, 0.4);
  color: #ff9bad;
  background: rgba(140, 30, 55, 0.2);
}

.platform-app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.platform-app-chips i {
  padding: 4px 7px;
  border: 1px solid rgba(85, 155, 205, 0.22);
  border-radius: 7px;
  color: #a9bfd4;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  background: rgba(8, 20, 34, 0.7);
}

.platform-user-action {
  min-width: 92px;
}

.platform-owner-entry {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px !important;
  width: calc(100% - 12px) !important;
  min-height: 62px;
  margin: 6px !important;
  padding: 9px 11px !important;
  overflow: hidden;
  border: 1px solid rgba(244, 189, 79, 0.38) !important;
  border-radius: 14px !important;
  color: #fff2c6 !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 0 0, rgba(244, 189, 79, 0.18), transparent 52%),
    linear-gradient(110deg, rgba(68, 45, 9, 0.5), rgba(8, 28, 45, 0.88)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 9px 24px rgba(0, 0, 0, 0.2) !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

.platform-owner-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#ffe39b, #c98c24);
  box-shadow: 0 0 14px rgba(244, 189, 79, 0.6);
}

.platform-owner-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 189, 79, 0.68) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 13px 28px rgba(0, 0, 0, 0.28) !important;
}

.platform-owner-entry-icon {
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 189, 79, 0.5);
  border-radius: 11px;
  color: #ffe39b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, rgba(244, 189, 79, 0.22), rgba(47, 27, 3, 0.5));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

.platform-owner-entry > span:nth-child(2) {
  display: block;
  min-width: 0;
  color: #fff4d2;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.platform-owner-entry small {
  display: block;
  margin-top: 4px;
  color: #baa882 !important;
  font-size: 10px;
  font-weight: 650;
}

.platform-owner-entry > i {
  color: #e5bd62;
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.platform-audit-head > div strong,
.platform-audit-head > div span {
  display: block;
}

.platform-audit-head > div span {
  margin-top: 4px;
  color: var(--platform-muted);
  font-size: 12px;
}

.platform-audit-list {
  display: grid;
  gap: 9px;
}

.platform-audit-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(78, 147, 198, 0.2);
  border-radius: 15px;
  background: rgba(8, 20, 35, 0.82);
}

.platform-audit-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--platform-cyan);
  box-shadow: 0 0 14px rgba(36, 200, 255, 0.7);
}

.platform-audit-item strong,
.platform-audit-item span,
.platform-audit-item small {
  display: block;
}

.platform-audit-item span,
.platform-audit-item small {
  margin-top: 4px;
  color: var(--platform-muted);
  font-size: 11px;
}

.platform-editor {
  position: fixed;
  inset: 0;
  z-index: 12020;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 0;
  border: 0;
  color: var(--platform-text);
  background:
    radial-gradient(circle at 12% 0, rgba(32, 129, 208, 0.2), transparent 34%),
    radial-gradient(circle at 92% 85%, rgba(29, 210, 167, 0.1), transparent 28%),
    linear-gradient(180deg, #071321, #030912);
  box-shadow: none;
  animation: platform-editor-in 200ms cubic-bezier(.2,.8,.2,1);
  scrollbar-color: rgba(49, 173, 231, 0.55) transparent;
}

.platform-editor::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(72, 158, 216, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 158, 216, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.platform-editor > header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  min-height: 94px;
  padding: 21px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--platform-line);
  background: rgba(6, 17, 30, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.platform-user-form {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.platform-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-form-grid label > span {
  display: block;
  margin: 0 0 7px 2px;
  color: #b8ccde;
  font-size: 11px;
  font-weight: 800;
}

.platform-form-grid input,
.platform-form-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(77, 155, 211, 0.28);
  border-radius: 12px;
  outline: none;
  color: white;
  font: 650 14px/1 inherit;
  background: rgba(3, 12, 23, 0.88);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.platform-form-grid input:focus,
.platform-form-grid select:focus {
  border-color: rgba(36, 200, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(36, 200, 255, 0.1);
}

.platform-form-grid input:disabled {
  color: #9cb0c3;
  background: rgba(22, 35, 48, 0.72);
}

.platform-role-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(72, 156, 214, 0.22);
  border-radius: 12px;
  color: #9fb7ca;
  font-size: 12px;
  background: rgba(12, 31, 50, 0.6);
}

.platform-access-fieldset {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid rgba(76, 153, 207, 0.24);
  border-radius: 16px;
  background: rgba(7, 18, 31, 0.7);
}

.platform-access-fieldset legend {
  padding: 0 7px;
  color: white;
  font-size: 14px;
  font-weight: 850;
}

.platform-scope-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.platform-scope-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 149, 199, 0.22);
  border-radius: 13px;
  background: rgba(8, 23, 39, 0.84);
  cursor: pointer;
}

.platform-scope-card input {
  position: absolute;
  opacity: 0;
}

.platform-scope-card > i {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(85, 164, 219, 0.5);
  border-radius: 7px;
  background: rgba(2, 11, 21, 0.8);
}

.platform-scope-card input:checked + i {
  border-color: var(--platform-cyan);
  background: linear-gradient(135deg, var(--platform-cyan), var(--platform-blue));
  box-shadow: 0 0 17px rgba(36, 200, 255, 0.24);
}

.platform-scope-card input:checked + i::after {
  content: "✓";
  display: grid;
  place-items: center;
  height: 100%;
  color: #001827;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.platform-scope-card strong,
.platform-scope-card small {
  display: block;
}

.platform-scope-card strong {
  color: #eef8ff;
  font-size: 12px;
}

.platform-scope-card small {
  margin-top: 4px;
  color: #8299ad;
  font-size: 10px;
}

.platform-privilege-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.platform-privilege-group {
  padding: 11px 12px;
  border: 1px solid rgba(69, 140, 190, 0.18);
  border-radius: 13px;
  background: rgba(4, 14, 26, 0.62);
}

.platform-privilege-group h4 {
  margin: 0 0 8px;
  color: var(--platform-cyan);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.platform-privilege-group > div {
  display: grid;
  gap: 7px;
}

.platform-privilege-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b8cadd;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}

.platform-privilege-item input {
  margin-top: 1px;
  accent-color: var(--platform-cyan);
}

.platform-message {
  margin: 15px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 95, 120, 0.35);
  border-radius: 12px;
  color: #ffadb9;
  font-size: 12px;
  background: rgba(119, 19, 43, 0.2);
}

.platform-editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px -12px -16px;
  padding: 16px 12px;
  border-top: 1px solid var(--platform-line);
  background: rgba(5, 14, 25, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.platform-account-actions,
.platform-editor-save {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.platform-confirm {
  position: fixed;
  inset: 0;
  z-index: 12040;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 12, 0.8);
  backdrop-filter: blur(9px);
}

.platform-confirm > div {
  width: min(440px, 100%);
  padding: 25px;
  border: 1px solid rgba(255, 122, 143, 0.4);
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(145deg, #111d2d, #080f1b);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  animation: platform-dialog-in 180ms ease-out;
}

.platform-confirm-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 95, 120, 0.48);
  border-radius: 15px;
  color: #ff8ca0;
  font-size: 23px;
  font-weight: 900;
  background: rgba(133, 26, 50, 0.25);
}

.platform-confirm h3 {
  margin: 0;
  color: white;
  font-size: 20px;
}

.platform-confirm p {
  margin: 10px 0 20px;
  color: #a8bbcc;
  font-size: 13px;
  line-height: 1.5;
}

.platform-confirm > div > div {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.platform-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12060;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 17px;
  border: 1px solid rgba(45, 227, 165, 0.38);
  border-radius: 13px;
  color: #c9ffeb;
  font-size: 13px;
  font-weight: 750;
  background: rgba(8, 48, 41, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  animation: platform-toast-in 200ms ease-out;
}

.platform-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed rgba(80, 151, 201, 0.28);
  border-radius: 16px;
  color: var(--platform-muted);
  text-align: center;
  background: rgba(6, 17, 29, 0.56);
}

@keyframes platform-fade-in {
  from { opacity: 0; }
}

@keyframes platform-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

@keyframes platform-panel-in {
  from { opacity: 0; transform: translateY(4px); }
}

@keyframes platform-editor-in {
  from { opacity: 0; transform: scale(.992); }
}

@keyframes platform-toast-in {
  from { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 1050px) {
  .platform-user-card {
    grid-template-columns: auto minmax(190px, 1fr) minmax(220px, 1fr) auto;
  }
  .platform-user-state { display: none; }
  .platform-form-grid { grid-template-columns: 1fr 1fr; }
  .platform-scope-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-privilege-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .platform-admin-overlay { padding: 0; }
  .platform-admin-dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .platform-admin-header { min-height: 88px; padding: 15px 16px; }
  .platform-owner-mark { width: 49px; height: 49px; border-radius: 15px; font-size: 16px; }
  .platform-admin-toolbar { padding: 12px 16px 10px; }
  .platform-summary { grid-template-columns: 1fr 1fr; padding: 0 16px 12px; }
  .platform-panel { height: calc(100% - 315px); padding: 0 16px 18px; }
  .platform-user-tools { align-items: stretch; }
  .platform-user-tools .platform-secondary-button { display: none; }
  .platform-user-card { grid-template-columns: auto 1fr auto; gap: 11px; }
  .platform-user-access, .platform-user-state { display: none; }
  .platform-user-action { min-width: 72px; padding: 0 12px; }
  .platform-form-grid, .platform-scope-grid, .platform-privilege-grid { grid-template-columns: 1fr; }
  .platform-editor { padding: 0; }
  .platform-editor > header { min-height: 82px; padding: 16px 17px; }
  .platform-user-form { width: calc(100% - 28px); padding-top: 20px; }
  .platform-editor-actions { align-items: stretch; }
  .platform-account-actions, .platform-editor-save { width: 100%; }
  .platform-account-actions > button, .platform-editor-save > button { flex: 1; }
}

@media (max-width: 460px) {
  .platform-admin-heading p { font-size: 8px; }
  .platform-admin-heading h2 { font-size: 21px; }
  .platform-tabs { flex: 1; }
  .platform-tabs button { flex: 1; padding: 0 9px; }
  #platform-new-user { padding: 0 12px; }
  .platform-summary > article { min-height: 65px; padding: 11px; }
  .platform-summary strong { font-size: 21px; }
  .platform-user-card { padding: 12px; }
  .platform-user-avatar { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform-admin-overlay,
  .platform-admin-dialog,
  .platform-panel.is-active,
  .platform-editor,
  .platform-confirm > div,
  .platform-toast {
    animation: none !important;
  }
}
