.workspace-bots-section {
  --workspace-bot-accent: #9ee7ad;
  --workspace-bot-border: rgba(127, 224, 148, 0.18);
}

.workspace-bots-heading {
  align-items: center;
}

.workspace-bots-heading-actions {
  min-width: auto !important;
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
}

.workspace-bots-heading-actions .button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 10px;
}

.workspace-bots-heading-actions .button svg {
  width: 15px;
  height: 15px;
}

.workspace-bot-create {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--workspace-bot-border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 42px minmax(140px, 0.8fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 11px;
  background:
    radial-gradient(circle at 0 0, rgba(113, 219, 138, 0.09), transparent 32%),
    rgba(255, 255, 255, 0.025);
}

.workspace-bot-create-icon,
.workspace-bot-avatar,
.workspace-bot-token-icon {
  display: grid;
  place-items: center;
  color: var(--workspace-bot-accent);
  background: rgba(115, 218, 139, 0.1);
}

.workspace-bot-create-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(127, 224, 148, 0.16);
  border-radius: 13px;
}

.workspace-bot-create-icon svg,
.workspace-bot-avatar svg,
.workspace-bot-token-icon svg {
  width: 21px;
  height: 21px;
}

.workspace-bot-create > label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.workspace-bot-create > label > span {
  color: rgba(247, 241, 223, 0.66);
  font-size: 10px;
  font-weight: 850;
}

.workspace-bot-create input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  background: rgba(5, 9, 6, 0.46);
  font: inherit;
  font-size: 12px;
}

.workspace-bot-create input:focus {
  border-color: rgba(121, 226, 143, 0.48);
  box-shadow: 0 0 0 3px rgba(121, 226, 143, 0.07);
}

.workspace-bot-create > .button {
  min-height: 42px;
  padding-inline: 15px;
}

.workspace-bot-channel-input {
  min-width: 0;
  height: 42px;
  padding-left: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: rgba(247, 241, 223, 0.56);
  background: rgba(5, 9, 6, 0.46);
}

.workspace-bot-channel-input:focus-within {
  border-color: rgba(121, 226, 143, 0.48);
  box-shadow: 0 0 0 3px rgba(121, 226, 143, 0.07);
}

.workspace-bot-channel-input svg {
  width: 16px;
  height: 16px;
}

.workspace-bot-channel-input input {
  height: 40px;
  padding-left: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-bot-channel-input input:focus {
  box-shadow: none;
}

.workspace-bot-list {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.workspace-bot-row {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.workspace-bot-row:hover {
  border-color: var(--workspace-bot-border);
  background: rgba(115, 218, 139, 0.045);
}

.workspace-bot-row.disabled {
  opacity: 0.68;
}

.workspace-bot-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(127, 224, 148, 0.15);
  border-radius: 14px;
}

.workspace-bot-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-bot-name-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-bot-name-line strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-bot-status {
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 900;
}

.workspace-bot-status.active {
  color: #bdf4c9;
  background: rgba(91, 210, 119, 0.11);
}

.workspace-bot-status.disabled {
  color: rgba(247, 241, 223, 0.5);
  background: rgba(255, 255, 255, 0.055);
}

.workspace-bot-copy > button {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(193, 233, 201, 0.78);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.workspace-bot-copy > button:hover {
  color: #caffd4;
}

.workspace-bot-copy > button svg {
  width: 13px;
  height: 13px;
}

.workspace-bot-copy > button span,
.workspace-bot-copy > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-bot-copy > small {
  color: var(--muted);
  font-size: 10px;
}

.workspace-bot-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-bot-row-actions .button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 11px;
}

.workspace-bot-row-actions .button.danger {
  color: #f1a39b;
}

.workspace-bot-confirm {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px solid rgba(213, 168, 50, 0.18);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(213, 168, 50, 0.055);
}

.workspace-bot-confirm.danger {
  border-color: rgba(225, 104, 94, 0.18);
  background: rgba(225, 104, 94, 0.055);
}

.workspace-bot-confirm.delete {
  border-color: rgba(225, 104, 94, 0.28);
  background: linear-gradient(135deg, rgba(225, 104, 94, 0.09), rgba(225, 104, 94, 0.035));
}

.workspace-bot-confirm > span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #e9cd73;
  background: rgba(213, 168, 50, 0.1);
}

.workspace-bot-confirm.danger > span {
  color: #f3a29a;
  background: rgba(225, 104, 94, 0.09);
}

.workspace-bot-confirm > span svg {
  width: 16px;
  height: 16px;
}

.workspace-bot-confirm > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workspace-bot-confirm strong {
  font-size: 11px;
}

.workspace-bot-confirm small {
  color: var(--muted);
  font-size: 9px;
}

.workspace-bot-confirm > div:last-child {
  display: flex;
  gap: 6px;
}

.workspace-bot-confirm .button {
  min-height: 36px;
  padding-inline: 11px;
  font-size: 10px;
}

.workspace-bot-token-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(217, 185, 87, 0.28);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(217, 185, 87, 0.1), transparent 33%),
    rgba(213, 168, 50, 0.04);
}

