.detail-action-tools {
  margin: .7rem 0 .9rem;
}

.detail-action-tools__buttons,
.detail-compare-tray__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.detail-action-button,
.detail-compare-tray button,
.detail-compare-dialog button {
  border: 1px solid rgba(240, 240, 246, .2);
  border-radius: 999px;
  background: rgba(15, 15, 32, .72);
  color: #f0f0f6;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
}

.detail-action-button {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 2.15rem;
  padding: .45rem .78rem;
}

.detail-action-button:hover,
.detail-action-button:focus-visible,
.detail-compare-tray button:hover,
.detail-compare-dialog button:hover {
  border-color: rgba(64, 196, 255, .7);
  color: #fff;
}

.detail-action-button.is-active {
  border-color: rgba(155, 225, 93, .72);
  background: rgba(155, 225, 93, .13);
  color: #cfffaa;
}

.detail-action-tools__status {
  min-height: 1.15rem;
  margin: .28rem 0 0;
  color: rgba(240, 240, 246, .7);
  font-size: .73rem;
  font-weight: 700;
}

.detail-compare-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .55rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(64, 196, 255, .22);
  border-radius: .72rem;
  background: rgba(64, 196, 255, .07);
}

.detail-compare-tray[hidden] {
  display: none;
}

.detail-compare-tray strong,
.detail-compare-tray span {
  display: block;
}

.detail-compare-tray strong {
  color: #f0f0f6;
  font-size: .78rem;
}

.detail-compare-tray span {
  margin-top: .12rem;
  color: rgba(240, 240, 246, .68);
  font-size: .7rem;
}

.detail-compare-tray button,
.detail-compare-dialog button {
  padding: .42rem .68rem;
}

.detail-compare-tray button:disabled {
  cursor: default;
  opacity: .48;
}

.detail-compare-dialog {
  width: min(760px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 240, 246, .16);
  border-radius: 1rem;
  background: #19192d;
  color: #f0f0f6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
}

.detail-compare-dialog::backdrop {
  background: rgba(4, 4, 12, .76);
}

.detail-compare-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(240, 240, 246, .1);
}

.detail-compare-dialog__head span {
  color: #9be15d;
  font-size: .7rem;
  font-weight: 900;
}

.detail-compare-dialog__head h2 {
  margin: .15rem 0 0;
  font-size: 1.08rem;
}

.detail-compare-dialog__body {
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: .8rem 1rem 1rem;
}

.detail-compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.detail-compare-table th,
.detail-compare-table td {
  padding: .68rem .5rem;
  border-bottom: 1px solid rgba(240, 240, 246, .1);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.detail-compare-table th:first-child {
  width: 6.3rem;
  color: rgba(240, 240, 246, .64);
  font-size: .73rem;
}

.detail-compare-table td {
  font-size: .78rem;
  font-weight: 700;
}

.detail-compare-work-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: .55rem;
  align-items: center;
  color: #f0f0f6;
  text-decoration: none;
}

.detail-compare-work-link img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: .35rem;
}

.detail-series-navigation,
.detail-source-panel {
  width: min(900px, 100%);
  margin: 1rem auto;
  padding: .9rem;
  border: 1px solid rgba(240, 240, 246, .1);
  border-radius: .85rem;
  background: rgba(31, 31, 58, .76);
}

.detail-series-navigation__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .7rem;
}

.detail-series-navigation__head span {
  color: #9be15d;
  font-size: .68rem;
  font-weight: 900;
}

.detail-series-navigation__head h2,
.detail-source-panel h2 {
  margin: .14rem 0 0;
  color: #f0f0f6;
  font-size: .96rem;
  font-weight: 900;
}

.detail-series-navigation__head > a {
  color: #40c4ff;
  font-size: .75rem;
  font-weight: 800;
}

.detail-series-navigation__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.detail-series-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
  min-height: 72px;
  padding: .42rem;
  border: 1px solid rgba(240, 240, 246, .09);
  border-radius: .62rem;
  background: rgba(15, 15, 32, .64);
  color: #f0f0f6;
  text-decoration: none;
}

.detail-series-card:hover {
  border-color: rgba(64, 196, 255, .5);
  color: #fff;
}

.detail-series-card img {
  width: 64px;
  height: 60px;
  object-fit: cover;
  border-radius: .4rem;
}

.detail-series-card small,
.detail-series-card strong {
  display: block;
}

.detail-series-card small {
  margin-bottom: .2rem;
  color: #9be15d;
  font-size: .67rem;
}

.detail-series-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.45;
}

.detail-source-panel dl {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .55rem .8rem;
  margin: .75rem 0 0;
}

.detail-source-panel dt,
.detail-source-panel dd {
  margin: 0;
  font-size: .78rem;
  line-height: 1.65;
}

.detail-source-panel dt {
  color: rgba(240, 240, 246, .62);
  font-weight: 850;
}

.detail-source-panel dd {
  color: rgba(240, 240, 246, .84);
}

.detail-source-panel a {
  color: #40c4ff;
}

@media (max-width: 620px) {
  .detail-compare-tray,
  .detail-series-navigation__head {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-compare-tray__buttons button {
    flex: 1 1 auto;
  }

  .detail-series-navigation__grid {
    grid-template-columns: 1fr;
  }

  .detail-source-panel dl {
    grid-template-columns: 1fr;
    gap: .12rem;
  }

  .detail-source-panel dd + dt {
    margin-top: .55rem;
  }

  .detail-compare-table th:first-child {
    width: 4.5rem;
  }

  .detail-compare-table th,
  .detail-compare-table td {
    padding: .58rem .3rem;
  }

  .detail-compare-work-link {
    grid-template-columns: 1fr;
  }
}
