.chat-mini-tutorial {
  --tutorial-muted: #afbdd7;
  --tutorial-edge: #475779;
  --tutorial-secondary: #222c44;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: clamp(16px, 4vw, 28px);
  overflow: auto;
  border: 1px solid var(--tutorial-edge);
  border-radius: 22px;
  background: linear-gradient(150deg, #1c2843, #131a2c 65%);
  color: #f4f7ff;
  box-shadow: 0 20px 56px rgb(3 8 23 / 42%);
  text-align: left;
}
:root[data-theme="light"] .chat-mini-tutorial {
  --tutorial-muted: #405474;
  --tutorial-edge: #9aafce;
  --tutorial-secondary: #e9effa;
  background: linear-gradient(150deg, #eef3ff, #fff 70%);
  color: #14243e;
}
.chat-mini-tutorial::backdrop { background: rgb(4 9 20 / 62%); }
.chat-mini-tutorial .chat-tutorial-heading { margin: 0 0 12px; }
.chat-mini-tutorial .chat-tutorial-heading small {
  display: block;
  color: var(--tutorial-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.chat-mini-tutorial .chat-tutorial-heading h2 {
  margin: 8px 0 0;
  color: inherit;
  font-size: clamp(1.25rem, 4.8vw, 1.625rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.chat-mini-tutorial > p {
  margin: 0;
  color: var(--tutorial-muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--tutorial-edge);
}
.chat-tutorial-actions button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--tutorial-edge);
  border-radius: 10px;
  background: var(--tutorial-secondary);
  color: inherit;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.chat-tutorial-actions button:first-child {
  margin-inline-end: auto;
  border-color: transparent;
  background: transparent;
  color: var(--tutorial-muted);
}
.chat-tutorial-actions button:last-child {
  border-color: #579ff5;
  background: #165bb6;
  color: white;
}
.chat-tutorial-actions button:focus-visible {
  outline: 2px solid #518dea;
  outline-offset: 2px;
}
.chat-mini-tutorial .chat-gesture-touch { display: none; }
@media (pointer: coarse), (max-width: 720px) {
  .chat-mini-tutorial .chat-gesture-touch { display: block; }
  .chat-mini-tutorial .chat-gesture-desktop { display: none; }
}