.workspace-bot-token-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #eed47d;
  background: rgba(213, 168, 50, 0.1);
}

.workspace-bot-token-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workspace-bot-token-copy strong {
  font-size: 13px;
}

.workspace-bot-token-copy small {
  color: var(--muted);
  font-size: 10px;
}

.workspace-bot-token-copy .workspace-bot-api-hint {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.workspace-bot-api-hint b {
  color: #ddecba;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.workspace-bot-token-copy code {
  min-width: 0;
  margin-top: 5px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: #f3e7b9;
  background: rgba(3, 5, 3, 0.5);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.workspace-bot-token-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-bot-token-actions .button {
  min-height: 40px;
}

.workspace-bot-token-actions .button.icon {
  width: 40px;
  min-width: 40px;
}

.workspace-bot-token-copy-button {
  padding-inline: 12px;
}

.workspace-bot-error {
  min-height: 46px;
  padding: 8px 10px 8px 13px;
  border: 1px solid rgba(225, 104, 94, 0.18);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #f0a59d;
  background: rgba(225, 104, 94, 0.06);
  font-size: 11px;
}

.workspace-bot-error svg {
  width: 17px;
  height: 17px;
}

.workspace-bot-error .button {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 10px;
}

.workspace-bot-empty {
  min-height: 150px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.workspace-bot-empty > span {
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--workspace-bot-accent);
  background: rgba(115, 218, 139, 0.08);
}

.workspace-bot-empty svg {
  width: 22px;
  height: 22px;
}

.workspace-bot-empty strong {
  color: rgba(247, 241, 223, 0.84);
  font-size: 13px;
}

.workspace-bot-empty small {
  font-size: 10px;
}

.workspace-bot-skeleton-row {
  pointer-events: none;
}

.workspace-bot-skeleton-copy {
  display: grid;
  gap: 7px;
}

.workspace-bot-skeleton-copy i {
  width: min(190px, 64%);
  height: 10px;
  border-radius: 999px;
}

.workspace-bot-skeleton-copy i:last-child {
  width: min(130px, 43%);
  height: 8px;
}

.workspace-bot-spinner,
.workspace-bot-spinner svg {
  width: 16px;
  height: 16px;
}

.workspace-bot-spinner svg {
  animation: workspaceBotSpin 800ms linear infinite;
}

.workspace-bot-channel-marker {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(136, 226, 155, 0.18);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: #a9edb7;
  background: rgba(105, 211, 130, 0.09);
}

.workspace-bot-channel-marker svg {
  width: 13px;
  height: 13px;
}

.avatar.bot-avatar {
  border: 1px solid rgba(136, 226, 155, 0.2);
  color: #a9edb7;
  background: rgba(105, 211, 130, 0.1);
}

.avatar.bot-avatar svg {
  width: 48%;
  height: 48%;
}

.workspace-bot-message-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.workspace-bot-message-author svg {
  width: 14px;
  height: 14px;
}

.workspace-bot-help-backdrop {
  position: fixed;
  z-index: 180;
  inset: 0;
  padding: clamp(12px, 3vw, 34px);
  display: grid;
  place-items: center;
  background: rgba(1, 4, 2, 0.78);
  backdrop-filter: blur(14px);
}

.workspace-bot-help {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  border: 1px solid rgba(127, 224, 148, 0.27);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(105, 211, 130, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(18, 27, 19, 0.995), rgba(7, 11, 8, 0.995));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.workspace-bot-help-header {
  min-width: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 13px;
  background: rgba(5, 9, 6, 0.48);
}

.workspace-bot-help-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(127, 224, 148, 0.2);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #adf0bb;
  background: rgba(105, 211, 130, 0.11);
}

.workspace-bot-help-icon svg {
  width: 23px;
  height: 23px;
}

.workspace-bot-help-header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workspace-bot-help-header small {
  color: #9ee7ad;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.workspace-bot-help-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 950;
}

.workspace-bot-help-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-bot-help-header > .button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
}

.workspace-bot-help-header > .workspace-bot-help-back {
  width: auto;
  min-width: 88px;
  padding-inline: 11px;
  justify-content: center;
  font-size: 10px;
}

.workspace-bot-help-body {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
}

.workspace-bot-help-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  counter-reset: none;
}

