@font-face {
  font-family: "Bot Demo Inter";
  src: url("/static/fonts/bot-demo/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Isolated browser demo, ported from the desktop renderer's dark theme and layout. */
.abot-playground {
  padding-top: 36px;
  padding-bottom: 36px;
  scroll-margin-top: 24px;
}
.bot-app {
  position: relative;
  --app-bg: oklch(0.145 0 0);
  --app-card: oklch(0.205 0 0);
  --app-primary: oklch(0.72 0.26 324.591);
  --app-muted: oklch(0.708 0 0);
  --app-border: oklch(1 0 0 / 10%);
  color-scheme: dark;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 730px;
  min-height: 0;
  background: var(--app-bg);
  color: #fafafa;
  border: 1px solid #3d3748;
  border-radius: 16px;
  overflow: hidden;
  font-family:
    "Bot Demo Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 20px 70px -35px #2b124f88;
  isolation: isolate;
}
.bot-app *,
.bot-app *::before,
.bot-app *::after {
  box-sizing: border-box;
}
.bot-app [hidden] {
  display: none !important;
}
.bot-app h3,
.bot-app h4,
.bot-app p,
.bot-app label,
.bot-app strong {
  font-family: inherit;
  color: inherit;
}
.bot-app h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}
.bot-app h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.bot-app p {
  margin: 8px 0;
}
.bot-app button,
.bot-app input,
.bot-app select,
.bot-app textarea {
  font: inherit;
}
.bot-app button {
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  border-radius: 7px;
  padding: 7px 10px;
  text-align: left;
  line-height: 1.4;
  box-shadow: none;
}
.bot-app button:hover {
  border-color: color-mix(in srgb, var(--app-primary) 45%, transparent);
  background: #29252d;
}
.bot-app button:disabled {
  cursor: default;
  opacity: 0.45;
}
.bot-app button:focus-visible,
.bot-app input:focus-visible,
.bot-app textarea:focus-visible,
.bot-app select:focus-visible,
.bot-app summary:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}
.bot-app svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  vertical-align: middle;
}
.bot-app input:not([type="checkbox"]),
.bot-app textarea,
.bot-app select {
  width: 100%;
  border: 1px solid #3d3d3d;
  border-radius: 7px;
  padding: 9px 11px;
  background: #202020;
  color: #f5f5f5;
  outline-offset: 2px;
}
.bot-app textarea {
  resize: vertical;
}
.bot-app input::placeholder,
.bot-app textarea::placeholder {
  color: #969696;
  opacity: 1;
}
.bot-app input[type="checkbox"] {
  accent-color: var(--app-primary);
  width: 16px;
  height: 16px;
}
.bot-app label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
}
.bot-app label > input,
.bot-app label > textarea,
.bot-app label > select {
  margin-top: 6px;
}
.bot-app .bot-app-primary {
  background: linear-gradient(var(--app-primary), #6d10e4);
  color: white;
  font-weight: 600;
  border: 0;
  text-align: center;
}
.bot-app .bot-app-muted {
  color: var(--app-muted);
}
.bot-app .bot-app-small {
  font-size: 10px;
  color: var(--app-muted);
}
.bot-app-sidebar {
  background: #252527;
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bot-app-brand {
  height: 48px;
  min-height: 48px;
  border-bottom: 1px solid var(--app-border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.bot-app-brand img {
  border-radius: 5px;
}
.bot-app-brand b {
  font-weight: 400;
}
.bot-app-brand button {
  margin-left: auto;
}
.bot-app-brand button,
.bot-app-topbar button {
  border: 0;
  padding: 3px;
  background: none;
  color: #aaa;
}
.bot-app-trees {
  padding: 10px 7px;
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.bot-app-tree {
  margin-bottom: 14px;
}
.bot-app-tree-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bot-app-tree-heading button {
  border: 0;
  background: none;
  color: #aeaeae;
  display: flex;
  align-items: center;
  gap: 9px;
}
.bot-app-tree-heading [data-tree-toggle] {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.bot-app-tree-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.bot-app-tree-chevron svg {
  width: 14px;
  height: 14px;
}
.bot-app-tree-heading [aria-expanded="false"] .bot-app-tree-chevron {
  transform: rotate(-90deg);
}
.bot-app-tree-heading small {
  color: #737373;
}
.bot-app .bot-app-tree-item {
  background: none;
  border: 0;
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
}
.bot-app-tree-item span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.bot-app .bot-app-tree-item.is-selected {
  background: #3a333f;
}
.bot-app-avatar {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  color: white;
  font-style: normal;
  font-size: 20px;
}
.bot-app-sidebar-bottom > button {
  display: flex;
  align-items: center;
  width: calc(100% - 14px);
  gap: 10px;
  margin: 2px 7px;
  border: 0;
  background: none;
  padding: 9px;
}
.bot-app-account {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--app-border);
  padding: 12px 9px;
  gap: 7px;
}
.bot-app-account-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #474747;
  border-radius: 50%;
  color: #aaa;
}
.bot-app-account strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
}
.bot-app-account small {
  display: block;
  color: #929292;
  font-size: 9px;
}
.bot-app-account button {
  border: 0;
  background: none;
  padding: 4px;
  margin-left: auto;
}
.bot-app-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}
.bot-app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--app-border);
}
.bot-app-topbar > span:first-of-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-app-topbar-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.bot-app-sidebar-reopen {
  display: none;
}
.bot-app-body {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.bot-app-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.bot-app-page {
  min-height: 100%;
}
.bot-app-focused {
  padding: 30px clamp(18px, 3vw, 44px);
}
.bot-app-session {
  display: flex;
  padding: 32px 28px;
  align-items: center;
  justify-content: center;
}
.bot-app-session-welcome {
  width: 100%;
  max-width: 720px;
  text-align: center;
}
.bot-app-welcome-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 15px;
  color: var(--app-primary);
  margin: 0 auto 20px;
}
.bot-app-welcome-icon svg {
  width: 27px;
  height: 27px;
}
.bot-app-session-welcome h3 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.bot-app .bot-app-workspace-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
}
.bot-app-session-welcome > p {
  font-size: 10px;
  margin: 10px 0 28px;
}
.bot-app-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}
.bot-app-starters > button,
.bot-app-template-grid > button {
  padding: 14px;
  border-radius: 15px;
  min-height: 135px;
  background: #171717;
  /* Buttons centre their content vertically; stack from the top so titles line up across a row. */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.bot-app-starters > button > span,
.bot-app-template-grid > button > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bot-app-starters i,
.bot-app-template-grid i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #252525;
  color: var(--app-primary);
  border-radius: 8px;
  flex-shrink: 0;
}
.bot-app-starters strong,
.bot-app-template-grid strong {
  font-size: 12px;
  font-weight: 600;
}
.bot-app-starters p,
.bot-app-template-grid p {
  color: #aaa;
  font-size: 11px;
  line-height: 1.45;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bot-app-composer {
  padding: 12px 14px 9px;
  margin: 0;
  border-top: 1px solid #171717;
}
.bot-app-composer-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bot-app-composer-input > button {
  background: none;
  padding: 5px;
  border: 0;
}
.bot-app-composer textarea {
  min-height: 42px;
  max-height: 105px;
  border-radius: 22px;
  resize: none;
  background: #171717;
  padding: 11px 14px;
  font-size: 12px;
}
.bot-app-composer .bot-app-send {
  background: var(--app-primary);
  border-radius: 50%;
  padding: 7px;
  color: #16091b;
}
.bot-app-composer-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
/* The access select and the model button are one pair: same height, type, hover and chevron. */
.bot-app-composer-options select,
.bot-app-composer-options button {
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  color: #e5e5e5;
  font-size: 11px;
  line-height: 26px;
}
.bot-app-composer-options select {
  width: auto;
  max-width: 155px;
  padding-right: 24px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5e5e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 12px 12px;
}
.bot-app-composer-options select:hover,
.bot-app-composer-options button:hover {
  background-color: #202020;
}
.bot-app-composer-options small {
  color: #a3a3a3;
  font-size: 9px;
}
.bot-app-composer-options button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Dropdown caret: the chevron icon, centred on the text rather than a glyph on its baseline. */
.bot-app-caret {
  display: inline-flex;
  align-items: center;
}
.bot-app-caret svg {
  width: 12px;
  height: 12px;
}
.bot-app-bots-home {
  padding: 32px 24px;
  text-align: center;
}
.bot-app-face {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #a855f7;
  border-radius: 50%;
  color: #321451;
  font-size: 35px;
  margin: 0 auto 15px;
}
.bot-app-bots-home h3 {
  font-size: 29px;
  margin: 0 0 10px;
}
.bot-app-bots-home em {
  color: var(--app-primary);
  font-style: normal;
}
.bot-app-bots-home > p {
  margin: 0 0 22px;
  font-size: 13px;
}
.bot-app-bots-home form {
  max-width: 440px;
  margin: auto;
}
.bot-app-name-input {
  position: relative;
}
.bot-app-name-input svg {
  position: absolute;
  top: 19px;
  left: 14px;
  color: var(--app-primary);
}
.bot-app-name-input input {
  padding: 13px 12px 13px 40px !important;
}
.bot-app-bots-home form > button {
  width: 80%;
  padding: 13px;
  border-radius: 10px;
}
.bot-app-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  margin: 26px auto 18px;
  font-size: 12px;
  color: var(--app-muted);
}
.bot-app-divider::before,
.bot-app-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--app-border);
}
.bot-app-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}
.bot-app-categories button {
  font-size: 10px;
  padding: 7px 9px;
}
.bot-app-categories [aria-selected="true"] {
  background: var(--app-primary);
  color: white;
}
.bot-app-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}
.bot-app-template-grid i {
  color: white;
}
.bot-app-page-lead {
  display: flex;
  align-items: start;
  gap: 15px;
  margin-bottom: 20px;
}
.bot-app-page-lead p {
  color: var(--app-muted);
  margin: 0;
  flex: 1;
}
.bot-app-page-lead button {
  white-space: nowrap;
}
.bot-app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.bot-app-stats > div {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 13px;
  color: var(--app-muted);
}
.bot-app-stats strong {
  display: block;
  color: white;
  font-size: 24px;
}
.bot-app-stats > div:first-child strong {
  color: var(--app-primary);
}
.bot-app-routine-card {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 14px;
}
.bot-app-routine-card > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.bot-app-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #27272b;
  color: #ddd;
}
.bot-app-routine-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}
.bot-app-routine-actions > button {
  border: 0;
  background: none;
  padding: 5px;
}
.bot-app-routine-card p {
  font-size: 11px;
  color: var(--app-muted);
}
.bot-app-routine-card summary {
  cursor: pointer;
  color: #aaa;
}
.bot-app .bot-app-switch {
  width: 32px;
  height: 19px;
  padding: 2px;
  border: 0;
  border-radius: 20px;
  background: #424242;
  flex-shrink: 0;
}
.bot-app-switch span {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
}
.bot-app-switch[aria-checked="true"] {
  background: var(--app-primary);
}
.bot-app-switch[aria-checked="true"] span {
  margin-left: 13px;
}
.bot-app-routine-templates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.bot-app-routine-templates button {
  background: none;
  padding: 13px;
  border-radius: 9px;
}
.bot-app-routine-templates strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.bot-app-routine-templates p {
  color: #aaa;
  font-size: 11px;
}
.bot-app-cap-tabs {
  border-bottom: 1px solid var(--app-border);
  padding: 8px 15px;
  display: flex;
  gap: 4px;
}
.bot-app-cap-tabs button {
  border: 0;
  background: none;
  color: #999;
}
.bot-app-cap-tabs [aria-selected="true"] {
  background: #252525;
  color: #eee;
}
.bot-app-search {
  position: relative;
  margin-bottom: 25px !important;
  max-width: 460px;
}
.bot-app-search svg {
  position: absolute;
  top: 14px;
  left: 12px;
  color: #999;
}
.bot-app-search input {
  margin: 0 !important;
  padding-left: 37px !important;
}
.bot-app-connectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bot-app-connector {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 13px;
  background: #111;
  border: 1px solid var(--app-border);
  border-radius: 10px;
}
.bot-app-connector > div {
  flex: 1;
  min-width: 0;
}
.bot-app-service-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #252525;
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}
.bot-app-service-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.bot-app-connector p {
  font-size: 10px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 0;
}
.bot-app-connector > button {
  background: var(--app-primary);
  padding: 5px 7px;
  font-size: 10px;
  border: 0;
}
.bot-app-connector > button[aria-pressed="true"] {
  background: #203b2a;
  color: #8ce5a8;
}
.bot-app-capability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--app-border);
}
.bot-app-capability p {
  color: #999;
}
.bot-app-artifact-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  margin-bottom: 8px;
}
.bot-app-artifact-list small {
  display: block;
  font-size: 10px;
  color: #999;
}
.bot-app-artifact-list button > span:last-child {
  margin-left: auto;
}
.bot-app-invite-progress {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 14px;
  margin: 20px 0;
}
.bot-app-invite-progress progress {
  width: 100%;
  height: 7px;
  display: block;
  margin: 12px 0;
  accent-color: var(--app-primary);
}
.bot-app-invite-progress progress::-webkit-progress-bar {
  background: #282828;
  border-radius: 6px;
}
.bot-app-invite-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--app-primary), #6d28d9);
  border-radius: 6px;
}
.bot-app-invite-progress p {
  color: #aaa;
  font-size: 11px;
}
.bot-app-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bot-app-contacts label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}
.bot-app-contacts small {
  display: block;
  color: #aaa;
  font-size: 10px;
}
.bot-app-invite-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bot-app-chat {
  padding: 28px;
}
.bot-app-chat-inner {
  max-width: 700px;
  margin: auto;
}
.bot-app-chat-inner.is-free > :not(.bot-app-turn) {
  display: none;
}
.bot-app-turn {
  margin-top: 28px;
}
.bot-app-chat-inner.is-free > .bot-app-turn:first-child {
  margin-top: 0;
}
.bot-app-turn-reply {
  margin: 0;
  line-height: 1.6;
  min-height: 1.6em;
}
.bot-app-user-message {
  max-width: 85%;
  margin: 0 0 28px auto;
  background: #28282c;
  border-radius: 16px;
  padding: 13px 17px;
  white-space: pre-wrap;
}
.bot-app-agent-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.bot-app-agent-heading > span {
  color: #a2a2a2;
  font-size: 10px;
  margin-left: auto;
}
.bot-app-tool {
  padding: 8px 0;
  color: #aaa;
}
.bot-app-tool summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.bot-app-tool summary > span {
  color: #777;
  width: 16px;
}
.bot-app-tool.is-working summary > span {
  color: var(--app-primary);
}
.bot-app-tool.is-done summary > span {
  color: #68bd8b;
}
.bot-app-tool p {
  border-left: 1px solid #343434;
  padding-left: 16px;
  margin-left: 8px;
  font-size: 10px;
}
.bot-app-result {
  padding-top: 8px;
}
.bot-app-result h4 {
  font-size: 18px;
  margin: 14px 0;
}
.bot-app-result p {
  color: #ccc;
}
.bot-app-result dl {
  margin: 20px 0;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}
