/* Entry only: reuse the original Custex Light cream sky and glass surfaces. */
.cx-prompt-entry {
  flex: 1; min-height: 0; overflow: auto;
  padding: 28px clamp(20px, 5vw, 80px);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(234,163,126,.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 75% 65%, rgba(201,122,106,.16), transparent 65%),
    radial-gradient(ellipse 40% 30% at 60% 20%, rgba(141,156,121,.14), transparent 60%),
    radial-gradient(ellipse 75% 60% at 12% -10%, #fce6cd 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 110% 10%, #f6d4c4 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 110%, #efe4cc 0%, transparent 60%),
    linear-gradient(180deg, #f8efe1 0%, #f3e7d2 50%, #ecdec7 100%);
}
.cx-prompt-entry, .cx-prompt-entry * { box-sizing: border-box; }
.cx-prompt-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cx-prompt-brand { font-family: var(--serif); font-size: 32px; }
.cx-prompt-brand span { font: 12px var(--sans); margin-inline-start: 12px; }
.cx-prompt-entry button {
  font: 400 13px var(--sans); cursor: pointer; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; color: var(--ink); border: 1px solid rgba(120,75,40,.2);
  background: rgba(255,250,240,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.cx-prompt-entry button:hover:not(:disabled) { background: rgba(255,255,255,.65); }
.cx-prompt-entry button:disabled { opacity: .6; cursor: wait; }
.cx-prompt-entry :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cx-prompt-content { max-width: 720px; margin: clamp(48px, 15vh, 160px) auto 48px; }
.cx-prompt-content h1 { font: 300 clamp(38px, 4.8vw, 64px)/1.1 var(--serif); text-wrap: balance; text-align: center; margin: 0 0 18px; }
.cx-prompt-intro { color: var(--ink-2); font-size: 14px; line-height: 1.6; text-align: center; margin: 0 0 36px; }
.cx-prompt-form {
  padding: 24px; border: 1px solid rgba(255,255,255,.65); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,250,240,.75), rgba(248,238,221,.55));
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 30px 60px -22px rgba(120,75,40,.25), 0 8px 22px -6px rgba(120,75,40,.12), inset 0 1px 0 rgba(255,255,255,.8);
}
.cx-prompt-form > label { font: 400 12px var(--sans); color: var(--ink-2); }
.cx-prompt-form textarea { display: block; width: 100%; min-height: 112px; resize: vertical; margin: 12px 0 20px; padding: 12px 0; border: 0; border-radius: 4px; font: 400 16px/1.6 var(--sans); color: var(--ink); background: transparent; -webkit-user-select: text; user-select: text; }
.cx-prompt-form textarea::placeholder { color: var(--ink-2); opacity: 1; }
.cx-prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cx-prompt-entry .cx-prompt-upload { background: transparent; }
.cx-prompt-entry .cx-prompt-submit {
  background: linear-gradient(180deg, #fbf2e2, #f1dfc1); padding-inline: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 6px 18px rgba(120,75,40,.12);
}
.cx-prompt-entry .cx-prompt-submit:hover:not(:disabled) { background: linear-gradient(180deg, #fff, #f4e3c6); }
.cx-prompt-demo { font-size: 12px; color: var(--ink-2); line-height: 1.6; text-align: center; margin: 20px 0 0; }
.cx-prompt-status, #cx-prompt-error { font-size: 13px; line-height: 1.6; margin: 16px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-prompt-status:empty, #cx-prompt-error:empty { margin: 0; }
.cx-prompt-reply { margin: 24px 0; padding: 16px 20px; background: rgba(255,250,240,.5); border-radius: 16px; line-height: 1.6; white-space: pre-wrap; }
.cx-prompt-reply p { margin: 0; }
.cx-prompt-images { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cx-prompt-images > div { display: grid; gap: 8px; }
.cx-prompt-images img { width: 96px; height: 80px; object-fit: cover; outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; border-radius: 4px; }
.cx-prompt-images button { font-size: 12px; }
body:has(.cx-prompt-entry) .cx-mobile-gate { display: none; }
@media (max-width: 480px) { .cx-prompt-form { padding: 20px; } .cx-prompt-content { margin-top: 48px; } }