.workspace-bot-help-steps li {
  min-width: 0;
  min-height: 72px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.workspace-bot-help-steps li > b {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #b8f2c4;
  background: rgba(105, 211, 130, 0.1);
  font-size: 11px;
}

.workspace-bot-help-steps span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workspace-bot-help-steps strong,
.workspace-bot-help-card strong {
  font-size: 13px;
}

.workspace-bot-help-steps small,
.workspace-bot-help-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workspace-bot-help-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.workspace-bot-help-card-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.workspace-bot-help-card-title > span,
.workspace-bot-help-rules > div > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #a9edb7;
  background: rgba(105, 211, 130, 0.085);
}

.workspace-bot-help-card-title svg,
.workspace-bot-help-rules svg {
  width: 17px;
  height: 17px;
}

.workspace-bot-help-card-title > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workspace-bot-help-connection dl {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  overflow: hidden;
}

.workspace-bot-help-connection dl > div {
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background: rgba(2, 5, 3, 0.28);
}

.workspace-bot-help-connection dl > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.workspace-bot-help-connection dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.workspace-bot-help-connection dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-bot-help-connection dd b {
  color: #baf3c6;
  font-size: 9px;
  letter-spacing: 0.07em;
}

.workspace-bot-help code {
  color: #deedce;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.workspace-bot-help-connection > p {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: rgba(247, 241, 223, 0.68);
  font-size: 10px;
  line-height: 1.45;
}

.workspace-bot-help-connection > p svg {
  width: 15px;
  height: 15px;
  color: #e6cd76;
}

.workspace-bot-help-dialog {
  display: grid;
  gap: 11px;
  border-color: rgba(105, 211, 130, 0.18);
  background:
    linear-gradient(135deg, rgba(105, 211, 130, 0.065), transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.workspace-bot-help-dialog > ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.workspace-bot-help-dialog > ol li {
  min-width: 0;
  padding: 9px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: rgba(247, 241, 223, 0.75);
  background: rgba(1, 4, 2, 0.34);
  font-size: 9px;
  line-height: 1.45;
}

.workspace-bot-help-dialog > ol li > b {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #b8f2c4;
  background: rgba(105, 211, 130, 0.1);
  font-size: 9px;
}

.workspace-bot-help-dialog-examples {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 8px;
}

.workspace-bot-help-dialog-examples > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.workspace-bot-help-dialog-examples small {
  color: rgba(247, 241, 223, 0.62);
  font-weight: 800;
}

.workspace-bot-help-dialog > p {
  margin: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: rgba(247, 241, 223, 0.64);
  font-size: 9px;
  line-height: 1.45;
}

.workspace-bot-help-dialog > p svg {
  width: 15px;
  height: 15px;
  color: #9ee7ad;
}

.workspace-bot-help-code-grid,
.workspace-bot-help-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-bot-help-code-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.workspace-bot-help pre {
  min-width: 0;
  margin: 0;
  padding: 11px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  color: #e4efd8;
  background: rgba(1, 3, 2, 0.55);
  line-height: 1.55;
  white-space: pre;
}

.workspace-bot-help-copy {
  width: auto;
  min-width: 116px;
  min-height: 38px;
  padding-inline: 11px;
  justify-content: center;
  font-size: 11px;
}

.workspace-bot-help-media {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-style: dashed;
}

.workspace-bot-help-media > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a9edb7;
  background: rgba(105, 211, 130, 0.085);
}

.workspace-bot-help-media > span svg {
  width: 19px;
  height: 19px;
}

.workspace-bot-help-media > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workspace-bot-help-media p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.workspace-bot-help-media em {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(247, 241, 223, 0.52);
  background: rgba(255, 255, 255, 0.05);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.workspace-bot-help-capabilities .allowed {
  border-color: rgba(105, 211, 130, 0.16);
}

.workspace-bot-help-capabilities .restricted {
  border-color: rgba(224, 137, 98, 0.14);
}

.workspace-bot-help-capabilities .restricted .workspace-bot-help-card-title > span {
  color: #e8aa91;
  background: rgba(224, 137, 98, 0.08);
}

.workspace-bot-help-capabilities ul {
  margin: 11px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.workspace-bot-help-capabilities li {
  position: relative;
  padding-left: 16px;
  color: rgba(247, 241, 223, 0.74);
  font-size: 10px;
  line-height: 1.4;
}

.workspace-bot-help-capabilities li::before {
  position: absolute;
  top: 0.54em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #83da96;
  content: "";
}

.workspace-bot-help-capabilities .restricted li::before {
  background: #d9987c;
}

.workspace-bot-help-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workspace-bot-help-rules > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  gap: 4px 9px;
}

.workspace-bot-help-rules > div > span {
  grid-row: 1 / span 2;
}

.workspace-bot-help-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.workspace-bot-help-intro {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(105, 211, 130, 0.17);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(105, 211, 130, 0.075), transparent 62%),
    rgba(255, 255, 255, 0.022);
}

.workspace-bot-help-intro > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #b7f1c3;
  background: rgba(105, 211, 130, 0.1);
}

