/* Scene "studio": brand kit on the left, a short prompt, on-brand images develop, one part gets changed. */
.studio { --blue: #4C75FF; --nv: #060A18; --bd: rgba(255,255,255,.09); --tx: #EEF1F8; --tm: #AAB2C7; --tf: #737D94;
  width: 100%; max-width: 530px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; font-family: var(--sans); }
.studio-reset, .studio-reset * { transition: none !important; }
.studio svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* browser window */
.studio-win { width: 100%; border-radius: 14px; overflow: hidden; background: var(--nv); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); }
.studio-bar { height: 30px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #1B1D26; border-bottom: 1px solid rgba(255,255,255,.07); }
.studio-dots { display: flex; gap: 6px; flex: none; } .studio-dots i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; } .studio-dots i:nth-child(2) { background: #FEBC2E; } .studio-dots i:nth-child(3) { background: #28C840; }
.studio-url { flex: 1; max-width: 260px; margin: 0 auto; height: 18px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--tm); font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; overflow: hidden; transform: translateX(-18px); }
.studio-url svg { width: 10px; height: 10px; flex: none; }
.studio-nav { height: 36px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bd); color: var(--tx); font-size: 11px; background: radial-gradient(300px 80px at 10% 0, rgba(76,117,255,.16), transparent 70%); }
.studio-nav b { font-weight: 600; display: flex; align-items: center; gap: 7px; letter-spacing: -.01em; white-space: nowrap; }
.studio-nav b i { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #4C75FF, #1A4FFF); }
.studio-nav > span { display: flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--bd); background: rgba(255,255,255,.03); }
.studio-nav em { font-style: normal; font-size: 9.5px; color: var(--tm); padding: 3px 9px; border-radius: 999px; }
.studio-nav em.on { color: #fff; background: linear-gradient(180deg, #4C75FF, #1A4FFF); }

.studio-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); }

/* brand kit */
.studio-kit { padding: 12px; border-right: 1px solid var(--bd); background: #0A0F1E; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.studio-kit small { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tf); }
.studio-kh { display: flex; align-items: center; justify-content: space-between; }
.studio-kh span { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--ok); } .studio-kh svg { width: 9px; height: 9px; }
.studio-brand { display: flex; align-items: center; gap: 7px; color: var(--tx); font-size: 11px; white-space: nowrap; }
.studio-brand i { width: 22px; height: 22px; border-radius: 7px; background: #1F4D3A; color: #DCE8D6; font: 400 13px/22px var(--serif); text-align: center; font-style: normal; flex: none; }
.studio-brand b { font-weight: 600; }
.studio-sec { padding: 7px 8px; margin: 0 -4px; border-radius: 9px; border: 1px solid var(--bd); background: rgba(255,255,255,.025); display: grid; gap: 7px; transition: border-color .4s, background .4s, box-shadow .4s; }
.studio-sw { display: flex; gap: 5px; } .studio-sw i { flex: 1; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.studio-font { display: flex; align-items: center; gap: 8px; color: var(--tm); font-size: 8.5px; line-height: 1.35; white-space: nowrap; }
.studio-font b { font: 400 24px/1 var(--serif); color: var(--tx); }
.studio-prod { display: flex; gap: 5px; } .studio-prod img { flex: 1; min-width: 0; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; width: 0; }
.studio-look { display: flex; gap: 4px; } .studio-look span { font-size: 8.5px; color: var(--tm); padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.06); white-space: nowrap; }
.studio-kf { margin-top: auto; font-size: 8.5px; line-height: 1.4; color: var(--tf); }
.is-gen .studio-sec { border-color: rgba(76,117,255,.6); background: rgba(76,117,255,.09); box-shadow: 0 0 0 3px rgba(76,117,255,.12); }
.is-gen .studio-k2 { transition-delay: .15s; } .is-gen .studio-k3 { transition-delay: .3s; } .is-gen .studio-k4 { transition-delay: .45s; }
.is-d3 .studio-sec { border-color: var(--bd); background: rgba(255,255,255,.025); box-shadow: none; transition-delay: 0s; }

/* prompt */
.studio-main { padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.studio-prompt { border-radius: 10px; padding: 9px 10px 8px 11px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); display: grid; gap: 6px; transition: border-color .3s, box-shadow .3s; }
.is-focus .studio-prompt { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,117,255,.2); }
.is-gen .studio-prompt { border-color: rgba(255,255,255,.13); box-shadow: none; }
.studio-prompt p { position: relative; height: 30px; font-size: 11px; line-height: 15px; color: var(--tx); overflow: hidden; }
.studio-ph { position: absolute; left: 0; top: 0; color: var(--tf); transition: opacity .2s; white-space: nowrap; } .is-focus .studio-ph { opacity: 0; }
.studio-caret { display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--blue); opacity: 0; }
.is-focus .studio-caret { opacity: 1; animation: studio-blink 1s steps(1) infinite; } .is-gen .studio-caret { opacity: 0; animation: none; }
@keyframes studio-blink { 50% { opacity: 0; } }
.studio-prompt > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-auto { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: var(--tf); white-space: nowrap; transition: color .4s; } .studio-auto svg { width: 10px; height: 10px; stroke-width: 2.2; }
.is-gen .studio-auto { color: var(--ok); }
.studio-btn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px 0 9px; border-radius: 7px; font-size: 10px; font-weight: 500; color: #fff; white-space: nowrap; background: linear-gradient(180deg, #4C75FF, #1A4FFF); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 18px -8px rgba(38,84,255,.8); opacity: .5; transition: opacity .3s, transform .25s var(--ease), filter .3s; }
.studio-btn svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.is-typed .studio-btn { opacity: 1; } .is-gen .studio-btn { animation: studio-press .45s var(--ease); }
@keyframes studio-press { 40% { transform: scale(.93); filter: brightness(1.25); } }

