.tag {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-with-logo .experience-author-logo {
  width: 14px;
  height: 14px;
}

.tag-with-logo .admin-ecosystem-logo {
  width: 14px;
  height: 14px;
  border-color: rgba(15, 23, 42, 0.22);
}

.tag-with-logo .admin-ecosystem-logo-fallback {
  font-size: 8px;
}

body.theme-dark .tag {
  background: rgba(69, 243, 255, 0.15);
  color: var(--ink);
}

.footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

.footer-cta {
  display: inline-flex;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
}

body.theme-dark .footer-links a {
  color: rgba(226, 232, 240, 0.78);
}

body.theme-dark .footer-links a:hover,
body.theme-dark .footer-links a:focus-visible {
  color: #fff;
}

.legal-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.legal-card {
  line-height: 1.65;
}

.legal-card h1,
.legal-card h2 {
  margin: 0 0 10px;
}

.legal-card h1 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.legal-card h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.legal-kicker {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.legal-summary {
  margin: 0 0 8px;
}

.legal-updated {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-list {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-ecosystem-switcher-card {
  margin-bottom: 14px;
  overflow: visible;
}

.admin-ecosystem-switcher-card--rail {
  position: fixed;
  top: 108px;
  right: 14px;
  width: 66px;
  padding: 10px;
  border-radius: 18px;
  z-index: 70;
  transition: width 0.22s ease, box-shadow 0.22s ease;
}

.admin-ecosystem-switcher-card--rail:hover,
.admin-ecosystem-switcher-card--rail:focus-within {
  width: min(430px, calc(100vw - 24px));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.25);
}

.admin-ecosystem-switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 14px;
  align-items: end;
}

.admin-ecosystem-switcher .form-group {
  flex: 1 1 auto;
  max-width: none;
  margin-bottom: 0;
}

.admin-ecosystem-switcher .form-group > label {
  display: block;
  margin-bottom: 6px;
}

.admin-ecosystem-switcher-card--rail .admin-ecosystem-switcher .form-group > label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-ecosystem-picker {
  position: relative;
}

.admin-ecosystem-picker-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.theme-dark .admin-ecosystem-picker-trigger {
  background: #0b1220;
}

.admin-ecosystem-switcher-card--rail .admin-ecosystem-picker-trigger {
  width: 44px;
  min-height: 44px;
  padding: 9px;
  justify-content: center;
}

.admin-ecosystem-trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-ecosystem-switcher-card--rail .admin-ecosystem-trigger-label {
  flex: 0 0 auto;
}

.admin-ecosystem-trigger-label [data-ecosystem-label="1"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ecosystem-switcher-card--rail .admin-ecosystem-trigger-label [data-ecosystem-label="1"],
.admin-ecosystem-switcher-card--rail .admin-ecosystem-picker-caret {
  display: none;
}

.admin-ecosystem-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.admin-ecosystem-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-ecosystem-logo[hidden],
.admin-ecosystem-logo-fallback[hidden] {
  display: none !important;
}

.admin-ecosystem-picker-caret {
  font-size: 11px;
  opacity: 0.7;
}

.admin-ecosystem-switcher-card--rail:hover .admin-ecosystem-picker-trigger,
.admin-ecosystem-switcher-card--rail:focus-within .admin-ecosystem-picker-trigger {
  width: 100%;
  padding: 10px 12px;
  justify-content: space-between;
}

.admin-ecosystem-switcher-card--rail:hover .admin-ecosystem-trigger-label,
.admin-ecosystem-switcher-card--rail:focus-within .admin-ecosystem-trigger-label {
  flex: 1 1 auto;
}

.admin-ecosystem-switcher-card--rail:hover .admin-ecosystem-trigger-label [data-ecosystem-label="1"],
.admin-ecosystem-switcher-card--rail:focus-within .admin-ecosystem-trigger-label [data-ecosystem-label="1"],
.admin-ecosystem-switcher-card--rail:hover .admin-ecosystem-picker-caret,
.admin-ecosystem-switcher-card--rail:focus-within .admin-ecosystem-picker-caret {
  display: inline;
}

.admin-ecosystem-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.admin-ecosystem-picker-menu[hidden] {
  display: none;
}

.admin-ecosystem-picker-menu input[type="search"] {
  min-height: 40px;
}

.admin-ecosystem-picker-options {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
}

.admin-ecosystem-option {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-ecosystem-option-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-ecosystem-option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ecosystem-option:hover {
  background: rgba(15, 23, 42, 0.05);
}

.admin-ecosystem-option.is-active {
  border-color: var(--accent);
  background: rgba(255, 0, 255, 0.08);
}

.admin-ecosystem-picker-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 2px 2px;
}

.admin-ecosystem-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-self: flex-end;
}

.admin-ecosystem-switcher-card--rail .admin-ecosystem-actions {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, max-width 0.2s ease;
}

.admin-ecosystem-switcher-card--rail:hover .admin-ecosystem-actions,
.admin-ecosystem-switcher-card--rail:focus-within .admin-ecosystem-actions {
  max-width: 80px;
  opacity: 1;
  pointer-events: auto;
}

.admin-ecosystem-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.admin-ecosystem-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

@media (max-width: 960px) {
  .admin-ecosystem-switcher-card--rail {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    padding: 14px;
    box-shadow: none;
  }
  .admin-ecosystem-switcher-card--rail .admin-ecosystem-switcher .form-group > label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 6px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .admin-ecosystem-switcher-card--rail .admin-ecosystem-picker-trigger {
    width: 100%;
    padding: 10px 12px;
    justify-content: space-between;
  }
  .admin-ecosystem-switcher-card--rail .admin-ecosystem-trigger-label {
    flex: 1 1 auto;
  }
  .admin-ecosystem-switcher-card--rail .admin-ecosystem-trigger-label [data-ecosystem-label="1"],
  .admin-ecosystem-switcher-card--rail .admin-ecosystem-picker-caret {
    display: inline;
  }
  .admin-ecosystem-switcher {
    flex-wrap: wrap;
  }
  .admin-ecosystem-switcher .form-group {
    flex: 1 1 100%;
  }
  .admin-ecosystem-switcher-card--rail .admin-ecosystem-actions,
  .admin-ecosystem-actions {
    width: 100%;
    max-width: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.ecosystem-logo-upload {
  display: grid;
  gap: 8px;
}

.ecosystem-logo-upload [data-image-input="1"] {
  width: 100%;
}

.ecosystem-logo-upload-compact {
  grid-template-columns: 104px minmax(140px, 1fr);
  gap: 6px 10px;
  align-items: start;
}

.ecosystem-logo-upload-compact .ecosystem-logo-preview-wrap {
  grid-column: 1;
  grid-row: 1 / span 4;
  cursor: pointer;
}

.ecosystem-logo-upload-compact [data-image-file="1"] {
  display: none;
}

.ecosystem-logo-upload-compact [data-image-input="1"],
.ecosystem-logo-upload-compact .builder-upload-status,
.ecosystem-logo-upload-compact .builder-help {
  grid-column: 2;
  margin: 0;
}

.ecosystem-logo-upload-compact .builder-help {
  font-size: 11px;
  line-height: 1.2;
}

.ecosystem-logo-preview-wrap {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ecosystem-logo-preview-wrap:hover,
.ecosystem-logo-preview-wrap.is-dragover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.32);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .2);
}

.ecosystem-logo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ecosystem-logo-preview[hidden],
.ecosystem-logo-preview-empty[hidden] {
  display: none !important;
}

.ecosystem-logo-preview-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(226, 232, 240, .95);
  text-align: center;
  line-height: 1.25;
  padding: 0 10px;
}

.ecosystem-create-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr);
  gap: 12px 20px;
  align-items: start;
}