.workspace-bot-help-intro > span svg {
  width: 20px;
  height: 20px;
}

.workspace-bot-help-intro > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-bot-help-intro strong {
  font-size: 14px;
}

.workspace-bot-help-intro p {
  margin: 0;
  color: rgba(247, 241, 223, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-bot-help-download {
  min-height: 42px;
  padding-inline: 14px;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
}

.workspace-bot-help-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-bot-help-scenarios article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.workspace-bot-help-scenarios article > span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a9edb7;
  background: rgba(105, 211, 130, 0.085);
}

.workspace-bot-help-scenarios article > span svg {
  width: 18px;
  height: 18px;
}

.workspace-bot-help-scenarios article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workspace-bot-help-scenarios strong {
  font-size: 13px;
}

.workspace-bot-help-scenarios p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.workspace-bot-help-scenarios em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #baf3c6;
  background: rgba(105, 211, 130, 0.1);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.workspace-bot-help-quickstart {
  display: grid;
  gap: 12px;
  border-color: rgba(105, 211, 130, 0.2);
  background:
    linear-gradient(135deg, rgba(105, 211, 130, 0.06), transparent 60%),
    rgba(255, 255, 255, 0.022);
}

.workspace-bot-help-quickstart .workspace-bot-help-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-bot-help-token-note,
.workspace-bot-help-success,
.workspace-bot-help-callout {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(230, 205, 118, 0.15);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: rgba(247, 241, 223, 0.72);
  background: rgba(230, 205, 118, 0.035);
}

.workspace-bot-help-success,
.workspace-bot-help-callout {
  border-color: rgba(105, 211, 130, 0.14);
  background: rgba(105, 211, 130, 0.035);
}

.workspace-bot-help-token-note > svg,
.workspace-bot-help-success > svg,
.workspace-bot-help-callout > svg {
  width: 17px;
  height: 17px;
  color: #e6cd76;
}

.workspace-bot-help-success > svg,
.workspace-bot-help-callout > svg {
  color: #9ee7ad;
}

.workspace-bot-help-token-note p,
.workspace-bot-help-success p,
.workspace-bot-help-callout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.workspace-bot-help-example {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  align-content: start;
  background: rgba(1, 4, 2, 0.34);
}

.workspace-bot-help-example > header {
  min-width: 0;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-bot-help-example > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workspace-bot-help-example > header strong {
  font-size: 12px;
}

.workspace-bot-help-example > header small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.workspace-bot-help-example pre {
  border: 0;
  border-radius: 0;
  max-width: 100%;
}

.workspace-bot-help-section {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.023);
}

.workspace-bot-help-section-toggle {
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.workspace-bot-help-section-toggle:hover,
.workspace-bot-help-section-toggle[aria-expanded="true"] {
  background: rgba(105, 211, 130, 0.045);
}

.workspace-bot-help-section-toggle:focus-visible,
.workspace-bot-help-download:focus-visible,
.workspace-bot-help-copy:focus-visible {
  outline: 2px solid rgba(132, 224, 151, 0.8);
  outline-offset: -2px;
}

.workspace-bot-help-section-toggle > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a9edb7;
  background: rgba(105, 211, 130, 0.085);
}

.workspace-bot-help-section-toggle > span svg {
  width: 19px;
  height: 19px;
}

.workspace-bot-help-section-toggle > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workspace-bot-help-section-toggle strong {
  font-size: 14px;
}

.workspace-bot-help-section-toggle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.workspace-bot-help-section-toggle > i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 160ms ease;
}

