/* Карточка «Нашли ошибку?» под статьёй и плашка при выделении текста */

.md-typeset .yse-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  margin: 2.4em 0 1em;
  padding: 1rem 1.2rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  background: var(--md-code-bg-color);
}
.md-typeset .yse-suggest__text {
  flex: 1 1 18rem;
  min-width: 0;
}
.md-typeset .yse-suggest__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
}
.md-typeset .yse-suggest__hint {
  margin: 0.3em 0 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.72rem;
  line-height: 1.55;
}
.md-typeset .yse-suggest__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}
.md-typeset .yse-suggest__actions .md-button {
  margin: 0;
  font-size: 0.7rem;
  padding: 0.5em 1.1em;
}
.md-typeset .yse-suggest__report {
  font-size: 0.7rem;
}

.yse-bubble {
  position: absolute;
  z-index: 10;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: #1d1830;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--md-text-font-family, sans-serif);
}
.yse-bubble[hidden] {
  display: none;
}
.yse-bubble a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 7px;
  color: #e6e1f5;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.yse-bubble a:hover,
.yse-bubble a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.yse-bubble a.yse-bubble__edit {
  background: var(--md-primary-fg-color);
  color: #fff;
  font-weight: 600;
}
.yse-bubble a.yse-bubble__edit:hover {
  background: var(--md-primary-fg-color--dark);
}
.yse-bubble svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Кнопка «Создать статью» в шапке сайта (ставит editor-entry.js) */
.md-header__button.yse-new {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  color: var(--md-primary-bg-color);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.md-header__button.yse-new:hover,
.md-header__button.yse-new:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.md-header__button.yse-new svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* на узком экране остаётся только плюс */
@media screen and (max-width: 76.1875em) {
  .md-header__button.yse-new .yse-new__label {
    display: none;
  }

  .md-header__button.yse-new {
    padding: 0.35rem;
  }
}
