.reader-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding-bottom: .6rem; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.reader-toolbar .reader-breadcrumb { border: 0; padding: 0; margin: 0; min-width: 0; align-items: center; }
.reader-translation { justify-self: center; }
.reader-translation .btn { font-size: .875rem; border: 1px solid #d9d6cf; padding: 7px 14px; white-space: nowrap; }
.reader-translation .dropdown-menu { left: 50%; transform: translateX(-50%); min-width: 18rem; max-width: min(26rem, calc(100vw - 2rem)); max-height: 320px; overflow-y: auto; }
.reader-translation .dropdown-item { white-space: normal; font-size: .9rem; padding: 9px 16px; }
.reader-translation .dropdown-item.active { background: #e6e4df; color: #172338; }
.reader-single-translation { font-size: .875rem; }
.reader-toolbar .reader-share { justify-self: end; padding: 7px 10px; line-height: 1; }
@media (max-width: 767px) {
    .reader-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; }
    .reader-toolbar .reader-breadcrumb { grid-column: 1; grid-row: 1; }
    .reader-toolbar .reader-share { grid-column: 2; grid-row: 1; }
    .reader-translation { grid-column: 1 / -1; grid-row: 2; }
}
.reader-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; gap: 12px; }
.reader-head::after { content: ""; grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #d9d6cf; }
.reader-head > .reader-toolbar { display: contents; }
.reader-head .reader-breadcrumb { grid-column: 1; grid-row: 1; }
.reader-head .reader-translation { grid-column: 2; grid-row: 1; justify-self: center; }
.reader-head .reader-find { grid-column: 3; grid-row: 1; margin: 0 !important; padding: 0; min-width: 0; }
.reader-head .reader-share { grid-column: 4; grid-row: 1; justify-self: end; }
.reader-toolbar .reader-translation > .btn > span:first-child { display: none; }
@media (max-width: 991px) {
    .reader-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 8px; }
    .reader-head::after { grid-row: 3; }
    .reader-head .reader-breadcrumb { grid-column: 1 / 3; }
    .reader-head .reader-share { grid-column: 3; }
    .reader-head .reader-translation { grid-column: 1; grid-row: 2; justify-self: start; }
    .reader-head .reader-translation .dropdown-menu { left: 0; transform: none; }
    .reader-head .reader-find { grid-column: 2 / -1; grid-row: 2; justify-content: stretch !important; }
    .reader-head #babel { width: 100%; max-width: 480px; }
    .reader-head #babel .form-control { width: auto !important; flex: 1 1 0; min-width: 0; }
}
@media (max-width: 767px) {
    .reader-head #babel { max-width: none; }
}
