@charset "UTF-8";

/* AudioFX functional UI extensions — ADDITIONS ONLY.
   Loaded AFTER the designer-owned tts_sg_sfx.css, which remains the single
   source of truth for the shared design (breadcrumb, recipe, apply-spinner,
   effect-mode selector). Those were removed from here to avoid
   overriding the designer styles. This file adds only net-new functional UI:
   artifact history, source lineage, catalog source-card, and Pro-tier states. */

/* Artifact history metadata and the current-source lineage. */
.wrap .history-effect-meta {
  display: flex;
  min-width: 0;
  margin-top: 7px;
}
.wrap .history-effect-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #b9e4d3;
  border-radius: 999px;
  background: #e9f8f2;
  color: #087557;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.wrap .history-effect-name {
  overflow: hidden;
  padding: 6px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wrap .history-effect-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: stretch;
  align-items: center;
  padding: 0 8px;
  border-left: 1px solid #b9e4d3;
  background: #d4f1e5;
  color: #075f49;
  font-variant-numeric: tabular-nums;
}
.wrap .source-lineage {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 10px;
  padding: 1px 2px 2px;
  overflow-x: auto;
  color: var(--fx-muted);
  white-space: nowrap;
  scrollbar-width: thin;
}
.wrap .source-lineage__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 170px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-chip);
  background: #fff;
  color: var(--fx-slate-600);
  font-family: var(--fx-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: 0.14s ease;
}
.wrap a.source-lineage__item:hover {
  border-color: var(--fx-blue-border);
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}
.wrap .source-lineage__item.is-current {
  border-color: var(--fx-blue-border);
  background: var(--fx-blue-tint);
  color: var(--fx-blue);
}
.wrap .source-lineage__separator,
.wrap .source-lineage__ellipsis {
  flex: 0 0 auto;
  color: var(--fx-faint);
  font-family: var(--fx-mono);
  font-size: 11px;
  font-weight: 700;
}

/* Selected source shown in the public effects catalog. */
.fx-catalog-source-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--fxc-line);
  border-radius: 8px;
  background: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.fx-catalog-source-card.is-removing {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.fx-catalog-source-card .source-box {
  padding: 16px 18px;
  border: 1px solid var(--fxc-line);
  border-radius: 8px;
  background: #fff;
}
.fx-catalog-source-card .source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.fx-catalog-source-card .source-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.fx-catalog-source-card .source-title-wrap > div {
  min-width: 0;
}
.fx-catalog-source-card .source-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--fxc-pr);
  color: #fff;
  font: 700 10px/1 var(--fxc-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fx-catalog-source-card .source-title {
  color: var(--fxc-pr);
  font: 700 10px/1.2 var(--fxc-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fx-catalog-source-card .source-meta {
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--fxc-ink);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-catalog-source-card .source-remove {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--fxc-line);
  border-radius: 50%;
  background: #fff;
  color: var(--fxc-muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}
.fx-catalog-source-card .source-remove:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}
.fx-catalog-source-card .source-remove.is-busy {
  opacity: 0.45;
  pointer-events: none;
}
.fx-catalog-source-card .source-audio {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #f1f5f9;
}

/* Pro access states. */
.wrap .fx-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.wrap .fx-title-row h1 {
  margin-bottom: 0;
}
.fx-pro-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #edc461;
  border-radius: 999px;
  background: #fff7dc;
  color: #7b4b00;
  font: 800 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}
.wrap .fx-pro-badge--menu {
  min-height: 17px;
  margin-left: 5px;
  padding: 2px 5px;
  font-size: 8px;
}
/* inline-flex so the inline PRO badge (.fx-pro-badge--menu) sits centered next
   to the tab label. Adds display/align only; the designer .tab visual (border,
   padding, no-underline) stays owned by tts_sg_sfx.css. */
.wrap .tab {
  display: inline-flex;
  align-items: center;
}
.wrap .fx-pro-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border-color: #d9c07b;
  background:
    radial-gradient(circle at 92% 10%, rgba(246, 201, 92, 0.2), transparent 31%),
    linear-gradient(115deg, #fffdf7 0%, #f8fbff 72%);
}
.wrap .fx-pro-callout-copy {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.wrap .fx-pro-callout-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #17213a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #ffd875;
  font: 800 18px/1 "JetBrains Mono", monospace;
}
.wrap .fx-pro-callout h2 {
  margin: 0 0 5px;
  color: var(--fx-ink);
  font-size: 18px;
  line-height: 1.25;
}
.wrap .fx-pro-callout p {
  max-width: 680px;
  margin: 0;
  color: var(--fx-muted);
  font-size: 13px;
  line-height: 1.55;
}
.wrap .fx-pro-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #17213a;
  border-radius: var(--fx-radius-btn);
  background: #17213a;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.wrap .fx-pro-cta:hover,
.wrap .fx-pro-cta:focus {
  background: #243252;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.wrap .fx-pro-cta--wide {
  width: 100%;
  min-height: 52px;
}
.wrap .next-effect-pro {
  min-height: 16px;
  margin-left: 5px;
  padding: 2px 5px;
  vertical-align: 1px;
  font-size: 8px;
}
.fx-catalog-card--pro {
  border-color: #e5d39f;
}
.fx-catalog-card--pro:hover {
  border-color: #d4ae50;
}
.fx-catalog-pro {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  min-height: 19px;
  padding: 2px 6px;
  box-shadow: none;
}

@media (max-width: 720px) {
  .wrap .fx-pro-callout {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .wrap .fx-pro-cta {
    width: 100%;
  }
  .wrap .fx-pro-callout-copy {
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .fx-catalog-source-card {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
  }
  .fx-catalog-source-card .source-box {
    padding: 14px;
  }
  .fx-catalog-source-card .source-head {
    gap: 10px;
  }
  .fx-catalog-source-card .source-icon {
    width: 38px;
    height: 38px;
  }
  .fx-catalog-source-card .source-meta {
    font-size: 14px;
  }
}