.workspace-bot-help-section-toggle[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.workspace-bot-help-section-toggle > i svg {
  width: 17px;
  height: 17px;
}

.workspace-bot-help-section-body {
  min-width: 0;
  padding: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: grid;
  gap: 11px;
}

.workspace-bot-help-section-body[hidden] {
  display: none;
}

.workspace-bot-help-flow {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.workspace-bot-help-flow li {
  min-width: 0;
  padding: 10px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: rgba(247, 241, 223, 0.76);
  background: rgba(1, 4, 2, 0.34);
  font-size: 11px;
  line-height: 1.45;
}

.workspace-bot-help-flow li > b {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #b8f2c4;
  background: rgba(105, 211, 130, 0.1);
  font-size: 10px;
}

.workspace-bot-help-upload-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-bot-help-example-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-bot-help-statuses {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.workspace-bot-help-statuses > div {
  min-width: 0;
  padding: 10px;
  border-radius: 11px;
  display: grid;
  align-content: start;
  gap: 5px;
  background: rgba(1, 4, 2, 0.34);
}

.workspace-bot-help-statuses b {
  color: #e6cd76;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.workspace-bot-help-statuses p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

@keyframes workspaceBotSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px), (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .workspace-bots-heading-actions .button span {
    display: none;
  }

  .workspace-bots-heading-actions .button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    touch-action: manipulation;
  }

  .workspace-bot-create {
    padding: 12px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: end;
  }

  .workspace-bot-create-icon {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .workspace-bot-create > label {
    grid-column: 2;
  }

  .workspace-bot-create > .button {
    grid-column: 1 / -1;
    min-height: 46px;
  }

  .workspace-bot-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 10px;
    gap: 9px;
  }

  .workspace-bot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .workspace-bot-row-actions {
    gap: 4px;
  }

  .workspace-bot-row-actions .button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .workspace-bot-confirm {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .workspace-bot-confirm > div:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .workspace-bot-confirm .button {
    min-height: 44px;
  }

  .workspace-bot-token-card {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }

  .workspace-bot-token-icon {
    width: 40px;
    height: 40px;
  }

  .workspace-bot-token-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .workspace-bot-token-actions .button {
    min-height: 44px;
  }

  .workspace-bot-token-actions .button.icon {
    width: 44px;
    min-width: 44px;
  }

  .workspace-bot-help-backdrop {
    inset: var(--mobile-visual-offset-top, 0px) 0 auto;
    width: var(--app-width, 100vw);
    max-width: var(--app-width, 100vw);
    height: var(--mobile-viewport-height, var(--app-height, 100dvh));
    max-height: var(--mobile-viewport-height, var(--app-height, 100dvh));
    padding: 0;
    place-items: stretch;
    background: #020503;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .workspace-bot-help {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-width: 0;
    border-radius: 0;
  }

  .workspace-bot-help-header {
    padding: max(14px, var(--app-safe-top)) max(14px, var(--app-safe-right)) 14px max(14px, var(--app-safe-left));
    grid-template-columns: 42px minmax(0, 1fr) auto 42px;
    gap: 10px;
  }

  .workspace-bot-help-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .workspace-bot-help-header h3 {
    font-size: 17px;
  }

  .workspace-bot-help-header > .workspace-bot-help-back {
    min-width: 42px;
    padding-inline: 0;
  }

  .workspace-bot-help-header > .workspace-bot-help-back span {
    display: none;
  }

  .workspace-bot-help-header p {
    display: block;
    font-size: 11px;
  }

  .workspace-bot-help-body {
    padding: 12px max(12px, var(--app-safe-right)) calc(18px + var(--app-safe-bottom)) max(12px, var(--app-safe-left));
  }

  .workspace-bot-help-steps,
  .workspace-bot-help-code-grid,
  .workspace-bot-help-capabilities,
  .workspace-bot-help-rules,
  .workspace-bot-help-scenarios,
  .workspace-bot-help-quickstart .workspace-bot-help-steps,
  .workspace-bot-help-flow,
  .workspace-bot-help-upload-flow,
  .workspace-bot-help-example-grid,
  .workspace-bot-help-statuses {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-bot-help-dialog > ol,
  .workspace-bot-help-dialog-examples {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-bot-help-steps li {
    min-height: 60px;
  }

  .workspace-bot-help-connection dl > div {
    grid-template-columns: 67px minmax(0, 1fr);
  }

  .workspace-bot-help-connection dd code {
    font-size: 9px;
  }

  .workspace-bot-help-media {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .workspace-bot-help-media em {
    grid-column: 2;
    width: fit-content;
  }

  .workspace-bot-help-intro {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .workspace-bot-help-intro .workspace-bot-help-download {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .workspace-bot-help-example > header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .workspace-bot-help-copy {
    min-height: 44px;
    margin-left: auto;
  }

  .workspace-bot-help-section-toggle {
    min-height: 72px;
  }
}

@media (max-width: 430px) {
  .workspace-bot-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .workspace-bot-avatar {
    width: 40px;
    height: 40px;
  }

  .workspace-bot-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .workspace-bot-row-actions:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-bot-spinner svg {
    animation: none;
  }
}
