/* The one-try web demo */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo { max-width: 1240px; margin: 0 auto; padding: 32px 0 48px; }
.demo-head h1 { font: 600 clamp(32px, 5vw, 48px)/1.05 var(--display, inherit); margin: 10px 0 12px; color: #fff; }
.demo-app { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: stretch; }
.demo-chat, .demo-view { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.demo-chat { display: flex; flex-direction: column; min-height: 560px; }
.thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 620px; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg ul { margin: 6px 0; padding-left: 20px; }
.msg.user { background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); align-self: flex-end; max-width: 90%; }
.msg.claude { background: var(--panel-2); border: 1px solid var(--line); }
.msg.sys { font: 13px/1.4 var(--mono); color: var(--muted); padding: 4px 2px; }
.msg.err { border: 1px solid rgba(255, 92, 122, .5); color: #ffb3c0; background: rgba(255, 92, 122, .06); }
.msg .who { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--good); margin-bottom: 6px; }
.ask { border: 1px solid rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .06); border-radius: 10px; padding: 12px; }
.ask .q { font-weight: 600; margin-bottom: 8px; }
.ask .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ask button, .chips button { font: 14px var(--sans); padding: 7px 11px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); cursor: pointer; text-align: left; }
.ask button:hover:not(:disabled), .chips button:hover:not(:disabled) { border-color: var(--cut); }
.ask button.chosen { border-color: var(--good); color: #b9f3d2; }
.ask button:disabled, .chips button:disabled { opacity: .55; cursor: default; }
.ask .hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.typing { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }
.composer textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; font: 15px/1.45 var(--sans); color: var(--ink); background: var(--chrome, #0b0f13); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.composer-row { display: flex; gap: 10px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chips button { font-size: 13px; padding: 5px 9px; }
.composer.locked textarea { opacity: .6; }
.demo-view { display: flex; flex-direction: column; padding: 12px; min-height: 560px; }
.demo-view .tabs { min-height: 34px; }
.view { flex: 1; display: flex; align-items: center; justify-content: center; background: #0a0e12; border-radius: 8px; padding: 10px; overflow: auto; }
.view svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.view .empty { text-align: center; color: var(--muted); display: grid; gap: 6px; }
.view .dim { color: var(--muted); font-size: 14px; opacity: .8; }
.view .doc { align-self: stretch; width: 100%; box-sizing: border-box; background: var(--bp); border-radius: 8px; padding: 20px 22px; color: #eaf4ff; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 20px 20px; font-size: 14.5px; }
.view .doc h2 { margin: 0 0 4px; font-size: 20px; } .view .doc h3 { margin: 16px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #ffd36b; }
.view .doc table { width: 100%; border-collapse: collapse; font-size: 13px; } .view .doc td, .view .doc th { border-bottom: 1px solid rgba(255,255,255,.18); padding: 5px 6px; text-align: left; }
.view .doc th { color: #bfe3ff; } .view .doc td.n { font-family: var(--mono); } .view .doc ol { padding-left: 20px; }
.issues { margin-top: 10px; font-size: 14px; border: 1px solid rgba(255, 176, 32, .45); color: #ffd890; border-radius: 8px; padding: 8px 10px; }
.demo-after { margin-top: 20px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid rgba(61, 220, 132, .4); background: linear-gradient(180deg, rgba(61, 220, 132, .08), transparent); border-radius: 12px; padding: 20px 22px; }
.demo-after h2 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.demo-after p { margin: 0; color: var(--muted); max-width: 62ch; }
.demo-note { margin-top: 16px; color: var(--muted); }
@media (max-width: 900px) {
  .demo-app { grid-template-columns: minmax(0, 1fr); }
  .demo-chat { min-height: 420px; }
  .demo-view { min-height: 0; }
  .thread { max-height: 460px; }
}
.composer .btn:disabled { opacity: .45; cursor: default; }
.composer.started .chips { display: none; }
.composer.started .composer-row { justify-content: flex-end; }