.ecosystem-create-left {
  display: grid;
  gap: 12px;
}

.ecosystem-create-layout .form-group > label {
  display: block;
  margin-bottom: 8px;
}

.ecosystem-create-name input {
  max-width: 240px;
}

.ecosystem-create-bio textarea {
  min-height: 160px;
}

.ecosystem-create-actions {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .ecosystem-create-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ecosystem-create-name input {
    max-width: none;
  }

  .ecosystem-create-bio textarea {
    min-height: 120px;
  }
}

.ecosystem-brand-preview {
  --eco-brand-primary: #4c6fff;
  --eco-brand-secondary: #00e5ff;
  --eco-brand-highlight: #ff00ff;
  --eco-brand-surface: #ffffff;
  --eco-brand-surface-alt: #f3f6ff;
  --eco-brand-text: #0f172a;
  --eco-brand-muted: #64748b;
  --eco-brand-border: #dbe5f3;
  --eco-brand-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --eco-brand-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --eco-brand-button-radius: 999px;
  --eco-brand-card-radius: 28px;
  --eco-brand-logo-radius: 24px;
  --eco-brand-glow: 0.22;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--eco-brand-card-radius);
  border: 1px solid var(--eco-brand-border);
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--eco-brand-secondary) calc(var(--eco-brand-glow) * 100%), transparent), transparent 36%),
    radial-gradient(circle at 84% 20%, color-mix(in srgb, var(--eco-brand-highlight) calc(var(--eco-brand-glow) * 100%), transparent), transparent 30%),
    linear-gradient(145deg, var(--eco-brand-surface), var(--eco-brand-surface-alt));
  color: var(--eco-brand-text);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  font-family: var(--eco-brand-body);
}

.ecosystem-brand-preview-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ecosystem-brand-preview-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--eco-brand-text) 8%, transparent);
  color: color-mix(in srgb, var(--eco-brand-text) 78%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecosystem-brand-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--eco-brand-primary), var(--eco-brand-highlight));
}

.ecosystem-brand-preview-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ecosystem-brand-preview-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--eco-brand-logo-radius);
  border: 1px solid color-mix(in srgb, var(--eco-brand-text) 10%, transparent);
  object-fit: cover;
  background: color-mix(in srgb, var(--eco-brand-text) 8%, transparent);
}

.ecosystem-brand-preview-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.ecosystem-brand-preview-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ecosystem-brand-preview-copy strong {
  font-family: var(--eco-brand-heading);
  font-size: 18px;
  line-height: 1.1;
}

.ecosystem-brand-preview-copy span {
  color: var(--eco-brand-muted);
  font-size: 12px;
}

.ecosystem-brand-preview .button {
  margin-left: auto;
  border-radius: var(--eco-brand-button-radius);
  background: linear-gradient(135deg, var(--eco-brand-primary), var(--eco-brand-secondary));
  border-color: color-mix(in srgb, var(--eco-brand-primary) 70%, #000 30%);
}

.builder-settings-bar {
  display: flex;
