/* ====================================================================
 * Rich Detail — new-record create flow.
 *
 * Extracted from canon:
 *   new-design-system/design-system/archetypes/rich-detail/reference-create.html
 * The tinted create-zone wraps the page head + the required cluster
 * (full-width 2-column band); the body below renders the REAL page
 * structure ghosted at 0.4 — work-column panel placeholders with their
 * actual add affordances suffixed "after create", and the facts
 * column's actual field rows with italic-muted values. Reuses
 * compact_create_controller — all morphs key off
 * [data-compact-create-state], and the title/id/badge/eyebrow
 * .compact-*-tx atoms from compact_detail.css render inside unchanged.
 *
 * Pages: Campaign create, Creative create (Rich Detail records).
 * ==================================================================== */

.rich-create-zone {
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s ease-out 1.2s, border-bottom-color 0.5s ease-out 1.2s;
  margin: 0 -28px;            /* bleed across the page-shell content inset */
  padding: 0 28px;
}
[data-compact-create-state="saved"] .rich-create-zone {
  background: var(--surface);
}

/* The head inside the zone keeps the cpv1-head anatomy; Rich Detail
 * title is 30-32px — compact's 26px override must not apply here, so
 * these pages do NOT carry .compact-detail-page. */
.rich-create-zone .cpv1-head { border-bottom: 1px solid var(--border); }
.rich-create-zone .compact-name-shared {
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Launch feature (Rich Detail head-right slot) during create. The
 * value is a swap pair: "not set yet" (italic faint) until commit,
 * then the picked date morphs in via the P0.7 vocabulary — never a
 * live echo while typing. */
.rich-create-launch-l {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--fg-muted); font-weight: 700; text-align: right;
}
.rich-create-launch-tx {
  position: relative;
  display: inline-block;
  min-width: 160px;
  min-height: 24px;
  text-align: right;
}
.rich-create-launch-v {
  font-family: var(--font-mono); font-size: 18px; color: var(--fg); text-align: right;
}
.rich-create-launch-v--unset { font-style: italic; color: var(--fg-faint); }
.rich-create-launch-tx .compact-swap-old { position: relative; z-index: 1; transition: opacity 1.6s ease-out; border-radius: 3px; }
.rich-create-launch-tx .compact-swap-new { position: absolute; top: 0; right: 0; opacity: 0; transition: opacity 1.6s ease-out; border-radius: 3px; white-space: nowrap; }
[data-compact-create-state="saved"] .rich-create-launch-tx .compact-swap-old { animation: compactMorphOldRing 2.6s ease-out forwards; }
[data-compact-create-state="saved"] .rich-create-launch-tx .compact-swap-new { animation: compactMorphNewRing 2.6s ease-out forwards; }

/* Required band — full page width, 2-column field grid (canon: the
 * cluster spans the page so it doesn't adopt either column's role). */
.rich-create-band { padding: 12px 0 18px; }
.rich-create-band .compact-eyebrow-tx { margin-top: 0; }
.rich-create-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.rich-create-band-grid .compact-row {
  grid-template-columns: 110px 1fr;
  gap: 4px 14px;
  padding: 6px 0;
}
.rich-create-band-grid .compact-create-input { max-width: 240px; }

/* Body during create — the real page structure, ghosted. */
.rich-create-body { opacity: 0.4; pointer-events: none; }
[data-compact-create-state="saved"] .rich-create-body {
  opacity: 1; transition: opacity 1.4s ease-out 0.8s;
}

/* Work-column panel placeholders (canon .panel-placeholder family):
 * caret + mono title + count head, then a body line carrying the
 * panel's actual add affordance + a faint "after create" suffix. */
.rich-create-panel {
  border-top: 1px solid var(--border);
  padding: 14px 0 8px;
}
.rich-create-panel:first-child { border-top: 0; }
.rich-create-panel-title {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg); font-weight: 700;
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 8px;
}
.rich-create-panel-caret { color: var(--fg-faint); font-size: 11px; width: 14px; text-align: center; }
.rich-create-panel-count { color: var(--fg-faint); font-weight: 500; }
.rich-create-panel-body {
  font-size: 12.5px;
  padding-left: 22px;
  padding-bottom: 6px;
}
.rich-create-add { color: var(--color-blue-700); font-weight: 500; }
.rich-create-after { color: var(--fg-faint); }

/* Facts-column ghost rows — the saved page's actual field anatomy
 * (label column + value), values italic-muted per the canon ghost. */
.rich-create-facts-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.rich-create-facts-l {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--fg-faint); font-weight: 600; padding-top: 3px;
}
.rich-create-facts-v { font-size: 12.5px; color: var(--fg-faint); font-style: italic; }
.rich-create-facts-v--mono { font-family: var(--font-mono); font-style: normal; }

/* Two-column ghost frame matching the saved page's proportions. */
.rich-create-columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0 28px;
}
.rich-create-facts { border-left: 1px solid var(--border); padding-left: 24px; }
.rich-create-facts .compact-eyebrow { margin-top: 18px; }
.rich-create-facts .compact-eyebrow:first-child { margin-top: 14px; }
