.chapter-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -12px 5% 18px;
}

.chapter-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid rgba(38, 137, 48, .4);
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: #287a30;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.chapter-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chapter-action:hover {
  border-color: #47b751;
  background: #47b751;
  color: #fff;
}

.chapter-action:focus-visible,
.chapter-dialog-close:focus-visible,
.chapter-report-content:focus-visible,
.chapter-report-submit:focus-visible {
  outline: 3px solid rgba(71, 183, 81, .35);
  outline-offset: 2px;
}

.chapter-action-mobile-read,
.readset-report {
  display: none;
}

.chapter-share-wrap {
  position: relative;
}

.chapter-share-menu {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(38, 137, 48, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 4px 18px rgba(18, 70, 24, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.chapter-share-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

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

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

.chapter-share-link:focus-visible {
  outline: 3px solid rgba(71, 183, 81, .35);
  outline-offset: 2px;
}

.chapter-share-link svg {
  width: 17px;
  height: 17px;
}

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

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

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

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

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

.chapter-share-mobile {
  display: none;
}

.chapter-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(12, 35, 16, .58);
}

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

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

.chapter-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid rgba(38, 137, 48, .25);
  border-radius: 8px;
  background: #f8fbf8;
  box-shadow: 0 20px 60px rgba(18, 70, 24, .24);
  color: #444;
}

.chapter-qr-dialog {
  width: min(400px, 100%);
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.chapter-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(71, 183, 81, .1);
  color: #555;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.chapter-dialog-close:hover {
  background: rgba(71, 183, 81, .2);
  color: #287a30;
}

.chapter-dialog-title {
  margin: 0 38px 18px 0;
  color: #287a30;
  font-size: 20px;
  line-height: 1.4;
}

.chapter-qr-dialog .chapter-dialog-title {
  margin: 0;
  padding: 18px 54px 18px 24px;
  background: #47b751;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  text-align: left;
}

.chapter-qr-dialog .chapter-dialog-close {
  top: 13px;
  right: 14px;
  z-index: 1;
  background: transparent;
  color: #fff;
  font-size: 30px;
  font-weight: 200;
}

.chapter-qr-dialog .chapter-dialog-close:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.chapter-qr-content {
  padding: 22px 24px 20px;
  background: #fff;
}

.chapter-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 rgba(71, 183, 81, .2);
  border-radius: 6px;
  background: #fff;
}

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

.chapter-qr-tip {
  margin: 14px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.chapter-report-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

.chapter-report-content {
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 11px 12px;
  border: 1px solid rgba(38, 137, 48, .35);
  border-radius: 5px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.chapter-report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.chapter-report-status {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.chapter-report-status.is-error {
  color: #b53b22;
}

.chapter-report-submit {
  flex: 0 0 auto;
  min-width: 82px;
  padding: 9px 18px;
  border: 1px solid #47b751;
  border-radius: 4px;
  background: #47b751;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.chapter-report-submit:hover {
  background: #379741;
}

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

@media screen and (min-width: 768px) {
  .chapter-actions {
    position: fixed;
    top: 50%;
    left: calc(50% + 23rem);
    z-index: 100;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    transform: translateY(-50%);
  }

  .chapter-action {
    flex-direction: column;
    gap: 7px;
    width: 78px;
    min-height: 78px;
    box-sizing: border-box;
    padding: 10px 6px;
    border-color: rgba(38, 137, 48, .25);
    border-radius: 7px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 12px rgba(18, 70, 24, .13);
  }

  .chapter-action svg {
    width: 22px;
    height: 22px;
  }

  .chapter-action-mobile-read {
    display: inline-flex;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .chapter-actions {
    right: 4px;
    left: auto;
  }

  .chapter-action {
    width: 58px;
    min-height: 66px;
    font-size: 12px;
  }
}

@media screen and (max-width: 767px) {
  .chapter-actions {
    display: none;
  }

  .con_top #readSet {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
  }

  .con_top #readSet .rf {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .con_top #readSet .rf .rt:first-child {
    display: none;
  }

  .con_top #readSet .rt {
    padding-right: 4px;
    padding-left: 4px;
  }

  .readset-report {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin-left: 4px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 3px;
    background: rgba(255, 255, 255, .96);
    color: #287a30;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
  }

  .readset-report:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .55);
    outline-offset: 1px;
  }

  .chapter-share-mobile {
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    width: 90%;
    margin: 14px 5% 0;
    padding: 14px 4px 2px;
    border-top: 1px dashed rgba(38, 137, 48, .25);
  }

  .chapter-share-mobile-label {
    margin-right: auto;
    color: #666;
    font-size: 13px;
  }

  .chapter-share-mobile .chapter-share-link {
    width: 36px;
    height: 36px;
  }

  .chapter-dialog {
    padding: 20px;
  }

  .chapter-dialog-title {
    font-size: 18px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .chapter-action,
  .chapter-share-menu,
  .chapter-share-link {
    transition: none;
  }
}
