/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b91c1c;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fafd 0%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  min-height: 90px;
}

.message-markdown-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.message-markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.markdown-toolbar-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
}

button.markdown-toolbar-button:hover:enabled {
  background: #edf2f7;
}

button.markdown-toolbar-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.message-editor-mode-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

button.message-editor-mode-button {
  border-radius: 0;
  padding: 7px 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.2;
}

button.message-editor-mode-button.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.message-markdown-preview-input {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-textarea {
  width: 100%;
  line-height: 1.4;
  height: calc((1.4em * 10) + 20px);
  min-height: calc((1.4em * 10) + 20px);
  max-height: calc((1.4em * 10) + 20px);
  overflow-y: auto;
  overflow-x: hidden;
  resize: none;
}

.message-markdown-placeholder {
  color: #9ca3af;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #fff;
}

button.primary:hover {
  background: var(--accent-strong);
}

button.ghost {
  background: #eef2f7;
  color: var(--text);
}

button.danger {
  background: #f5ecec;
  color: #9b6666;
}

button.danger:hover {
  background: #efe3e3;
  color: #875a5a;
}

button.edit-action {
  background: #e8edf5;
  color: #475569;
}

button.edit-action:hover {
  background: #dde6f1;
}

button.warning-action {
  background: #fef3c7;
  color: #92400e;
}

button.warning-action:hover {
  background: #fde68a;
}

button.icon-danger {
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.reminder-actions {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 6px;
}

.reminder-actions-left {
  flex: 1 1;
  min-width: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.field-label-spacer {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

button.chat-refresh-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

button.chat-refresh-button.is-loading {
  animation: chat-refresh-spin 0.85s linear infinite;
}

@keyframes chat-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #ecfeff;
  color: #155e75;
}

.badge.status-paused {
  background: #fef3c7;
  color: #92400e;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.schedule-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: #334155;
}

.schedule-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

button.schedule-preset-button {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.2;
  background: #eef2f7;
  color: #334155;
}

button.schedule-preset-button:hover {
  background: #e2e8f0;
}

button.schedule-preset-button.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.schedule-advanced-label {
  margin: 0 0 8px;
}

.paused-reason-highlight {
  display: inline;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.22);
  color: #854d0e;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.bot-credentials-list {
  overflow-y: visible;
}

.bot-credentials-list.is-scrollable {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.item.is-paused {
  background: #f8fafc;
  border-color: #d8dee8;
}

.item.is-paused .reminder-item-message {
  filter: grayscale(1) saturate(0.45);
  opacity: 0.7;
}

.item.is-paused .reminder-item-meta .muted {
  color: #7c8797;
}

.item.is-paused .pachca-message-avatar,
.item.is-paused .pachca-message-avatar-fallback {
  filter: grayscale(1) sepia(0.34) saturate(0.62);
}

.reminder-item-head {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
}

.reminder-item-message {
  flex: 1 1;
  min-width: 0;
}

.reminder-item-meta {
  margin-top: 6px;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.reminder-item-meta .muted {
  margin: 0;
}

button.reminder-paused-muted-action {
  filter: grayscale(1) saturate(0.45);
  opacity: 0.7;
}

button.reminder-paused-muted-action:hover {
  opacity: 0.8;
}

.item.reminder-item-highlight-a {
  animation: reminder-item-highlight-fade-a 1.6s ease-out;
}

.item.reminder-item-highlight-b {
  animation: reminder-item-highlight-fade-b 1.6s ease-out;
}

@keyframes reminder-item-highlight-fade-a {
  0% {
    background: rgba(250, 204, 21, 0.16);
  }
  45% {
    background: rgba(250, 204, 21, 0.08);
  }
  100% {
    background: transparent;
  }
}

@keyframes reminder-item-highlight-fade-b {
  0% {
    background: rgba(250, 204, 21, 0.16);
  }
  45% {
    background: rgba(250, 204, 21, 0.08);
  }
  100% {
    background: transparent;
  }
}

.preview {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.preview-chat-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pachca-message {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px 8px 8px 20px;
  border-radius: 2px;
  transition: background-color 0.18s ease;
}

.pachca-message:hover {
  background: #f3f6fb;
}

.pachca-message-avatar-wrap {
  width: 36px;
  min-width: 36px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: 1px;
}

.pachca-message-avatar,
.pachca-message-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.pachca-message-avatar {
  object-fit: cover;
  background: #d1d5db;
}

.pachca-message-avatar.is-emoji-avatar {
  object-fit: contain;
  padding: 1px;
  background: #f8fafc;
}

.pachca-message-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(-45deg, #ff8359, #ffdf40);
}

.pachca-message-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  padding-right: 8px;
}

.pachca-message-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pachca-message-author {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.pachca-message-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 2px 8px 3px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 500;
  color: #526176;
  background: #e9eef4;
}

.pachca-message-time {
  font-size: 14px;
  color: #677489;
}

.pachca-message-markup {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pachca-markup-paragraph {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  color: #111827;
  white-space: break-spaces;
  overflow-wrap: anywhere;
}

.pachca-markup-placeholder {
  color: #94a3b8;
}

.pachca-message-buttons {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pachca-message-button-row {
  display: flex;
  width: 100%;
  gap: 4px;
}

.pachca-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1 1;
  min-height: 32px;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 500;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  cursor: default;
}

.pachca-message-button.is-url {
  background: #fff;
}

.pachca-message-button.is-data {
  background: #fff;
}

.pachca-message-button-label {
  width: 100%;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: center;
}

.reminder-buttons-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.reminder-buttons-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.reminder-buttons-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reminder-buttons-rows {
  margin-top: 10px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.reminder-button-row {
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.reminder-button-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reminder-button-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reminder-button-row-dropzone {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 8px;
  background: #f8fafc;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.reminder-button-row-dropzone.is-over {
  border-color: #3b82f6;
  background: #eff6ff;
}

.reminder-button-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.reminder-button-card {
  position: relative;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.reminder-button-card.is-dragging {
  opacity: 0.75;
}

.reminder-button-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reminder-button-inline-label {
  margin-bottom: 0;
  font-size: 12px;
  color: #64748b;
}

.reminder-button-kind-select {
  width: auto;
  min-width: 92px;
  padding: 6px 10px;
}

.reminder-button-drag-handle {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  cursor: -webkit-grab;
  cursor: grab;
}

.reminder-button-delete {
  margin-left: auto;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
}

.reminder-button-fields {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.reminder-button-text-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
}

.reminder-button-emoji-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
}

.reminder-button-emoji-popover {
  position: absolute;
  z-index: 15;
  top: calc(100% + 6px);
  right: 0;
  width: min(360px, calc(100vw - 56px));
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.reminder-button-emoji-popover em-emoji-picker {
  width: 100%;
  max-width: 100%;
}

.pachca-mention {
  color: #2563eb;
}

.pachca-inline-code {
  display: inline-block;
  max-width: 100%;
  padding: 0 5px;
  border: 1px solid #d7dee8;
  border-radius: 4px;
  background: #eef2f7;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: baseline;
}

.pachca-code-block-shell {
  display: block;
  padding: 0;
}

.pachca-code-block {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  border-radius: 4px;
  border: 1px solid #d8e0ea;
  background: #edf2f7;
  padding: 12px 10px;
  color: #1f2937;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.pachca-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  display: block;
  width: 100%;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.preview-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: #d1d5db;
}

.preview-avatar.preview-avatar-emoji-fit {
  object-fit: contain;
  padding: 1px;
  background: #f8fafc;
}

.preview-avatar.avatar-current-size {
  width: 54px;
  height: 54px;
  min-width: 54px;
}

button.code-box {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  color: #0f172a;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

button.code-box:hover:enabled {
  background: #f1f5f9;
}

button.code-box:focus-visible {
  outline: 2px solid #0ea5a6;
  outline-offset: 2px;
}

button.code-box.is-copied {
  border-color: #0f766e;
  color: #065f46;
  background: #ecfdf5;
}

.code-box-hint {
  margin: 8px 0 0;
  text-align: center;
}

.login-timer {
  margin: 12px 0 0;
  text-align: center;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.login-wrap {
  max-width: 560px;
  margin: 40px auto;
  padding: 0 16px;
}

.crop-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
}

.avatar-mode-switch {
  margin-top: 8px;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.avatar-mode-button {
  border-radius: 0;
  padding: 8px 12px;
  background: #f8fafc;
  color: #475569;
}

.avatar-mode-button.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.avatar-file-layout {
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
}

.avatar-file-main {
  min-width: 0;
}

.avatar-file-library {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.avatar-file-library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.avatar-file-library-grid {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: calc((5 * 44px) + (4 * 8px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.avatar-file-library-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.avatar-file-library-item.is-active {
  border-color: #60a5fa;
  background: #eff6ff;
}

.avatar-file-library-thumb {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 999px;
  object-fit: cover;
  background: #d1d5db;
}

.avatar-file-library-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-size: 12px;
  text-align: left;
}

.avatar-file-pill {
  margin-top: 8px;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.avatar-file-name {
  max-width: min(100%, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-size: 13px;
}

.avatar-emoji-symbol {
  font-size: 18px;
  line-height: 1;
}

.avatar-file-remove {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 0;
  line-height: 20px;
}

.avatar-upload-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.avatar-current-card {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
}

.avatar-current-thumb {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 999px;
  object-fit: cover;
  background: #d1d5db;
}

.avatar-current-thumb.avatar-current-thumb-emoji-fit {
  object-fit: contain;
  padding: 1px;
  background: #f8fafc;
}

.avatar-current-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar-uploaded-name {
  max-width: min(100%, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-size: 13px;
}

.avatar-replace-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1080px) {
  .avatar-file-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.emoji-picker-wrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  width: 100%;
  min-width: 0;
}

.emoji-picker-wrap em-emoji-picker {
  width: 100%;
  max-width: 100%;
}

.status-rule-emoji-value {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  padding: 8px 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
  padding: 16px;
}

.confirm-modal-card {
  width: min(460px, 100%);
  max-height: none;
}

.bot-create-modal-card {
  width: min(680px, 100%);
}

.modal-close-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.bot-public-setting-row {
  align-items: center;
}

.help-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.help-badge-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 40px));
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  z-index: 5;
}

.help-badge.help-badge-bottom .help-badge-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  transform: none;
  width: min(320px, calc(100vw - 56px));
}

.help-badge:hover .help-badge-tooltip,
.help-badge:focus .help-badge-tooltip,
.help-badge:focus-within .help-badge-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 700px) {
  main {
    padding: 14px;
  }

  button.code-box {
    font-size: 36px;
  }
}

