/* Every rule belongs to the duplicate preview layout. */
.cp-app {
  background:#fcfcfd;
  color:#17202c;
  --ink:#17202c;
  --accent:#2563eb;
  --muted:#6b7280;
  --line:#e5e7eb;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.cp-app a {
  text-decoration:none;
  color:inherit;
}

.cp-app button,.cp-app textarea {
  font:inherit;
}

.cp-app :focus-visible {
  outline:3px solid #2563eb;
  outline-offset:4px;
}

.cp-app [hidden] {
  display:none!important;
}

.cp-skip {
  position:fixed;
  left:16px;
  top:-60px;
  background:white;
  padding:12px;
  z-index:100;
}

.cp-skip:focus {
  top:12px;
}

.cp-main {
  max-width:1220px;
  margin:0 auto;
  padding:0 32px 48px;
}

.cp-hero {
  text-align:center;
  padding:48px 12px 25px;
}

.cp-hero h1 {
  font-size:clamp(32px,3.3vw,49px);
  letter-spacing:-1.8px;
  font-weight:600;
  line-height:1.15;
  margin:0 0 16px;
}

.cp-hero>p:last-child {
  max-width:610px;
  font-size:14px;
  line-height:1.7;
  color:#6b7280;
  margin:0 auto;
}

.cp-app .insp-chip {
  font-size:11px;
}

.cp-guest-form textarea {
  min-height:100px;
  height:100px;
  font-size:17px;
  padding:7px 0;
  resize:vertical;
  line-height:1.6;
}

.cp-guest-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cp-guest-references {
  display:flex;
  gap:7px;
}

.cp-guest-references button {
  font-size:11px;
  color:#5e6979;
  padding:10px;
  border:1px solid #e3e7ee;
  border-radius:10px;
  background:#f8fafc;
}

.cp-guest-status {
  font-size:11px;
  color:#7e8797;
  margin:12px 0 0;
}

.cp-app .insp-section-heading {
  margin:0 0 13px;
  gap:12px;
  align-items:center;
}

.cp-app .insp-section-heading h2 {
  font-size:18px;
  letter-spacing:-.4px;
  font-weight:600;
  margin:0;
}

.cp-app .insp-section-heading h2 small {
  display:inline-block;
  font-size:11px;
  font-weight:400;
  color:#8b94a3;
  letter-spacing:0;
  margin-left:10px;
}

.cp-app .insp-section-heading>a {
  font-size:11px;
  color:#64748b;
  white-space:nowrap;
}

.cp-app .insp-characters {
  padding:0;
  margin:0 0 22px;
}

.cp-app .insp-character-row {
  display:flex;
  gap:10px;
  overflow:auto;
  padding:2px 2px 5px;
  scroll-snap-type:x proximity;
}

.cp-app .insp-character {
  flex:1 0 120px;
  min-width:120px;
  max-width:160px;
  padding:0;
  border:1px solid #e7eaf0;
  border-radius:13px;
  background:white;
  overflow:hidden;
  position:relative;
  scroll-snap-align:start;
  display:block;
  text-align:left;
}

.cp-app .insp-character-media {
  width:100%;
  height:100px;
  border:0;
  border-radius:0;
  background:#eceeed;
}

.cp-app .insp-character-media img {
  width:400%;
  max-width:none;
  height:100%;
  object-fit:cover;
  object-position:left 15%;
  /* Display the first portrait from the existing four-view sheet. */;
}

.cp-app .insp-character-copy {
  display:block;
  padding:8px 10px 10px;
}

.cp-app .insp-character-copy strong {
  display:block;
  font-size:12px;
  font-weight:600;
}

.cp-app .insp-character-copy small {
  display:block;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:2px;
  max-width:120px;
  color:#7c8695;
}

.cp-app .insp-character-state {
  display:none;
}

.cp-app .insp-character.is-selected,.cp-app .insp-character[aria-pressed=true] {
  border-color:#2563eb;
  box-shadow:0 0 0 1px #2563eb;
}

.cp-app .insp-characters-note,.cp-row-note {
  font-size:9px;
  color:#8993a2;
  margin:7px 0 0;
  line-height:1.5;
}

.cp-app .insp-library {
  margin:0 0 26px;
}

