.try-page {
  min-height: 100vh;
  color-scheme: dark;
  background: radial-gradient(ellipse at 68% 2%, #111f39 0%, var(--bg) 65%);
}
.try-bar, .try-shell { width: min(calc(100% - 40px), 1120px); margin-inline: auto; }
.try-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.try-return, .try-title p, .try-note { color: var(--text-dim); }
.try-return:hover { color: var(--accent-2); }
.try-shell { padding: 34px 0 54px; }
.try-title { margin-bottom: 22px; }
.try-title h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.2; margin-bottom: 8px; }
.try-layout { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: 15px; align-items: start; }
.try-panel { min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.try-panel h2 { font-size: 1.03rem; }
.try-config { padding: 20px; }
.try-config form { display: grid; gap: 5px; margin-top: 12px; }
.try-config label { margin-top: 7px; }
.try-page label { color: var(--text-dim); font-size: .85rem; font-weight: 600; }
.try-page input, .try-page select, .try-page textarea {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font: inherit;
  font-size: .9rem;
}
.try-page select { color-scheme: dark; }
.try-page textarea { resize: vertical; min-height: 66px; }
.try-page :focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.try-page button:disabled { cursor: default; opacity: .5; box-shadow: none; transform: none; }
.try-note { font-size: .81rem; }
.try-config .try-note { margin: 6px 0; line-height: 1.6; }
.try-test { width: 100%; }
.try-status { margin-top: 8px; overflow-wrap: anywhere; font-size: .85rem; color: var(--text-dim); }
.try-status[data-kind="ok"] { color: #86e5bf; }
.try-status[data-kind="error"] { color: #ffc1cd; }
.try-chat { --persona-color: #70deef; overflow: hidden; }
.try-chat[data-persona="roxy_character"] { --persona-color: #93b5ff; }
.try-chat[data-persona="rubi"] { --persona-color: #ffc0d4; }
.try-chat[data-persona="herta"] { --persona-color: #c5b7ff; }
.try-chat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 145px);
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.try-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--persona-color);
  background: var(--bg-soft);
  font-weight: 700;
}
.try-persona select { margin-top: 3px; }
.try-log {
  height: clamp(220px, 37vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #45607d var(--bg-soft);
  padding: 15px 16px;
  background: var(--bg-soft);
}
.try-log:empty { display: none; }
.try-starter {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  min-height: clamp(220px, 37vh, 420px);
  padding: 16px;
  background: var(--bg-soft);
  text-align: center;
  color: var(--text-dim);
}
.try-starter[hidden] { display: none; }
.try-starter button { max-width: 100%; white-space: normal; }
.try-turn { display: grid; justify-items: start; gap: 4px; margin-bottom: 13px; }
.try-turn--user { justify-items: end; }
.try-turn span { font-size: .75rem; color: var(--persona-color); }
.try-turn--user span { color: var(--text-dim); }
.try-turn p {
  max-width: min(90%, 56ch);
  padding: 8px 11px;
  border-radius: 11px 11px 11px 4px;
  background: #1b293b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.try-turn--user p { border-radius: 11px 11px 4px 11px; background: #22395c; }
.try-composer { padding: 12px 16px; border-top: 1px solid var(--line); }
.try-composer textarea { display: block; margin: 4px 0 8px; }
.try-composer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.try-composer .btn, .try-test { padding: 8px 15px; }
.try-composer .try-status:empty { display: none; }
@media (max-width: 680px) {
  .try-layout { grid-template-columns: minmax(0, 1fr); }
  .try-shell { padding-top: 22px; }
}
@media (max-width: 365px) {
  .try-chat-head { grid-template-columns: auto minmax(0, 1fr); }
  .try-persona { grid-column: 1 / -1; }
}
