/* -------------------------------------------------------------------------- */
/* Home CTA                                                                   */
/* -------------------------------------------------------------------------- */
.ui-home {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
}

.ui-home > .ui-hero,
.ui-home > .ui-features-section,
.ui-home > .ui-home-cta {
  width: 100%;
  max-width: 100%;
}

.ui-home .ui-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.ui-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 520px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
}

.ui-hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1511379938547-c1f69419868d?w=1920") center/cover no-repeat;
  opacity: 0.14;
}

.ui-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(12 8 39 / 0.1) 0%, rgb(30 14 88 / 0.65) 100%);
}

.ui-hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 120px;
  text-align: center;
}

.ui-hero-inner h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.9rem + 1.7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.ui-hero-inner p {
  margin: 20px auto 0;
  max-width: 720px;
  color: rgb(255 255 255 / 0.88);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.25rem);
  line-height: 1.5;
}

.ui-hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ui-hero-btn {
  min-width: 240px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}

.ui-hero-btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #7c3aed;
}

.ui-hero-btn-primary:hover {
  background: rgb(255 255 255 / 0.92);
  border-color: rgb(255 255 255 / 0.92);
  color: #7c3aed;
}

.ui-hero-btn-outline {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.45);
  color: #ffffff;
}

.ui-hero-btn-outline:hover {
  background: rgb(255 255 255 / 0.2);
  border-color: rgb(255 255 255 / 0.7);
  color: #ffffff;
}

.ui-features-section {
  background: transparent;
  padding: 4px 0 10px;
}

.ui-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.ui-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.95rem, 1.7rem + 0.75vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ui-section-head p {
  margin: 10px 0 0;
  color: var(--ui-text-muted);
  font-size: 18px;
}

.ui-feature-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--twds-card-radius);
  background: #ffffff;
  box-shadow: var(--twds-card-shadow);
  min-height: auto;
  padding: 26px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ui-feature-card:hover,
.ui-feature-card:focus-visible {
  border-color: var(--twds-card-hover-border);
  box-shadow: var(--twds-card-shadow-hover);
  transform: none;
}

.ui-feature-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
}

.ui-feature-card p {
  margin: 8px 0 0;
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.ui-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--twds-card-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgb(124 58 237 / 0.12);
  background: #f5f3ff;
  color: #7c3aed;
}

.ui-feature-icon .icon {
  font-size: 28px;
}

.ui-feature-icon.is-violet,
.ui-feature-icon.is-amber,
.ui-feature-icon.is-emerald,
.ui-feature-icon.is-blue {
  background: #f5f3ff;
  color: #7c3aed;
}

.ui-home .ui-home-cta {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 292px;
  border: 1px solid rgb(124 58 237 / 0.22);
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
}

.ui-home .ui-home-cta-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?w=1920") center/cover no-repeat;
  opacity: 0.16;
}

.ui-home .ui-home-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(16 8 54 / 0.2) 0%, rgb(18 10 58 / 0.72) 100%);
}

.ui-home .ui-home-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 48px;
}

.ui-home .ui-home-cta-icon {
  font-size: 44px;
  line-height: 1;
  color: #ede9fe;
}

