:root {
  --psoo-surface: var(--e-global-color-ffffff, #ffffff);
  --psoo-surface-alt: color-mix(in srgb, var(--e-global-color-ffffff, #ffffff) 94%, #0f172a 6%);
  --psoo-border: color-mix(in srgb, var(--e-global-color-text, #1f2937) 15%, transparent 85%);
  --psoo-border-strong: color-mix(in srgb, var(--e-global-color-text, #1f2937) 20%, transparent 80%);
  --psoo-primary: var(--e-global-color-primary, #2b3a63);
  --psoo-primary-soft: color-mix(in srgb, var(--psoo-primary) 15%, var(--psoo-surface) 85%);
  --psoo-primary-soft-strong: color-mix(in srgb, var(--psoo-primary) 35%, var(--psoo-surface) 65%);
  --psoo-text: var(--e-global-color-text, #1f2937);
  --psoo-text-muted: color-mix(in srgb, var(--psoo-text) 60%, #94a3b8 40%);
  --psoo-outline: color-mix(in srgb, var(--psoo-primary) 25%, transparent 75%);
  --psoo-radius-lg: clamp(12px, 1.2vw, 16px);
  --psoo-radius-pill: 999px;
}

.psoo-group-directory {
  position: relative;
  overflow: hidden;
  background: var(--psoo-surface);
  border: 1px solid var(--psoo-border);
  border-radius: var(--psoo-radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 28px 60px -48px color-mix(in srgb, #0f172a 45%, transparent 55%);
  font-family: var(--e-global-typography-text-font-family, var(--e-global-typography-primary-font-family, "Inter", system-ui));
  color: var(--psoo-text);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.psoo-group-directory .psoo-gd-controls {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(12px, 2.4vw, 18px);
  align-items: start;
  box-sizing: border-box;
}

.psoo-group-directory .psoo-gd-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px;
  border-radius: var(--psoo-radius-pill);
  background: var(--psoo-primary-soft);
  box-shadow: inset 0 0 0 1px var(--psoo-outline);
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  margin-inline: auto;
  grid-column: 1 / -1;
  justify-content: center;
}

.psoo-group-directory .psoo-gd-filter {
  --psoo-filter-icon: none;
  position: relative;
  border: none;
  background: transparent;
  color: var(--psoo-text-muted);
  border-radius: var(--psoo-radius-pill);
  padding: 8px 18px 8px 44px;
  font-size: clamp(0.85rem, 0.9rem + 0.1vw, 0.95rem);
  font-family: var(--e-global-typography-accent-font-family, inherit);
  font-weight: var(--e-global-typography-accent-font-weight, 500);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: 180ms ease;
}

.psoo-group-directory .psoo-gd-filter::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask: var(--psoo-filter-icon) center/contain no-repeat;
  -webkit-mask: var(--psoo-filter-icon) center/contain no-repeat;
  opacity: 0.9;
}

.psoo-group-directory .psoo-gd-filter:hover {
  color: var(--psoo-text);
  background: color-mix(in srgb, var(--psoo-primary) 12%, transparent 88%);
}

.psoo-group-directory .psoo-gd-filter.is-active {
  background: var(--psoo-primary);
  color: var(--e-global-color-ffffff, #ffffff);
  box-shadow: 0 12px 22px -14px var(--psoo-primary);
}

.psoo-group-directory .psoo-gd-filter.is-active::before {
  opacity: 1;
}

.psoo-group-directory .psoo-gd-filter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.psoo-group-directory .psoo-gd-filter[data-view="my"] {
  --psoo-filter-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M16%2019v-1a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v1'%2F%3E%3Cpath%20d%3D'M12%2011a4%204%200%201%200%200-8%204%204%200%200%200%200%208Z'%2F%3E%3C%2Fsvg%3E");
}

.psoo-group-directory .psoo-gd-filter[data-view="public"] {
  --psoo-filter-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M3%2012h18'%2F%3E%3Cpath%20d%3D'M12%203c-3%200-5.5%204.03-5.5%209s2.5%209%205.5%209%205.5-4.03%205.5-9-2.5-9-5.5-9Z'%2F%3E%3C%2Fsvg%3E");
}

.psoo-gd-control-label {
  display: block;
  font-weight: 700;
  font-size: clamp(0.78rem, 0.8rem + 0.08vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--psoo-text-muted);
}

.psoo-group-directory .psoo-gd-type-filter,
.psoo-group-directory .psoo-gd-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.psoo-group-directory .psoo-gd-type-filter::before,
.psoo-group-directory .psoo-gd-search::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  bottom: 16px;
  color: var(--psoo-primary);
  opacity: 0.85;
}

.psoo-group-directory .psoo-gd-type-filter::before {
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%203%203%209l9%206%209-6-9-6Z'%2F%3E%3Cpath%20d%3D'm3%2015%209%206%209-6'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%203%203%209l9%206%209-6-9-6Z'%2F%3E%3Cpath%20d%3D'm3%2015%209%206%209-6'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

.psoo-group-directory .psoo-gd-search::before {
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Ccircle%20cx%3D'11'%20cy%3D'11'%20r%3D'6'%2F%3E%3Cpath%20d%3D'm20%2020-3.5-3.5'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Ccircle%20cx%3D'11'%20cy%3D'11'%20r%3D'6'%2F%3E%3Cpath%20d%3D'm20%2020-3.5-3.5'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

.psoo-group-directory .psoo-gd-type-filter select,
.psoo-group-directory .psoo-gd-search input[type="search"] {
  appearance: none;
  border: 1px solid var(--psoo-border);
  border-radius: calc(var(--psoo-radius-lg) - 4px);
  background: var(--psoo-surface-alt);
  color: var(--psoo-text);
  padding: 12px 16px 12px 48px;
  font-size: clamp(0.85rem, 0.88rem + 0.08vw, 0.95rem);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: 160ms ease;
}

.psoo-group-directory .psoo-gd-type-filter select {
  background-image: none;
}

.psoo-group-directory .psoo-gd-type-filter select:focus,
.psoo-group-directory .psoo-gd-search input[type="search"]:focus {
  outline: none;
  border-color: var(--psoo-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--psoo-primary) 18%, transparent 82%);
}

.psoo-group-directory .psoo-gd-status {
  font-size: clamp(0.9rem, 0.92rem + 0.08vw, 1rem);
  color: var(--psoo-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.psoo-group-directory .psoo-gd-status.is-hidden {
  display: none;
}

.psoo-group-directory .psoo-gd-results {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.psoo-group-directory.is-loading .psoo-gd-results {
  opacity: 0.55;
  pointer-events: none;
  filter: blur(1px);
}

.psoo-gd-card {
  background: var(--psoo-surface-alt);
  border: 1px solid var(--psoo-border-strong);
  border-radius: var(--psoo-radius-lg);
  padding: clamp(18px, 1.2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 20px);
  box-shadow: 0 24px 45px -44px var(--psoo-primary);
  transition: 220ms ease;
}

.psoo-gd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -48px color-mix(in srgb, var(--psoo-primary) 40%, transparent 60%);
}

.psoo-gd-card-head {
  display: flex;
  gap: clamp(16px, 1.8vw, 22px);
  align-items: flex-start;
}

.psoo-gd-avatar {
  width: clamp(52px, 5vw, 64px);
  height: clamp(52px, 5vw, 64px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid color-mix(in srgb, var(--psoo-primary) 18%, transparent 82%);
}

.psoo-gd-card-head-text {
  flex: 1 1 auto;
  display: grid;
  gap: 10px;
}

.psoo-gd-title {
  margin: 0;
  font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit));
  font-size: clamp(1.05rem, 1.04rem + 0.3vw, 1.2rem);
  font-weight: var(--e-global-typography-primary-font-weight, 600);
  color: var(--psoo-text);
  line-height: 1.2;
}

.psoo-gd-title a {
  color: inherit;
  text-decoration: none;
}

.psoo-gd-title a:hover {
  text-decoration: underline;
}

.psoo-gd-status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--psoo-radius-pill);
  background: var(--psoo-primary-soft-strong);
  color: var(--psoo-primary);
  font-size: clamp(0.7rem, 0.72rem + 0.06vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.psoo-gd-desc {
  margin: 0;
  font-size: clamp(0.9rem, 0.92rem + 0.08vw, 1rem);
  color: var(--psoo-text-muted);
  line-height: 1.55;
}

.psoo-gd-card-body {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
}

.psoo-gd-row {
  display: grid;
  gap: 8px;
}

.psoo-gd-label {
  font-weight: 700;
  font-size: clamp(0.78rem, 0.8rem + 0.08vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--psoo-text-muted);
}

.psoo-gd-app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.psoo-gd-app-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--psoo-radius-pill);
  background: color-mix(in srgb, var(--psoo-primary) 10%, var(--psoo-surface) 90%);
  color: var(--psoo-primary);
  font-size: clamp(0.82rem, 0.84rem + 0.08vw, 0.9rem);
  text-decoration: none;
  transition: 180ms ease;
}

.psoo-gd-app-list a:hover {
  background: color-mix(in srgb, var(--psoo-primary) 18%, var(--psoo-surface) 82%);
}

.psoo-gd-empty {
  font-size: clamp(0.82rem, 0.84rem + 0.06vw, 0.9rem);
  color: var(--psoo-text-muted);
}

.psoo-gd-manager-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(12px, 1.6vw, 18px);
  padding: 16px 18px;
  border-radius: calc(var(--psoo-radius-lg) - 4px);
  background: color-mix(in srgb, var(--psoo-primary) 8%, var(--psoo-surface) 92%);
  border: 1px solid color-mix(in srgb, var(--psoo-primary) 22%, transparent 78%);
  box-shadow: 0 18px 40px -36px color-mix(in srgb, var(--psoo-primary) 48%, transparent 52%);
}

.psoo-gd-manager-card.psoo-gd-manager-card--secondary {
  background: color-mix(in srgb, var(--psoo-primary) 4%, var(--psoo-surface) 96%);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--psoo-primary) 18%, transparent 82%);
  box-shadow: 0 14px 32px -34px color-mix(in srgb, var(--psoo-primary) 42%, transparent 58%);
}

.psoo-gd-manager-avatar {
  width: clamp(52px, 4.5vw, 60px);
  height: clamp(52px, 4.5vw, 60px);
  border-radius: var(--psoo-radius-pill);
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--psoo-primary) 22%, transparent 78%);
  background: color-mix(in srgb, var(--psoo-primary) 6%, var(--psoo-surface) 94%);
  display: block;
}

.psoo-gd-manager-avatar.is-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--psoo-primary);
  background: color-mix(in srgb, var(--psoo-primary) 12%, var(--psoo-surface) 88%);
  text-transform: uppercase;
}

.psoo-gd-manager-avatar.is-placeholder span {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.psoo-gd-manager-body {
  display: grid;
  gap: 6px;
  align-content: start;
}

.psoo-gd-manager-role {
  font-size: clamp(0.75rem, 0.78rem + 0.06vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--psoo-primary) 70%, var(--psoo-text-muted) 30%);
}

.psoo-gd-manager-name {
  font-size: clamp(0.95rem, 0.97rem + 0.1vw, 1.05rem);
  font-weight: 700;
  color: var(--psoo-text);
  text-decoration: none;
}

.psoo-gd-manager-name:hover {
  text-decoration: underline;
}

.psoo-gd-manager-tagline {
  font-size: clamp(0.78rem, 0.8rem + 0.08vw, 0.88rem);
  color: var(--psoo-text-muted);
  line-height: 1.4;
}

.psoo-gd-message.button {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--psoo-radius-pill);
  background: var(--psoo-primary);
  color: var(--e-global-color-ffffff, #ffffff);
  text-decoration: none;
  font-size: clamp(0.82rem, 0.84rem + 0.08vw, 0.92rem);
  font-weight: 600;
  box-shadow: 0 18px 32px -22px color-mix(in srgb, var(--psoo-primary) 40%, transparent 60%);
  transition: 200ms ease;
}

.psoo-gd-message.button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M4%205h16a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H6l-4%204V7a2%202%200%200%201%202-2Z'%2F%3E%3Cpath%20d%3D'm8%2010%204%204%204-4'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M4%205h16a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H6l-4%204V7a2%202%200%200%201%202-2Z'%2F%3E%3Cpath%20d%3D'm8%2010%204%204%204-4'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

.psoo-gd-message.button span {
  line-height: 1;
}

.psoo-gd-message.button:hover {
  filter: brightness(1.05);
}

.psoo-gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--psoo-radius-pill);
  padding: 10px 18px;
  font-size: clamp(0.88rem, 0.9rem + 0.06vw, 0.98rem);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 200ms ease;
}

.psoo-gd-btn.button {
  background: var(--psoo-primary);
  color: var(--e-global-color-ffffff, #ffffff);
  box-shadow: 0 18px 32px -22px var(--psoo-primary);
}

.psoo-gd-btn.button:hover {
  filter: brightness(1.05);
}

.psoo-gd-btn-disabled {
  background: color-mix(in srgb, var(--psoo-text-muted) 15%, transparent 85%);
  color: var(--psoo-text-muted);
  border: 1px solid var(--psoo-border);
}

.psoo-gd-load-more {
  justify-self: center;
  min-width: 200px;
  border-radius: var(--psoo-radius-pill);
  padding: 12px 24px;
  font-size: clamp(0.9rem, 0.92rem + 0.08vw, 1rem);
  font-weight: 600;
  background: var(--psoo-primary);
  color: var(--e-global-color-ffffff, #ffffff);
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 42px -36px var(--psoo-primary);
  transition: 200ms ease;
}

.psoo-gd-load-more[hidden] {
  display: none;
}

.psoo-gd-load-more:hover {
  filter: brightness(1.07);
}

@media (max-width: 640px) {
  .psoo-group-directory {
    padding: clamp(16px, 5vw, 24px);
  }

  .psoo-gd-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .psoo-gd-manager-card {
    grid-template-columns: 1fr;
  }

  .psoo-gd-manager-avatar,
  .psoo-gd-manager-avatar.is-placeholder {
    width: 56px;
    height: 56px;
  }
}
