.ysb-action-trigger {
  width: 100%;
  height: 2.5rem;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.ysb-action-trigger svg {
  width: 16px;
  height: 16px;
  margin-right: 1rem;
  vertical-align: -.18em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ysb-desktop-action {
  display: none;
}

.ysb-more-share {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem .625rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem;
}

.ysb-more-share > span {
  margin-right: auto;
  color: rgba(255, 255, 255, .72);
}

.ysb-share-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  box-sizing: border-box;
  border-radius: 50%;
  color: #fff;
  transition: opacity .18s ease, transform .18s ease;
}

.ysb-share-link:hover {
  color: #fff;
  opacity: .84;
  transform: translateY(-1px);
}

.ysb-share-link:focus-visible,
.ysb-action-trigger:focus-visible,
.ysb-dialog-close:focus-visible,
.ysb-report-content:focus-visible,
.ysb-report-submit:focus-visible {
  outline: 3px solid rgba(237, 66, 75, .42);
  outline-offset: 2px;
}

.ysb-share-link svg {
  width: .9rem;
  height: .9rem;
}

.ysb-share-x {
  background: #161616;
}

.ysb-share-x svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.ysb-share-facebook {
  background: #1877f2;
}

.ysb-share-facebook svg,
.ysb-share-telegram svg {
  fill: currentColor;
}

.ysb-share-telegram {
  background: #229ed9;
}

.ysb-chapter-share {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.25rem 0 0;
  padding: .8rem 0 .15rem;
  border-top: 1px dashed rgba(51, 55, 61, .22);
}

.ysb-chapter-share-label {
  margin-right: auto;
  color: rgba(51, 55, 61, .68);
  font-size: .75rem;
}

.skin-yellow .ysb-chapter-share {
  border-color: rgba(76, 64, 38, .22);
}

.skin-green .ysb-chapter-share {
  border-color: rgba(37, 74, 37, .22);
}

.skin-blue .ysb-chapter-share {
  border-color: rgba(39, 70, 80, .22);
}

.skin-pink .ysb-chapter-share {
  border-color: rgba(93, 48, 48, .2);
}

.read-night .ysb-chapter-share {
  border-color: rgba(255, 255, 255, .15);
}

.read-night .ysb-chapter-share-label {
  color: rgba(255, 255, 255, .5);
}

.ysb-chapter-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1rem;
  background: rgba(12, 13, 15, .68);
}

.ysb-chapter-modal.is-open {
  display: flex;
}

body.ysb-modal-open {
  overflow: hidden;
}

.ysb-chapter-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(27rem, 100%);
  padding: 1.25rem;
  border: 1px solid rgba(108, 91, 54, .25);
  border-radius: .35rem;
  background: #f3ead2;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
  color: #33373d;
}

.ysb-dialog-close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(51, 55, 61, .08);
  color: #555;
  font-size: 1.5rem;
  line-height: 1.85rem;
  cursor: pointer;
}

.ysb-dialog-close:hover {
  background: rgba(51, 55, 61, .15);
}

.ysb-dialog-title {
  margin: 0 2.25rem 1rem 0;
  color: #33373d;
  font-size: 1.05rem;
  line-height: 1.4;
}

.ysb-qr-dialog {
  width: min(22rem, 100%);
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.ysb-qr-dialog .ysb-dialog-title {
  margin: 0;
  padding: .9rem 3rem .9rem 1.1rem;
  background: #33373d;
  color: #fff;
  font-weight: 400;
  text-align: left;
}

.ysb-qr-dialog .ysb-dialog-close {
  top: .55rem;
  right: .65rem;
  background: transparent;
  color: #fff;
}

.ysb-qr-dialog .ysb-dialog-close:hover {
  background: rgba(255, 255, 255, .12);
}

.ysb-qr-content {
  padding: 1.1rem;
  background: #fff;
}

.ysb-qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 196px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid #e4e4e4;
  border-radius: .25rem;
  background: #fff;
}

.ysb-qr-code img,
.ysb-qr-code canvas,
.ysb-qr-code table {
  display: block;
  max-width: 180px;
  max-height: 180px;
}

.ysb-qr-tip {
  margin: .75rem 0 0;
  color: #666;
  font-size: .75rem;
}

.ysb-report-label {
  display: block;
  margin-bottom: .45rem;
  color: #555;
  font-size: .78rem;
}

.ysb-report-content {
  display: block;
  width: 100%;
  min-height: 7rem;
  padding: .65rem .7rem;
  border: 1px solid rgba(93, 79, 48, .35);
  border-radius: .25rem;
  background: rgba(255, 255, 255, .75);
  color: #33373d;
  font: inherit;
  font-size: .8rem;
  line-height: 1.6;
  resize: vertical;
}

.ysb-report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
}

.ysb-report-status {
  margin: 0;
  color: #666;
  font-size: .7rem;
}

.ysb-report-status.is-error {
  color: #b83038;
}

.ysb-report-submit {
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: .5rem .9rem;
  border: 1px solid #33373d;
  border-radius: .2rem;
  background: #33373d;
  color: #fff;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.ysb-report-submit:hover {
  background: #1d2024;
}

.ysb-report-submit:disabled {
  cursor: wait;
  opacity: .65;
}

@media screen and (min-width: 768px) {
  .ysb-desktop-action {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .ysb-chapter-dialog {
    padding: 1rem;
  }

  .ysb-qr-dialog {
    padding: 0;
  }

  .ysb-report-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ysb-report-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysb-share-link {
    transition: none;
  }
}