.ui-home .ui-home-cta-inner h2 {
  margin: 14px 0 0;
  font-size: clamp(40px, 3.7vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.ui-home .ui-home-cta-inner p {
  margin: 16px auto 0;
  max-width: 720px;
  color: rgb(255 255 255 / 0.86);
  font-size: 18px;
  line-height: 1.45;
}

.ui-home .ui-home-cta-btn {
  margin-top: 24px;
  min-height: 46px;
  border-radius: 10px;
  padding: 0 24px;
  background: #ffffff;
  color: #7c3aed;
  border-color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ui-home .ui-home-cta-btn:hover {
  background: rgb(255 255 255 / 0.92);
  color: #7c3aed;
  border-color: rgb(255 255 255 / 0.92);
}

/* -------------------------------------------------------------------------- */
/* Create Hub                                                                  */
/* -------------------------------------------------------------------------- */
.ui-create-hub-page .create-hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ui-create-hub-page .create-hub-access-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

.ui-create-hub-page .create-hub-card {
  border: 1px solid rgb(203 213 225);
  border-radius: var(--twds-card-radius);
  background:
    radial-gradient(circle at 100% 0%, rgb(124 58 237 / 0.08), transparent 44%),
    #ffffff;
  box-shadow: var(--twds-card-shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ui-create-hub-page .create-hub-card:hover {
  border-color: var(--twds-card-hover-border);
  box-shadow: var(--twds-card-shadow-hover);
}

.ui-create-hub-page .create-hub-card .catalog-card-body {
  padding: 22px 20px 18px;
}

.ui-create-hub-page .create-hub-card .catalog-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
}

.ui-create-hub-page .create-hub-card .catalog-avatar {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: var(--twds-card-radius);
  border: 1px solid rgb(226 232 240);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(237 233 254);
}

.ui-create-hub-page .create-hub-card .catalog-avatar .icon {
  font-size: 30px;
  color: rgb(109 40 217);
}

.ui-create-hub-page .create-hub-card .catalog-title {
  margin: 2px 0 10px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: rgb(15 23 42);
}

.ui-create-hub-page .create-hub-card .catalog-description {
  margin: 0;
  color: rgb(71 85 105);
  font-size: 16px;
  line-height: 1.45;
}

.ui-create-hub-page .create-hub-card .catalog-card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  padding: 14px 18px;
}

.ui-create-hub-page .create-hub-card .catalog-subtle {
  display: none;
}

.ui-create-hub-page .create-hub-card .catalog-open-btn {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ui-create-hub-page .create-hub-card.is-locked {
  border-color: rgb(203 213 225);
  background:
    radial-gradient(circle at 100% 0%, rgb(148 163 184 / 0.07), transparent 45%),
    rgb(248 250 252);
  box-shadow: none;
}

.ui-create-hub-page .create-hub-card.is-locked .catalog-title {
  color: rgb(30 41 59);
}

.ui-create-hub-page .create-hub-card.is-locked .catalog-description {
  color: rgb(100 116 139);
}

.ui-create-hub-page .create-hub-card.is-locked .catalog-card-footer {
  background: rgb(241 245 249);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* Collective workflow pages                                                   */
/* -------------------------------------------------------------------------- */
.ensemble-workflow-status-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 18px;
  background: #f8fafc;
}

.ensemble-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ensemble-manage-top-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ensemble-slots-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
}

.ensemble-manage-slots-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.ensemble-manage-slot-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.ensemble-manage-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ensemble-detail-page .entity-slot-head,
.ui-ensemble-manage-page .entity-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ensemble-manage-slot-title {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.ensemble-manage-slot-meta {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 18px;
}

.ensemble-manage-slot-meta .icon {
  color: #8b5cf6;
}

.ensemble-manage-slot-description {
  margin: 10px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 20px;
}

.ensemble-manage-slot-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.venues-page-shell #venues-list {
  gap: 24px;
  align-items: stretch;
}

.venues-page-shell .venues-catalog-card {
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: var(--twds-card-radius);
}

.venues-page-shell .venues-catalog-media {
  position: relative;
  border-bottom: 1px solid rgb(226 232 240 / 0.82);
}

.venues-page-shell .venues-catalog-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 48%, #8b5cf6 100%);
}

.venues-page-shell .venues-catalog-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venues-page-shell .venues-catalog-photo-fallback {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 0.96);
  font-size: clamp(3rem, 7vw, 4.25rem);
  line-height: 1;
}

.venues-page-shell .venues-catalog-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: var(--twds-pill-height);
  max-width: calc(100% - 28px);
  align-items: center;
  padding: 0 var(--twds-pill-pad-x);
  border-radius: var(--twds-pill-radius);
  border: 1px solid rgb(var(--twds-border) / 0.95);
  background: rgb(255 255 255 / 0.96);
  color: #334155;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.venues-page-shell .venues-catalog-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
}

.venues-page-shell .venues-catalog-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venues-page-shell .venues-catalog-name {
  position: relative;
  margin: 0;
  color: #0f172a;
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.venues-page-shell .venues-catalog-name.is-marquee {
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.venues-page-shell .venues-catalog-name-track {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 24px;
  animation: venues-catalog-name-marquee 9s linear infinite;
}

.venues-page-shell .venues-catalog-name-copy {
  flex: 0 0 auto;
}

.venues-page-shell .venues-catalog-name-gap {
  flex: 0 0 auto;
  width: 0;
}

.venues-page-shell .venues-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.venues-page-shell .venues-catalog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--twds-text-soft));
  font-size: 14px;
  line-height: 20px;
}

.venues-page-shell .venues-catalog-meta-item .icon {
  color: #7c3aed;
  font-size: 16px;
}

.venues-page-shell .venues-catalog-address {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.venues-page-shell .venues-catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.venues-page-shell .venues-catalog-tag {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 12px;
}

.venues-page-shell .venues-catalog-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--twds-border));
}

.venues-page-shell .venues-catalog-price {
  color: #7c3aed;
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.venues-page-shell .venues-catalog-price.is-empty {
  color: #64748b;
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0;
}

.venues-page-shell .venues-catalog-price-suffix {
  color: #64748b;
  font-size: 13px;
  line-height: 1;
}

@keyframes venues-catalog-name-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12px));
  }
}

@media (max-width: 900px) {
  .ui-hero {
    min-height: 440px;
  }

  .ui-hero-inner {
    padding: 64px 0 94px;
  }

  .ui-home .ui-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ensemble-manage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ensemble-manage-top-actions {
    justify-content: flex-start;
  }

  .ensemble-manage-slot-head {
    flex-direction: column;
  }

  .ensemble-detail-page .entity-slot-head,
  .ui-ensemble-manage-page .entity-slot-head {
    align-items: stretch;
  }

  .ensemble-manage-slot-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .ui-home .ui-feature-grid {
    grid-template-columns: 1fr;
  }

  .venues-page-shell .venues-catalog-overlay {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 900px) {
  .ui-home .ui-home-cta-inner {
    width: calc(100% - 28px);
    padding: 42px 0 38px;
  }
}

@media (max-width: 1200px) {
  .ui-create-hub-page .create-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ui-create-hub-page .create-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .venues-page-shell #venues-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
