
.bible-dialog
{
   width: min(400px, calc(100vw - 32px));
   max-height: calc(100dvh - 32px);
   padding: 0;
   border: 1px solid #555;
   border-radius: 10px;
   background: #252a2d;
   color: #eee;
   box-shadow: 0 20px 60px #0009;
   overflow: auto;
}

.bible-dialog::backdrop
{
   background: #0009;
   backdrop-filter: blur(3px);
}

.bible-dialog-header
{
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 12px 16px;
   background: #b08320;
   color: white;
   font-size: 16px;
   font-weight: bold;
}

.bible-dialog-close
{
   border: 0;
   background: transparent;
   color: white;
   font-size: 26px;
   cursor: pointer;
}

.bible-dialog-body
{
   padding: 32px 20px;
   text-align: center;
   line-height: 1.5;
   font-size: 16px;
}

.bible-dialog-footer
{
   display: flex;
   gap: 10px;
   padding: 12px;
   background: #343b40;
}

.bible-dialog-button
{
   flex: 1 1 0;
   min-width: 0;
   min-height: 42px;
   border: 0;
   border-radius: 6px;
   background: #495158;
   color: white;
   font-weight: bold;
   cursor: pointer;
}

.bible-dialog-button[data-value="yes"],
.bible-dialog-button[data-value="ok"]
{
   background: #348d49;
}

.bible-dialog-button[data-value="no"]
{
   background: #50575d;
}

.bible-dialog-button[data-value="cancel"]
{
   background: #a83c3c;
}

/* Christadelphian Books ... */
.christadelphian-books {
   display: flex;
   flex-direction: column;
   gap: 8px;
   padding: 12px 4px;
}

.christadelphian-books a {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 14px 16px;
   background: #343a40;
   border: 1px solid #454b51;
   border-radius: 10px;
   color: #eee;
   text-decoration: none;
   transition: background 0.2s, border-color 0.2s;
}

.christadelphian-books a:hover {
   background: #414951;
   border-color: #b18424;
}

.christadelphian-books .book-icon {
   font-size: 20px;
}

.christadelphian-books .book-title {
   flex: 1;
   text-align: left;
   font-size: 15px;
   font-weight: 500;
}

.christadelphian-books .book-arrow {
   font-size: 20px;
   color: #c49a3c;
}

.christadelphian-books a.unavailable {
   opacity: 0.4;
   cursor: not-allowed;
   pointer-events: none;
}

.christadelphian-books a.unavailable .book-arrow {
   font-size: 12px;
   color: #aaa;
}
/* ... Christadelphian Books */

/* Highlight Options ... */
.frequency-analysis-btn, .phrase-frequency-analysis-btn {
   display: block;
   width: 100%;
   margin: 12px 0 4px;
   padding: 11px 14px;
   background: #394148;
   border: 1px solid #596168;
   border-radius: 8px;
   color: #eee;
   font: inherit;
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   transition: background 0.2s, border-color 0.2s;
}

.frequency-analysis-btn:hover, .phrase-frequency-analysis-btn:hover {
   background: #485159;
   border-color: #b18424;
}

.frequency-analysis-btn:active, .phrase-frequency-analysis-btn:active {
   background: #a87c21;
   color: white;
}

.frequency-analysis-btn:focus-visible, .phrase-frequency-analysis-btn:focus-visible {
   outline: 2px solid #d4a63e;
   outline-offset: 2px;
}

.word-frequency-list, .phrase-frequency-list {
   max-height: 60vh;
   overflow-y: auto;
   padding: 8px;
}

.word-frequency-row, .phrase-frequency-row {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 8px 4px;
   border-bottom: 1px solid #383e43;
}

.phrase-frequency-row:first-child {
   position: sticky;
   top: -8px;
   z-index: 2;
   background: #394148;
}
    
.word-frequency-name, .phrase-frequency-name {
   flex: 0 0 100px;
   overflow-wrap: anywhere;
}

.word-frequency-bar, .phrase-frequency-bar {
   flex: 1;
   height: 8px;
   background: #394148;
   border-radius: 4px;
   overflow: hidden;

   flex: 0 0 100px;
}

.word-frequency-bar > div, .phrase-frequency-bar > div {
   height: 100%;
   background: #c49a3c;
   border-radius: 4px;
}

.word-frequency-count, .phrase-frequency-count {
   width: 28px;
   text-align: right;
   font-weight: bold;
   color: #e4bd68;
}

.phrase-search {
   display: flex;
   gap: 8px;
   margin-bottom: 12px;
}

.phrase-search-input {
   flex: 1;
   min-width: 0;
   padding: 10px 12px;
   background: #343b40;
   border: 1px solid #50585e;
   border-radius: 6px;
   color: white;
   font-size: 14px;
}

.phrase-search-input:focus {
   outline: none;
   border-color: #c49a3c;
}

.phrase-search-button {
   padding: 10px 14px;
   background: #b18424;
   border: none;
   border-radius: 6px;
   color: white;
   font-weight: bold;
   cursor: pointer;
}

.phrase-search-button:hover {
   background: #c49a3c;
}

.phrase-search {
   display: flex;
   gap: 8px;
   margin-bottom: 10px;
}

.phrase-search-input {
   flex: 1;
   min-width: 0;
   padding: 9px 10px;
   background: #343b40;
   border: 1px solid #50585e;
   border-radius: 6px;
   color: white;
   font-size: 14px;
}

.phrase-search-input:focus {
   outline: none;
   border-color: #c49a3c;
}

.phrase-search-button {
   padding: 9px 14px;
   background: #b18424;
   border: none;
   border-radius: 6px;
   color: white;
   font-weight: bold;
   cursor: pointer;
}

.phrase-search-result {
   color: #e4bd68;
   font-size: 13px;
   text-align: center;
   margin-bottom: 10px;
}

.phrase-search-result:empty {
   display: none;
}

.word-frequency-row[hidden], .phrase-frequency-row[hidden] {
   display: none !important;
}
/* ... Highlight Options */