.bot-app-result dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 10px;
  border-bottom: 1px solid #292929;
}
.bot-app-result dt {
  color: #ddd;
  font-weight: 500;
}
.bot-app-result dd {
  margin: 0;
  color: #aaa;
}
.bot-app-result pre,
.bot-app-inspector pre {
  background: #1e1e1e;
  color: #9fe5b7;
  border: 1px solid #363636;
  padding: 15px;
  white-space: pre-wrap;
  font-size: 11px;
  border-radius: 7px;
}
.bot-app-result > button {
  margin-top: 12px;
  color: #e0baef;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bot-app-chat-controls {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.bot-app-chat-controls button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  font-size: 11px;
}
.bot-app-chat-controls svg {
  width: 13px;
  height: 13px;
}
.bot-app-inspector {
  width: 34%;
  min-width: 230px;
  border-left: 1px solid var(--app-border);
  background: #111;
  overflow: auto;
}
.bot-app-inspector-tabs {
  display: flex;
  align-items: center;
  padding: 7px;
  border-bottom: 1px solid var(--app-border);
  gap: 3px;
}
.bot-app-inspector-tabs button {
  font-size: 10px;
  border: 0;
  background: none;
  padding: 5px;
}
.bot-app-inspector-tabs button:last-child {
  margin-left: auto;
}
.bot-app-inspector [data-inspector-content] {
  padding: 15px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.bot-app-inspector dl > div {
  padding: 10px 0;
  border-bottom: 1px solid #333;
}
.bot-app-inspector dd {
  margin: 3px 0;
  color: #aaa;
}
.bot-app-inspector button {
  margin-top: 8px;
  max-width: 100%;
}
.bot-app-toast {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 11px 17px;
  background: #302735;
  border: 1px solid #775584;
  border-radius: 9px;
  box-shadow: 0 6px 20px #0008;
  z-index: 5;
  font-size: 11px;
}
.bot-app-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #000b;
  backdrop-filter: blur(3px);
}
.bot-app-dialog {
  position: relative;
  margin: auto;
  width: 440px;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  background: #171717;
  color: #f5f5f5;
  padding: 26px;
  border: 1px solid #353535;
  border-radius: 15px;
}
.bot-app-dialog h3 {
  font-size: 21px;
}
.bot-app-dialog p {
  color: #aaa;
  font-size: 12px;
}
.bot-app-dialog-icon {
  color: var(--app-primary);
  text-align: center;
  margin-bottom: 16px;
}
.bot-app-dialog-icon svg {
  width: 28px;
  height: 28px;
}
.bot-app-dialog-icon + h3 {
  text-align: center;
}
.bot-app-dialog-actions {
  position: sticky;
  bottom: -26px;
  padding: 14px 0;
  background: #171717;
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 25px;
}
.bot-app .bot-app-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.bot-app-check small {
  display: block;
  color: #999;
  font-size: 11px;
}
.bot-app-model-dialog > button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px;
  margin-top: 6px;
}
.bot-app.is-sidebar-hidden {
  grid-template-columns: minmax(0, 1fr);
}
.bot-app.is-sidebar-hidden .bot-app-sidebar {
  display: none;
}
.bot-app.is-sidebar-hidden .bot-app-sidebar-reopen {
  display: block;
}
@media (max-width: 1000px) {
  .bot-app {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .bot-app-brand {
    font-size: 12px;
    padding: 0 9px;
    gap: 5px;
  }
  .bot-app-starters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bot-app-connectors-grid {
    grid-template-columns: 1fr;
  }
  .bot-app-inspector {
    width: 45%;
    min-width: 200px;
  }
}
@media (max-width: 650px) {
  .abot-playground {
    padding-inline: 16px;
  }
  .bot-app {
    grid-template-columns: 1fr;
    height: 740px;
    position: relative;
  }
  .bot-app-sidebar {
    display: none;
  }
  .bot-app-sidebar-reopen {
    display: block;
  }
  .bot-app.is-sidebar-open .bot-app-sidebar {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 225px;
    z-index: 10;
    box-shadow: 18px 0 40px #0008;
  }
  .bot-app-session {
    padding: 24px 16px;
  }
  .bot-app-session-welcome h3 {
    font-size: 25px;
  }
  .bot-app-session-welcome > p {
    margin-bottom: 18px;
  }
  .bot-app-starters > button {
    padding: 12px;
    min-height: 130px;
  }
  .bot-app-starters strong {
    font-size: 11px;
  }
  .bot-app-starters p {
    font-size: 10px;
  }
  .bot-app-starters i {
    width: 26px;
    height: 26px;
  }
  .bot-app-focused {
    padding: 22px 16px;
  }
  .bot-app-routine-templates,
  .bot-app-contacts {
    grid-template-columns: 1fr;
  }
  .bot-app-bots-home {
    padding: 26px 14px;
  }
  .bot-app-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bot-app-template-grid > button {
    padding: 10px;
  }
  .bot-app-template-grid strong {
    font-size: 11px;
  }
  .bot-app-composer {
    padding: 9px;
  }
  .bot-app-composer-input {
    gap: 4px;
  }
  .bot-app-composer-input > button {
    padding: 3px;
  }
  .bot-app-composer-options small {
    display: none;
  }
  .bot-app-composer textarea {
    font-size: 11px;
  }
  .bot-app-chat {
    padding: 20px 14px;
  }
  .bot-app-result dl > div {
    grid-template-columns: 80px 1fr;
    gap: 8px;
  }
  .bot-app-inspector {
    position: absolute;
    inset: 48px 0 0;
    width: 100%;
    z-index: 4;
  }
  .bot-app-page-lead {
    flex-wrap: wrap;
  }
  .bot-app-page-lead p {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bot-app * {
    animation: none !important;
    transition: none !important;
  }
}
/* File chip under a sample result (nested in the cloned result, so `.bot-app-result > button` misses it). */
.bot-app-result button[data-artifact] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* "Opens" arrow on file chips and the artifact list: an icon, centred like the rest. */
.bot-app-open-arrow {
  display: inline-flex;
  align-items: center;
}
.bot-app-open-arrow svg {
  width: 13px;
  height: 13px;
}
