/* Diagonal BETA ribbon pinned to the top-left corner of the viewport. */
.beta-ribbon {
  position: fixed;
  top: 28px;
  left: -60px;
  width: 220px;
  transform: rotate(-45deg);
  background: #dc2626;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 6px 0;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  pointer-events: none;
}

/* Widen notyf error toasts so long server error messages don't wrap into
   a narrow column. Default is 310px. */
.notyf__toast {
  max-width: min(720px, 90vw);
}

/* Restore sensible heading / list / code styling inside the help modal
   — Tailwind's preflight strips the browser defaults, so marked.parse()
   output renders as a wall of text otherwise. Same shape as the
   site/docs/#importing rules. */
#help-body h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
#help-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
#help-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
#help-body h1:first-child,
#help-body h2:first-child {
  margin-top: 0;
}
#help-body p {
  margin-bottom: 0.75rem;
}
#help-body em {
  font-style: italic;
}
#help-body strong {
  font-weight: 600;
}
#help-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
#help-body ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
#help-body li + li {
  margin-top: 0.25rem;
}
#help-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--color-base-200);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}
#help-body pre {
  background: var(--color-base-200);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}
#help-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.85em;
  white-space: pre;
}
#help-body a {
  color: var(--color-primary);
  text-decoration: underline;
}
#help-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  font-size: 0.95em;
}
#help-body th,
#help-body td {
  border: 1px solid var(--color-base-300);
  padding: 0.4rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
#help-body thead th {
  background: var(--color-base-200);
  font-weight: 600;
}
#help-body tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-base-200) 50%, transparent);
}