/* results */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 26%; gap: 8px; }
.studio-col { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.studio-cell { position: relative; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid var(--bd); min-height: 0; }
.studio-big { aspect-ratio: 928 / 863; }
.studio-cell::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(120,150,255,.16) 50%, transparent 70%) 0 0 / 250% 100%; opacity: 0; transition: opacity .3s; }
.is-gen .studio-cell::before { opacity: 1; animation: studio-sh 1.1s linear infinite; }
@keyframes studio-sh { from { background-position: 120% 0; } to { background-position: -130% 0; } }
.studio-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; filter: blur(14px) saturate(.2) brightness(1.5); transform: scale(1.12); transition: opacity .5s, filter 1.3s var(--ease), transform 1.4s var(--ease); }
.is-d0 .studio-c0 img:first-child, .is-d1 .studio-c1 img, .is-d2 .studio-c2 img, .is-d3 .studio-c3 img { opacity: 1; filter: none; transform: none; }
.is-d0 .studio-c0::before, .is-d1 .studio-c1::before, .is-d2 .studio-c2::before, .is-d3 .studio-c3::before { opacity: 0; animation: none; }

/* point and change one part */
.studio-cell img.studio-after { filter: none; transform: none; clip-path: inset(10.5% 7% 66.5% 61%); transition: opacity .9s; }
.is-changed .studio-cell img.studio-after { opacity: 1; }
.studio-mq { position: absolute; left: 61%; top: 10.5%; width: 0; height: 0; border-radius: 4px; opacity: 0; outline: 1.5px dashed #fff; outline-offset: -1px; box-shadow: 0 0 0 600px rgba(3,6,16,0); transition: width .75s cubic-bezier(.4,0,.2,1), height .75s cubic-bezier(.4,0,.2,1), box-shadow .5s, outline-color .5s, opacity .2s; overflow: hidden; }
.is-sel .studio-mq { opacity: 1; width: 32%; height: 23%; box-shadow: 0 0 0 600px rgba(3,6,16,.42); }
.studio-mq i { position: absolute; inset: 0; opacity: 0; background: linear-gradient(100deg, rgba(76,117,255,.15) 25%, rgba(190,205,255,.75) 50%, rgba(76,117,255,.15) 75%) 0 0 / 250% 100%; transition: opacity .4s; }
.is-busy .studio-mq i { opacity: 1; animation: studio-sh .9s linear infinite; }
.is-changed .studio-mq { outline: 1.5px solid var(--ok); box-shadow: 0 0 0 600px rgba(3,6,16,.12), 0 0 0 0 transparent; }
.is-changed .studio-mq i { opacity: 0; animation: none; }
.studio-cur { position: absolute; left: 84%; top: 86%; width: 16px; height: 16px; margin: -2px 0 0 -3px; opacity: 0; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); transition: left .75s cubic-bezier(.4,0,.2,1), top .75s cubic-bezier(.4,0,.2,1), opacity .3s; }
.studio svg.studio-cur { fill: #fff; stroke: #0B0F1E; stroke-width: 1.3; }
.is-cur .studio-cur { opacity: 1; left: 61%; top: 10.5%; } .is-sel .studio-cur { left: 93%; top: 33.5%; } .is-busy .studio-cur { opacity: 0; }
.studio-ask { position: absolute; right: 42%; top: 12%; display: grid; justify-items: end; z-index: 2; }
.studio-ask b { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 9px; border-radius: 8px 8px 2px 8px; font-size: 9.5px; font-weight: 500; white-space: nowrap; color: #fff; background: rgba(12,17,34,.92); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 8px 20px -8px #000; opacity: 0; transform: translateY(5px) scale(.96); transform-origin: right center; transition: opacity .3s, transform .45s var(--ease); }
.studio-a1 .studio-etyped::after { content: ''; display: inline-block; width: 1.5px; height: 10px; margin-left: 1px; vertical-align: -1.5px; background: var(--blue); }
.studio-a2 { color: #C9D4FF !important; } .studio-a2 i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: studio-bop 1s infinite; } .studio-a2 i:nth-of-type(2) { animation-delay: .15s; } .studio-a2 i:nth-of-type(3) { animation-delay: .3s; }
@keyframes studio-bop { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.studio-a3 { color: var(--ok) !important; border-color: rgba(61,214,140,.5) !important; } .studio-a3 svg { width: 11px; height: 11px; stroke-width: 2.2; }
.is-ask .studio-a1 { opacity: 1; transform: none; }
.is-busy .studio-a1 { opacity: 0; } .is-busy .studio-a2 { opacity: 1; transform: none; }
.is-changed .studio-a2 { opacity: 0; } .is-changed .studio-a3 { opacity: 1; transform: none; }

/* outcome */
.studio-out { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--mute); font-size: .9rem; letter-spacing: -.01em; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .7s var(--ease), border-color .6s; }
.studio-out b { color: var(--ink); font-weight: 600; }
.studio-out span { width: 24px; height: 24px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; } .studio-out span svg { width: 14px; height: 14px; stroke-width: 2.2; }
.is-out .studio-out { opacity: 1; transform: none; border-color: rgba(61,214,140,.4); }

@media (max-width: 600px) {
  .studio-body { grid-template-columns: minmax(0, 1fr); }
  .studio-kit { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--bd); }
  .studio-kh, .studio-kf, .studio-sec small, .studio-k2, .studio-k4 { display: none; }
  .studio-brand { margin-right: auto; font-size: 10.5px; }
  .studio-sec { margin: 0; padding: 5px; }
  .studio-sw i { flex: none; width: 16px; height: 16px; } .studio-sw { gap: 4px; }
  .studio-prod img { flex: none; width: 16px; height: 16px; border-radius: 4px; } .studio-prod { gap: 4px; }
  .studio-main { padding: 10px; gap: 8px; }
  .studio-prompt p { font-size: 10.5px; }
  .studio-nav > span em:not(.on) { display: none; }
  .studio-url { transform: none; }
  .studio-grid { gap: 6px; } .studio-col { gap: 6px; }
  .studio-ask b { font-size: 8.5px; padding: 0 7px; min-height: 20px; }
  .studio-out { font-size: .8rem; padding-right: 14px; }
}
