/* live chat box: "try the kiln" */
.trybox { display: grid; grid-template-columns: minmax(320px, 1fr) 1.25fr; height: min(640px, 78vh); border-radius: 22px; overflow: hidden; background: #f3f2f0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.try-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.try-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: #ecebe8; }
.try-head i { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; color: #3a8a4a; }
.try-head i.busy { color: #c46a12; }
.mark-sm { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(from 0deg, #d9781f, #f6b54e, #d9781f, #f6b54e, #d9781f); -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px); mask: radial-gradient(circle, transparent 3px, #000 3.5px); animation: spin 6s linear infinite; }
.busy-ring .mark-sm { animation-duration: .9s; }

.try-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.tmsg { max-width: 92%; font-size: 14px; line-height: 1.5; padding: 10px 13px; border-radius: 16px; word-wrap: break-word; }
.tmsg.me { align-self: flex-end; background: var(--ink); color: #f1efea; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.tmsg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.tmsg.bot p { margin: 0 0 6px; } .tmsg.bot p:last-child { margin: 0; }
.tmsg.bot ul { margin: 4px 0; padding-left: 18px; }
.tmsg.bot code { font: 12px var(--mono); background: #f1efea; padding: 1px 5px; border-radius: 5px; }
.tmsg.typing::after { content: "▍"; color: #c46a12; animation: blink 1s steps(2) infinite; }
.piece { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 9px 11px; border-radius: 12px; background: #f6efe6; border: 1px solid rgba(196, 106, 18, .25); font: 12px var(--mono); color: #8a4a12; }
.piece b { font-weight: 500; }
.piece .bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(196, 106, 18, .15); overflow: hidden; }
.piece .bar i { display: block; height: 100%; width: 40%; background: #e8902c; animation: firing 1.1s ease-in-out infinite; }
.piece.done .bar i { width: 100%; animation: none; background: #3a8a4a; }
.piece.done { color: #2f6e3c; background: #edf5ee; border-color: rgba(58, 138, 74, .25); }
.piece button { font: 500 11px var(--mono); border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
@keyframes firing { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.try-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.try-chips[hidden] { display: none; }
.try-chips button { flex: none; font: 12.5px var(--sans); color: var(--ink-2); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: border-color .2s, color .2s; }
.try-chips button:hover { border-color: var(--ink); color: var(--ink); }
.try-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #ecebe8; }
.try-form input { flex: 1; min-width: 0; font: 14.5px var(--sans); padding: 11px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.try-form input:focus { outline: 2px solid var(--ember); border-color: transparent; }
.try-form button { font: 500 12.5px var(--mono); padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #f1efea; cursor: pointer; }
.try-form button:disabled { opacity: .45; cursor: wait; }

.try-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff7ef; }
.try-actions { margin-left: auto; display: flex; gap: 6px; text-transform: none; letter-spacing: 0; }
.try-actions button { font: 500 11px var(--mono); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.try-actions button:hover { border-color: var(--ink); }
.try-stage { position: relative; flex: 1; min-height: 0; }
.try-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; animation: reveal .7s cubic-bezier(.2, .9, .2, 1); }
@keyframes reveal { from { opacity: 0; transform: scale(.985); filter: blur(6px); } }
.try-src { position: absolute; inset: 0; margin: 0; padding: 16px; overflow: auto; font-size: 11.5px; line-height: 1.55; background: #1a1917; color: #e9e4da; white-space: pre-wrap; word-break: break-word; }
.try-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.try-empty p { margin: 0; }
.ring-sm { width: 90px; height: 90px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #d9781f 0 2deg, transparent 2deg 6deg); -webkit-mask: radial-gradient(circle, transparent 24px, #000 25px, #000 44px, transparent 45px); mask: radial-gradient(circle, transparent 24px, #000 25px, #000 44px, transparent 45px); opacity: .55; animation: spin 18s linear infinite; }
.firing .ring-sm { opacity: 1; animation-duration: 1.4s; }
.try-fine { margin-top: 14px; }

@media (max-width: 860px) {
  .trybox { grid-template-columns: 1fr; height: auto; }
  .try-chat { border-right: 0; border-bottom: 1px solid var(--line); height: 460px; }
  .try-preview { height: 420px; }
}

/* live Firing Fund */
.fundlive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 14px; }
.fundlive > div { border-radius: 16px; background: rgba(255, 255, 255, .35); border: 1px solid var(--line); padding: 14px 16px; }
.fundlive small { display: block; font-size: 11px; color: var(--muted); }
.fundlive b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-top: 2px; }
.b-row.live { align-items: center; }
.b-row.live p { margin: 6px 0 0; font-size: 13px; color: #b9b4ab; max-width: 60ch; }
.b-kind { display: block; font-size: 11.5px; color: #a9a59d; margin-top: 3px; text-align: left !important; }
.b-side { display: flex; align-items: center; gap: 12px; flex: none; }
.b-reward { font-size: 14px; color: var(--ember); }
.b-row .chip { border-color: #f1efea; color: #f1efea; }
.b-row .chip:hover { background: #f1efea; color: #141414; }
.submit-form { display: grid; gap: 10px; text-align: left; }
.submit-form label { display: grid; gap: 5px; font-size: 11px; color: var(--muted); }
.submit-form input, .submit-form textarea { font: 14px var(--sans); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.submit-form textarea { min-height: 70px; resize: vertical; }
.submit-form .chip { justify-content: center; height: 42px; }
@media (max-width: 640px) { .fundlive { grid-template-columns: 1fr; } .b-side { justify-content: space-between; width: 100%; } }
.fundlive[hidden] { display: none; }
