.article-tools-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.125rem 0;
  padding: .7rem 0;
  border-block: 1px solid #d4deec;
}
.article-tools-bar button,
.article-tools-single button,
.article-tools button {
  border: 1px solid #b9cce2;
  border-radius: .4rem;
  background: #fff;
  color: #124b83;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: .5rem .75rem;
}
.article-tools-bar button:hover, .article-tools-single button:hover, .article-tools button:hover { background: #eaf3fb; }
.article-reader-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.article-tools-single { display: inline-flex; }
.article-tools-single button { padding: .25rem .65rem; }
.article-tools button:disabled { opacity: .55; cursor: not-allowed; }
.article-tools button:focus-visible, .article-tools input:focus-visible,
.article-tools-bar button:focus-visible, .article-tools-single button:focus-visible {
  outline: 2px solid #1361a8;
  outline-offset: 3px;
}
.article-tools {
  box-sizing: border-box;
  width: min(44rem, calc(100% - 1.5rem));
  max-height: min(43rem, calc(100dvh - 1.5rem));
  margin: auto;
  padding: 0;
  border: 1px solid #c3d3e5;
  border-radius: .75rem;
  background: #fff;
  color: #1a2b41;
  box-shadow: 0 12px 36px #14294338;
}
.article-tools[open] { display: flex; flex-direction: column; }
.article-tools::backdrop { background: #101d2b85; }
.article-tools [hidden] { display: none; }
.article-tools > header,
.article-tools > footer {
  display: flex;
  flex: none;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1rem;
  background: #f6f9fd;
  color: inherit;
}
.article-tools > header { justify-content: space-between; border-bottom: 1px solid #d4deec; }
.article-tools > header h2 { font-size: 1.25rem; margin: 0; color: inherit; }
.article-tools > header button { min-width: 2.5rem; font-size: 1.25rem; line-height: 1; }
.article-tools > footer { border-top: 1px solid #d4deec; flex-wrap: wrap; }
.article-tools [data-count] { margin-inline-end: auto; font-size: .88rem; }
.article-tools button.article-tools-primary { background: #144f8c; border-color: #144f8c; color: white; }
.article-tools button.article-tools-primary:hover:not(:disabled) { background: #0b3a6c; }
.article-tools-body { padding: 0 1rem; overflow: auto; }
.article-tools label { display: flex; align-items: baseline; gap: .65rem; padding: .75rem 0; cursor: pointer; }
.article-tools [data-list] label { border-bottom: 1px solid #e4ebf3; }
.article-tools [data-list] label:last-child { border-bottom: none; }
.article-tools label small { display: block; margin-top: .15rem; color: #4d627b; }
.article-tools .article-tools-select-all { border-bottom: 1px solid #d4deec; font-weight: 650; }
.article-tools input { margin: 0; accent-color: #144f8c; flex: none; }
.article-tools fieldset { margin: .85rem 0; border: 0; padding: 0; }
.article-tools legend { font-weight: 650; }
.article-citation-preview {
  margin: .25rem 0 1rem;
  padding: .75rem;
  color: #152f4b;
  background: #ebf4ff;
  border: 1px solid #acc9e5;
  border-inline-start: .25rem solid #2474b8;
  border-radius: .4rem;
}
.article-citation-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.article-citation-heading h3 { margin: 0; font-size: 1rem; }
.article-tools .article-citation-heading button { padding: .35rem .65rem; font-size: .88rem; }
.article-citation-preview p { margin: .5rem 0 0; }
.article-citation-preview textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: .5rem 0 0;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  font-size: .93rem;
}
.article-tools-error { margin: 0; padding: .55rem 1rem; color: #9b2c25; background: #fff6f4; }
@media (max-width: 420px) {
  .article-tools > footer { column-gap: .4rem; }
}
@media print {
  .article-tools-single, .article-tools { display: none !important; }
}