.cp-app .insp-filters {
  gap:4px;
  flex-wrap:wrap;
}

.cp-app .insp-filters button {
  padding:4px 9px;
  font-size:10px;
}

.cp-app .insp-grid {
  display:flex;
  overflow:auto;
  gap:12px;
  scroll-snap-type:x proximity;
  padding:2px 2px 6px;
}

.cp-app .insp-tile {
  flex:0 0 190px;
  scroll-snap-align:start;
}

.cp-app .insp-tile-media {
  aspect-ratio:4/3;
  border-radius:13px;
}

.cp-app .insp-tile-overlay strong {
  font-size:14px;
}

.cp-app .insp-tile-overlay small {
  font-size:9px;
}

.cp-example-row {
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-snap-type:x proximity;
  padding:2px 2px 5px;
}

.cp-example {
  position:relative;
  flex:1 0 170px;
  min-width:170px;
  height:158px;
  border:0;
  border-radius:14px;
  overflow:hidden;
  padding:0;
  text-align:left;
  background:#273341;
  scroll-snap-align:start;
  cursor:pointer;
}

.cp-example>img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 38%;
  transition:transform .2s;
}

.cp-example:hover>img {
  transform:scale(1.04);
}

.cp-example>span {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:15px 12px 12px;
  color:white;
  background:linear-gradient(transparent 20%,#07111cbf);
}

.cp-example small {
  font-size:9px;
  opacity:.8;
  margin-bottom:4px;
}

.cp-example strong {
  font-size:14px;
  line-height:1.25;
  font-weight:600;
}

.cp-example em {
  font-size:9px;
  font-style:normal;
  opacity:.7;
  margin-top:7px;
}

.cp-home-lower.hp2-page {
  background:transparent;
  --hp2-page-width:1156px;
}

.cp-home-lower .hp2-section {
  padding:25px 0 35px;
  border-top:1px solid #e9edf3;
}

.cp-home-lower .hp2-section-heading h2 {
  font-size:27px;
  letter-spacing:-.8px;
}

.cp-home-lower .hp2-section-heading p {
  font-size:13px;
}

.cp-home-lower .hp2-template-track {
  margin-top:15px;
}

.cp-dashboard .cp-main {
  margin-left:200px;
  max-width:none;
  padding:0 40px 40px;
}

.cp-dashboard .cp-hero {
  padding-top:38px;
}

.cp-dashboard .cp-hero h1 {
  font-size:35px;
  letter-spacing:-1.2px;
}

.cp-dashboard .cp-main>section,.cp-dashboard .cp-main>[data-inspiration-composer] {
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}

@media(min-width:1600px) {
  .cp-dashboard .cp-main {
    margin-right:auto;
    margin-left:200px;
  }
  .cp-app .insp-character {
    max-width:none;
  }
}

@media(max-width:1100px) {

  .cp-app .insp-section-heading h2 small {
    display:block;
    margin:5px 0 0;
  }
  .cp-dashboard .cp-main {
    padding:0 24px 35px;
  }
  .cp-example {
    min-width:165px;
  }
  .cp-app .insp-character {
    min-width:110px;
  }

  .cp-dashboard .cp-main {
    margin-left:175px;
  }
  .cp-hero h1 {
    font-size:38px;
  }
  .cp-app .insp-section-heading {
    align-items:start;
  }
  .cp-dashboard .insp-section-heading {
    flex-wrap:wrap;
  }
}

@media(max-width:760px) {

  .cp-main,.cp-dashboard .cp-main {
    margin:0;
    padding:0 20px 25px;
  }
  .cp-hero,.cp-dashboard .cp-hero {
    padding:32px 0 22px;
  }
  .cp-hero h1,.cp-dashboard .cp-hero h1 {
    font-size:33px;
    letter-spacing:-1.2px;
    max-width:480px;
    margin-left:auto;
    margin-right:auto;
  }
  .cp-hero>p:last-child {
    font-size:12px;
    line-height:1.6;
  }

  .cp-guest-form textarea {
    font-size:15px;
    min-height:100px;
    height:100px;
  }
  .cp-guest-bottom {
    flex-wrap:wrap;
  }

  .cp-guest-references {
    width:100%;
    justify-content:space-between;
  }
  .cp-guest-references button {
    flex:1;
    padding:9px 6px;
    font-size:10px;
  }
  .cp-app .insp-section-heading h2 {
    font-size:16px;
  }
  .cp-app .insp-section-heading h2 small {
    font-size:10px;
  }
  .cp-app .insp-section-heading>a {
    font-size:10px;
  }
  .cp-app .insp-character {
    flex:0 0 110px;
  }
  .cp-app .insp-character-media {
    height:70px;
  }
  .cp-example {
    flex:0 0 165px;
    height:150px;
  }

  .cp-home-lower .hp2-section-heading h2 {
    font-size:24px;
  }

  .cp-row-note,.cp-app .insp-characters-note {
    font-size:8px;
  }
  .cp-app .insp-filters {
    max-width:100%;
  }
  .cp-home-lower .hp2-template-track {
    max-width:100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  .cp-app * {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}

.cp-home-lower .cp-unavailable-preview {
  object-fit:cover;
  opacity:.8;
}

.cp-fallback-label {
  position:absolute;
  bottom:8px;
  left:8px;
  padding:4px 8px;
  border-radius:6px;
  background:#ffffffed;
  color:#5b6471;
  font-size:10px;
}

/* Keep the image's center available for enlarge in the compact reference slots. */

.cp-home-lower .hp2-template-image { position: relative; }

/* Preserve the production shell; keep the proposed entry contained. */
.cp-app.cp-home { --accent:#6c4bea; }
.cp-app.cp-dashboard .dashboard-container { height:100vh; }
.cp-app.cp-dashboard .cp-main { margin:0; max-width:1200px; width:100%; padding:24px 32px 48px; box-sizing:border-box; }
.cp-app.cp-home .cp-main { padding-top:24px; }

.cp-app .cp-hero { padding:0 0 14px; }
.cp-app .cp-hero h1 { font-size:28px; line-height:1.3; letter-spacing:-.7px; margin:0; }

.cp-app .cp-guest-form textarea { height:54px; min-height:54px; font-size:15px; }

.cp-app .insp-section-heading { margin-bottom:8px; }
.cp-app .insp-section-heading h2 { font-size:14px; }
.cp-app .insp-section-heading h2 small { display:inline; font-size:10px; font-weight:400; margin:0 0 0 8px; }
.cp-app .insp-characters { margin-bottom:14px; }
.cp-app .insp-character { display:flex; flex:1 0 120px; min-width:120px; max-width:170px; height:60px; align-items:center; border-radius:9px; }
.cp-app .insp-character-media { flex:0 0 47px; width:47px; height:60px; overflow:hidden; }
.cp-app .insp-character-copy { padding:6px 8px; min-width:0; }
.cp-app .insp-character-copy small { display:none; }
.cp-app .insp-library { margin-bottom:22px; }
.cp-app .cp-example { flex:0 0 126px; width:126px; min-width:126px; height:auto; aspect-ratio:9/16; border-radius:9px; }
.cp-app .cp-example>span { padding:9px; }
.cp-app .cp-example strong { font-size:12px; }
.cp-app .cp-example em { display:none; }
.cp-app .insp-tile { flex:0 0 126px; }
.cp-app .insp-tile-media { aspect-ratio:9/16; }
.cp-app .cp-existing-dashboard { border-top:1px solid #eee; padding-top:6px; }
.cp-app .cp-existing-dashboard .creative-studio-header { margin-top:16px; }
.cp-app .cp-guest-status { font-size:10px; margin:6px 0 0; }

@media(max-width:767px) {
  .cp-app.cp-dashboard .dashboard-container { height:calc(100dvh - 72px); }
  .cp-app.cp-dashboard .cp-main,.cp-app.cp-home .cp-main { padding:16px 16px 40px; }
  .cp-app .cp-hero h1 { font-size:23px; letter-spacing:-.6px; }

.cp-app .cp-guest-form textarea { min-height:60px; height:60px; }
  .cp-app .insp-section-heading h2 small { display:none; }
  .cp-app .insp-character { flex:0 0 116px; min-width:116px; }

}
.cp-app .insp-character { flex-direction:row; gap:0; }
.cp-app .insp-character-media { align-self:stretch; height:60px; }
/* The same shipped artwork and real creative modes as production Inspiration. */
.cp-creative-header { display:flex; align-items:center; gap:24px; margin:0 auto 14px; max-width:1050px; }
.cp-showcases { flex:0 0 330px; min-width:0; padding-top:3px; }
.cp-app .cp-showcases .insp-showcase { height:164px; margin:0; }
.cp-app .cp-showcases .insp-showcase-item { --w:76px; aspect-ratio:9/16; border-width:2px; top:calc(var(--d) * 7px); transform:translateX(calc(var(--i) * 57px)) rotate(calc(var(--i) * 4deg)); }
.cp-app .cp-showcases .insp-showcase-item.is-center { --w:89px; }
.cp-app .cp-showcases .insp-showcase-item em { display:block; font-size:8px; left:3px; padding:2px 4px; }
.cp-creative-heading { flex:1; min-width:0; }
.cp-app .cp-creative-heading .cp-hero { text-align:left; padding:0 0 12px; }
.cp-app .cp-creative-heading .insp-agent-band { background:none; border:0; padding:0; margin:0; }
.cp-app .cp-creative-heading .insp-agent-options { justify-content:flex-start; flex-wrap:wrap; gap:6px; overflow:visible; }
.cp-app .cp-creative-heading .insp-agent-option span { padding:8px 11px; font-size:12px; }

.cp-app .insp-browse-characters { font-size:11px; padding:5px 10px; }
.cp-app .insp-character.is-toon .insp-character-media img { width:100%; object-fit:cover; }
.cp-app .insp-character-grid .insp-character { width:100%; max-width:none; }
@media(max-width:1100px) {
  .cp-creative-header { gap:12px; }
  .cp-showcases { flex-basis:290px; }
  .cp-app .cp-creative-heading .cp-hero h1 { font-size:24px; }
}
@media(max-width:767px) {
  .cp-creative-header { display:block; }
  .cp-showcases { width:290px; margin:0 auto 8px; }
  .cp-app .cp-showcases .insp-showcase { height:140px; }
  .cp-app .cp-showcases .insp-showcase-item { --w:64px; transform:translateX(calc(var(--i) * 48px)) rotate(calc(var(--i) * 4deg)); }
  .cp-app .cp-showcases .insp-showcase-item.is-center { --w:77px; }
  .cp-app .cp-creative-heading .cp-hero { text-align:center; padding-bottom:10px; }
  .cp-app .cp-creative-heading .cp-hero h1 { font-size:23px; }
  .cp-app .cp-creative-heading .insp-agent-options { flex-wrap:nowrap; overflow:auto; padding-bottom:4px; }
  .cp-app .cp-creative-heading .insp-agent-option { flex-shrink:0; }
}
@media(min-width:981px) and (max-width:1300px) {
  .cp-home .hp2-nav { grid-template-columns:160px minmax(0,1fr) auto; gap:12px; padding-inline:24px; }
  .cp-home .hp2-nav-center { gap:14px; }
  .cp-home .hp2-nav-link { font-size:12px; }
  .cp-home .hp2-user-name { display:none; }
}
.cp-app .cp-creative-heading .insp-agent-option { display:inline-flex; }
.cp-app .cp-creative-heading .insp-agent-option { position:relative; }

@media(max-width:767px) {
  .cp-app .cp-example { flex-basis:108px; width:108px; min-width:108px; }
  .cp-app .insp-tile { flex-basis:108px; }
}

/* Selections stay visible in the composer without enlarging empty slots. */

.cp-explore-dialog { width:min(850px, calc(100vw - 32px)); max-height:85dvh; padding:24px; border:1px solid #e4e1ec; border-radius:18px; }
.cp-explore-dialog::backdrop { background:#16112666; }
.cp-explore-dialog p { color:#64748b; margin:0 0 16px; }
.cp-explore-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(108px,1fr)); gap:14px; }
.cp-app .cp-explore-grid .cp-example { width:100%; min-width:0; }
.cp-guest-thumbnails { display:flex; gap:10px; }
.cp-guest-thumbnail { display:flex; align-items:center; gap:8px; font-size:11px; }
.cp-guest-thumbnail img { width:54px; height:96px; object-fit:cover; border-radius:8px; }
