/* BibleWorks 10, ported. Layout and color meanings follow BibleWorks 10; the finish is new. */

@font-face { font-family: "SBL BibLit"; src: url(fonts/SBL_BLit.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "SBL Greek"; src: url(fonts/SBL_grk.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "SBL Hebrew"; src: url(fonts/SBL_Hbrw.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "BWGrkL"; src: url(fonts/bwgrkl.ttf) format("truetype"); }
@font-face { font-family: "BWHebB"; src: url(fonts/bwhebb.ttf) format("truetype"); }
@font-face { font-family: "BWSymbol"; src: url(fonts/bwsymbol.ttf) format("truetype"); }
@font-face { font-family: "BWTransH"; src: url(fonts/bwtransh.ttf) format("truetype"); }

:root {
  color-scheme: light;
  /* chrome: menu, toolbar, pane headers, status bar stay dark in both themes, as in BibleWorks 10 */
  --chrome: oklch(0.235 0 0);
  --chrome-2: oklch(0.285 0 0);
  --chrome-3: oklch(0.34 0 0);
  --chrome-ink: oklch(0.95 0 0);
  --chrome-ink-2: oklch(0.78 0 0);
  --chrome-hover: oklch(0.38 0 0);

  --bg: oklch(1 0 0);
  --panel: oklch(0.975 0.003 250);
  --panel-2: oklch(0.955 0.004 250);
  --line: oklch(0.88 0.004 250);
  --line-strong: oklch(0.78 0.006 250);
  --ink: oklch(0.21 0.005 250);
  --ink-2: oklch(0.42 0.006 250);
  --ink-3: oklch(0.52 0.006 250);

  --ref: oklch(0.46 0.16 262);          /* verse references, BibleWorks blue */
  --ref-strong: oklch(0.38 0.17 262);
  --hit-bg: oklch(0.93 0.12 98);        /* search hits */
  --hit-ink: oklch(0.32 0.14 262);
  --sel-bg: oklch(0.92 0.045 255);      /* current verse / selected row */
  --sel-strong: oklch(0.55 0.15 258);
  --link: oklch(0.47 0.10 195);         /* references inside lexicons and notes */
  --code: oklch(0.50 0.14 28);          /* morphology codes */
  --lemma: oklch(0.33 0.10 150);
  --strongs: oklch(0.50 0.08 300);
  --label: oklch(0.55 0.01 250);        /* version labels */
  --focus: oklch(0.58 0.16 258);
  --warn-bg: oklch(0.95 0.05 75);
  --warn-ink: oklch(0.42 0.10 60);
  --err-ink: oklch(0.50 0.18 25);

  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --text-latin: "SBL BibLit", "Iowan Old Style", Georgia, serif;
  --text-greek: "SBL BibLit", "SBL Greek", "Iowan Old Style", serif;
  --text-hebrew: "SBL Hebrew", "SBL BibLit", "Times New Roman", serif;

  --fs-ui: 13px;
  --fs-small: 11.5px;
  --fs-latin: 16px;
  --fs-greek: 17px;
  --fs-hebrew: 21px;

  --r: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* tool windows stack from 20 upward as they are focused; menus, toasts and tips always sit above them */
  --z-menu: 100000; --z-popover: 100005; --z-dialog: 100008; --z-toast: 100010; --z-tip: 100020;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(0.175 0.004 250);
    --panel: oklch(0.205 0.005 250);
    --panel-2: oklch(0.23 0.006 250);
    --line: oklch(0.31 0.006 250);
    --line-strong: oklch(0.40 0.008 250);
    --ink: oklch(0.93 0.004 250);
    --ink-2: oklch(0.78 0.006 250);
    --ink-3: oklch(0.68 0.006 250);
    --ref: oklch(0.76 0.12 258);
    --ref-strong: oklch(0.84 0.10 258);
    --hit-bg: oklch(0.46 0.10 98);
    --hit-ink: oklch(0.97 0.03 98);
    --sel-bg: oklch(0.31 0.06 255);
    --sel-strong: oklch(0.70 0.13 258);
    --link: oklch(0.78 0.09 195);
    --code: oklch(0.78 0.11 35);
    --lemma: oklch(0.80 0.10 150);
    --strongs: oklch(0.76 0.08 300);
    --label: oklch(0.66 0.01 250);
    --warn-bg: oklch(0.33 0.05 75);
    --warn-ink: oklch(0.88 0.08 80);
    --err-ink: oklch(0.75 0.15 25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.175 0.004 250);
  --panel: oklch(0.205 0.005 250);
  --panel-2: oklch(0.23 0.006 250);
  --line: oklch(0.31 0.006 250);
  --line-strong: oklch(0.40 0.008 250);
  --ink: oklch(0.93 0.004 250);
  --ink-2: oklch(0.78 0.006 250);
  --ink-3: oklch(0.68 0.006 250);
  --ref: oklch(0.76 0.12 258);
  --ref-strong: oklch(0.84 0.10 258);
  --hit-bg: oklch(0.46 0.10 98);
  --hit-ink: oklch(0.97 0.03 98);
  --sel-bg: oklch(0.31 0.06 255);
  --sel-strong: oklch(0.70 0.13 258);
  --link: oklch(0.78 0.09 195);
  --code: oklch(0.78 0.11 35);
  --lemma: oklch(0.80 0.10 150);
  --strongs: oklch(0.76 0.08 300);
  --label: oklch(0.66 0.01 250);
  --warn-bg: oklch(0.33 0.05 75);
  --warn-ink: oklch(0.88 0.08 80);
  --err-ink: oklch(0.75 0.15 25);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: var(--fs-ui)/1.4 var(--ui);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- menu bar */
.menubar {
  background: var(--chrome); color: var(--chrome-ink); display: flex; align-items: center; gap: 2px;
  height: 30px; padding: 0 8px; user-select: none; position: relative; z-index: 10;
}
.menubar .logo { width: 18px; height: 18px; margin-right: 8px; }
.menubar .app-title { margin-left: auto; color: var(--chrome-ink-2); font-size: var(--fs-small); }
.menu-top {
  background: none; border: 0; padding: 4px 9px; border-radius: 4px; color: var(--chrome-ink); cursor: default;
}
.menu-top:hover, .menu-top[aria-expanded="true"] { background: var(--chrome-hover); }
.menu-pop {
  position: fixed; min-width: 260px; max-height: calc(100vh - 40px); overflow: auto; padding: 4px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.22), 0 2px 6px oklch(0 0 0 / 0.12); z-index: var(--z-menu);
  animation: pop-in 140ms var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-3px); } }
.menu-item {
  display: flex; align-items: center; gap: 16px; width: 100%; border: 0; background: none; text-align: left;
  padding: 5px 10px 5px 26px; border-radius: 5px; cursor: default; position: relative; white-space: nowrap;
}
.menu-item:hover, .menu-item:focus-visible, .menu-item.open { background: var(--sel-strong); color: white; outline: none; }
.menu-item .kbd { margin-left: auto; color: var(--ink-3); font-size: var(--fs-small); }
.menu-item:hover .kbd { color: oklch(1 0 0 / 0.8); }
.menu-item .sub { margin-left: auto; opacity: 0.7; }
.menu-item.checked::before { content: "✓"; position: absolute; left: 9px; }
.menu-item.unported { color: var(--ink-3); }
.menu-item.unported:hover { color: white; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }

/* ---------------------------------------------------------------- toolbar */
.toolbar {
  background: var(--chrome-2); display: flex; flex-wrap: nowrap; gap: 1px; padding: 3px 6px; overflow: hidden;
  border-top: 1px solid oklch(1 0 0 / 0.06); user-select: none;
}
.toolbar.wrapped { flex-wrap: wrap; }
.tb {
  width: 31px; height: 33px; padding: 0; border: 0; border-radius: 5px; background: transparent; display: grid;
  place-items: center; cursor: pointer; flex: none;
}
.tb img { display: block; image-rendering: auto; }
.tb.wide { width: 46px; }
.tb:hover { background: var(--chrome-hover); }
.tb.on { background: var(--chrome-3); box-shadow: inset 0 -2px 0 var(--sel-strong); }
.tb.unported { opacity: 0.55; }

/* ---------------------------------------------------------------- panes */
.panes { display: grid; grid-template-columns: var(--w-search, 25%) 5px minmax(0, 1fr) 5px var(--w-analysis, 31%); min-height: 0; }
.panes.no-analysis { grid-template-columns: var(--w-search, 25%) 5px minmax(0, 1fr) 0 0; }
.panes.no-analysis .analysis, .panes.no-analysis .split.right { display: none; }
.split { background: var(--line); cursor: col-resize; }
.split:hover, .split.drag { background: var(--focus); }
.pane { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--bg); }
.pane-head {
  display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; background: var(--chrome-3);
  color: var(--chrome-ink); font-weight: 600; font-size: var(--fs-small); letter-spacing: 0.01em; user-select: none;
}
.pane-head .spacer { flex: 1; }
.pane-head button { background: none; border: 0; color: var(--chrome-ink-2); padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.pane-head button:hover { background: var(--chrome-hover); color: var(--chrome-ink); }

.ctl { height: 26px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); padding: 0 8px; }
.ctl:hover { border-color: var(--ink-3); }
select.ctl { padding-right: 4px; }
.btn {
  height: 26px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--sel-strong); border-color: var(--sel-strong); color: white; }

/* ---------------------------------------------------------------- search window */
.tabs-row { display: flex; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); }
.tabs-row .result-tabs { flex: 1 1 0; min-width: 0; border-bottom: 0; }
.tab-side { display: flex; flex: none; border-left: 1px solid var(--line); }
.tab-btn { width: 26px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tab-btn:hover:not(:disabled) { background: var(--panel-2); color: var(--ink); }
.tab-btn:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; }
.tab-btn:focus-visible, .spin button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
#search-pane.ws-cmd-bottom .tabs-row { order: 1; }
.msg-row { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.msg-row .search-msg { flex: 1 1 0; min-width: 0; }
.spin { display: flex; flex: none; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: var(--bg); }
.spin button { width: 20px; height: 16px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; padding: 0; cursor: pointer; }
.spin button + button { border-left: 1px solid var(--line); }
.spin button:hover { background: var(--panel-2); color: var(--ink); }
.result-tabs { display: flex; flex-wrap: wrap; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.result-tabs button {
  flex: 1 0 auto; min-width: 26px; height: 24px; border: 0; border-right: 1px solid var(--line); background: none;
  color: var(--ink-2); font-size: var(--fs-small); cursor: pointer; font-variant-numeric: tabular-nums;
}
.result-tabs button.active { background: var(--bg); color: var(--ref-strong); font-weight: 600; box-shadow: inset 0 -2px 0 var(--sel-strong); }
.result-tabs button.has::after { content: "*"; }
.search-top { padding: 8px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); background: var(--panel); }
.cmdline {
  width: 100%; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 10px; background: var(--bg);
  font-family: var(--text-latin); font-size: 15px;
}
.cmdline:focus { border-color: var(--focus); outline: 3px solid oklch(from var(--focus) l c h / 0.25); outline-offset: 0; }
.cmdline.greek { font-family: var(--text-greek); font-size: 16px; }
.cmdline.hebrew { font-family: var(--text-hebrew); font-size: 19px; }
.search-row { display: flex; gap: 6px; align-items: center; }
.search-row .ctl { min-width: 0; }
.search-row .grow { flex: 1 1 0; width: 0; }
.search-msg { font-size: var(--fs-small); color: var(--ink-2); min-height: 16px; }
.search-msg.err { color: var(--err-ink); }

.results { overflow: auto; outline: none; contain: strict; position: relative; }
.results-inner { position: relative; }
.res-row {
  position: absolute; left: 0; right: 0; height: var(--res-row, 26px); display: grid; grid-template-columns: 22px 78px minmax(0, 1fr);
  align-items: center; gap: 4px; padding: 0 8px 0 4px; border-bottom: 1px solid oklch(from var(--line) l c h / 0.6);
  cursor: default; white-space: nowrap;
}
.res-row:hover { background: var(--panel); }
.res-row.cur { background: var(--sel-bg); }
.res-row .ref { color: var(--ref); font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.res-row .kwic { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-family: var(--text-latin); font-size: 14px; }
.res-row .kwic.greek { font-family: var(--text-greek); font-size: 15px; }
.res-row .kwic.hebrew { font-family: var(--text-hebrew); font-size: 17px; direction: rtl; text-align: right; }
.res-row input { margin: 0; accent-color: var(--sel-strong); }
.results-empty { padding: 18px 14px; color: var(--ink-2); line-height: 1.55; }
.results-empty code { font-family: var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.results-empty dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; }
.results-empty dt { font-family: var(--mono); color: var(--ref); }
.results-empty dd { margin: 0; }
.search-foot { display: flex; justify-content: space-between; padding: 4px 10px; font-size: var(--fs-small); color: var(--ink-2);
  border-top: 1px solid var(--line); background: var(--panel); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- browse window */
.browse-bar { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.browse-bar .heading { flex: 1 1 200px; min-width: 0; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browse-bar .heading .ref { color: var(--ref); }
.browse { overflow: auto; padding: 10px 18px 40px; scroll-padding-top: 12px; }
.browse .chapter-title { font-family: var(--ui); font-size: 15px; font-weight: 650; color: var(--ink); margin: 14px 0 8px; }
.verse-block { padding: 8px 10px; margin: 0 -10px; border-radius: 6px; scroll-margin-top: 10px; }
.verse-block.cur { background: var(--sel-bg); }
.verse-block .vref { color: var(--ref); font-weight: 650; font-family: var(--ui); font-size: 13.5px; margin-bottom: 2px; }
.vline { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.vline + .vline { border-top: 1px dashed oklch(from var(--line) l c h / 0.7); margin-top: 3px; padding-top: 5px; }
.vline .vlabel {
  flex: none; width: 46px; font: 600 10.5px/1.3 var(--ui); color: var(--label); text-transform: none; letter-spacing: 0.02em;
  cursor: pointer; padding-top: 4px;
}
.vline .vlabel:hover { color: var(--ref); }
.vtext { flex: 1; min-width: 0; font-family: var(--text-latin); font-size: var(--fs-latin); line-height: 1.6; max-width: 80ch; }
.vtext.greek { font-family: var(--text-greek); font-size: var(--fs-greek); }
.vtext.hebrew { font-family: var(--text-hebrew); font-size: var(--fs-hebrew); direction: rtl; text-align: right; line-height: 1.75; max-width: none; }
:is(.vtext, .vtext-inline) .w { border-radius: 3px; cursor: default; }
:is(.vtext, .vtext-inline) .w:hover, :is(.vtext, .vtext-inline) .mw:hover { background: var(--panel-2); box-shadow: 0 0 0 2px var(--panel-2); }
:is(.vtext, .vtext-inline) .w.hit, :is(.vtext, .vtext-inline) .mw.hit { background: var(--hit-bg); color: var(--hit-ink); box-shadow: 0 0 0 1px var(--hit-bg); }
:is(.vtext, .vtext-inline) .w.pinned, :is(.vtext, .vtext-inline) .mw.pinned { outline: 2px solid var(--sel-strong); outline-offset: 1px; }
:is(.vtext, .vtext-inline) .str { color: var(--strongs); font: 10.5px var(--mono); vertical-align: super; margin: 0 1px; }
body:not(.show-strongs) :is(.vtext, .vtext-inline) .str { display: none; }
:is(.vtext, .vtext-inline) sup.xr, :is(.vtext, .vtext-inline) sup.fn { color: var(--link); font: 600 10px var(--ui); margin: 0 1px; cursor: pointer; }
body:not(.show-notes) :is(.vtext, .vtext-inline) sup.xr, body:not(.show-notes) :is(.vtext, .vtext-inline) sup.fn { display: none; }
:is(.vtext, .vtext-inline) .it { font-style: italic; }
:is(.vtext, .vtext-inline) .sc { font-variant: small-caps; }
:is(.vtext, .vtext-inline) .lem { color: var(--lemma); }
:is(.vtext, .vtext-inline) .mc { color: var(--code); font: 11.5px var(--mono); margin-left: 1px; }
:is(.vtext, .vtext-inline) .mj { color: var(--ink-3); }
.vnotes { margin: 4px 0 0 54px; font: 13px/1.55 var(--ui); color: var(--ink-2); max-width: 80ch; }
body:not(.show-notes) .vnotes { display: none; }
.vnotes .note + .note { margin-top: 4px; }
.vnotes a.ref, .vnotes .ref { color: var(--link); cursor: pointer; text-decoration: none; }
.vnotes a.ref:hover { text-decoration: underline; }
.bwgrk { font-family: "BWGrkL"; }
.bwheb { font-family: "BWHebB"; }
.bwsym { font-family: "BWSymbol"; }
.browse-mode .verse-flow { font-family: var(--text-latin); font-size: var(--fs-latin); line-height: 1.75; max-width: 75ch; }
.browse-mode .verse-flow.greek { font-family: var(--text-greek); font-size: var(--fs-greek); }
.browse-mode .verse-flow.hebrew { font-family: var(--text-hebrew); font-size: var(--fs-hebrew); direction: rtl; max-width: none; }
.browse-mode .vn { color: var(--ref); font: 600 10.5px var(--ui); vertical-align: super; margin: 0 3px 0 6px; cursor: pointer; }
.browse-mode .vspan.cur { background: var(--sel-bg); border-radius: 3px; }

/* ---------------------------------------------------------------- analysis window */
.atabs { display: flex; flex-wrap: wrap; background: var(--panel); border-bottom: 1px solid var(--line); padding: 3px 4px 0; gap: 2px; }
.atabs button {
  border: 1px solid transparent; border-bottom: 0; background: none; padding: 3px 8px; border-radius: 5px 5px 0 0;
  color: var(--ink-2); font-size: var(--fs-small); cursor: pointer;
}
.atabs button:hover { color: var(--ink); background: var(--panel-2); }
.atabs button.active { background: var(--bg); border-color: var(--line); color: var(--ink); font-weight: 600; margin-bottom: -1px; }
.atabs button.unported { color: var(--ink-3); }
.analysis-body { overflow: auto; padding: 12px 14px 40px; }
.an-src { color: var(--ink-3); font-size: var(--fs-small); margin-bottom: 8px; }
.an-word { font-family: var(--text-greek); font-size: 22px; font-weight: 600; }
.an-word.hebrew { font-family: var(--text-hebrew); font-size: 26px; direction: rtl; }
.an-parse { margin: 4px 0 12px; line-height: 1.5; }
.an-parse .code { font-family: var(--mono); color: var(--code); }
.an-parse .lemma { font-family: var(--text-greek); color: var(--lemma); font-weight: 600; }
.an-parse .lemma.hebrew { font-family: var(--text-hebrew); font-size: 18px; }
.an-section { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.an-section h3 { font-size: var(--fs-small); color: var(--ink-2); margin: 0 0 6px; font-weight: 650; }
.an-lex { font-family: var(--text-latin); font-size: 15px; line-height: 1.6; }
.an-lex .ref, .an-lex a { color: var(--link); cursor: pointer; text-decoration: none; }
.an-empty { color: var(--ink-2); line-height: 1.6; }
.an-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.an-table th, .an-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.an-table th { color: var(--ink-2); font-weight: 600; font-size: var(--fs-small); }
.an-table td.num { text-align: right; }
.bar { height: 8px; background: var(--sel-strong); border-radius: 2px; }
.notyet {
  background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 12px 14px; line-height: 1.55;
}
.notyet code { font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- status bar */
.statusbar {
  background: var(--chrome); color: var(--chrome-ink-2); display: flex; gap: 2px; align-items: center; height: 24px;
  padding: 0 8px; font-size: var(--fs-small); user-select: none;
}
.statusbar .sb-text { margin-right: auto; padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.statusbar button {
  background: none; border: 0; color: var(--chrome-ink-2); padding: 1px 7px; border-radius: 4px; cursor: pointer; font-size: var(--fs-small);
}
.statusbar button:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.statusbar button.on { color: oklch(0.86 0.12 95); }
.statusbar .sb-ver { color: var(--chrome-ink); font-weight: 600; }
/* the areas in the order of the help (bwh12): message, search version, Limits, Strong's, Browse, Analysis, Verse / Chapter Notes and their lamps,
   TrNotes, Accents, Vowels, Qere, Kethib, the keyboard layout; what the program adds besides follows */
.statusbar > * { order: 30; }
.statusbar > .sb-text { order: 0; }
.statusbar > .sb-ver { order: 1; }
.statusbar > [data-key="105"] { order: 2; }
.statusbar > [data-key="toggle-strongs"] { order: 3; }
.statusbar > [data-key="106"] { order: 4; }
.statusbar > [data-key="toggle-analysis"] { order: 5; }
.statusbar > [data-key="notes-verse-mode"] { order: 6; }
.statusbar > [data-key="notes-chapter-mode"] { order: 7; }
.statusbar > #ws-sb-notes { order: 8; }
.statusbar > [data-key="toggle-notes"] { order: 9; }
.statusbar > [data-key="toggle-accents"] { order: 10; }
.statusbar > [data-key="toggle-vowels"] { order: 11; }
.statusbar > [data-key="toggle-qere"] { order: 12; }
.statusbar > [data-key="toggle-kethib"] { order: 13; }
.statusbar > #ws-sb-kb { order: 14; }

/* ---------------------------------------------------------------- popovers, dialogs, toasts */
.tooltip {
  position: fixed; z-index: var(--z-tip); max-width: 420px; padding: 8px 10px; border-radius: 8px; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px oklch(0 0 0 / 0.18);
  font-size: 13px; line-height: 1.5;
}
dialog.bw {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0; background: var(--bg); color: var(--ink);
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.3); max-width: min(920px, 94vw); max-height: 88vh; width: 640px;
}
dialog.bw::backdrop { background: oklch(0 0 0 / 0.35); }
dialog.bw header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 650; }
dialog.bw header button { margin-left: auto; }
dialog.bw .dlg-body { padding: 14px 16px; overflow: auto; max-height: calc(88vh - 110px); }
dialog.bw footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; }
.ver-grid label { display: flex; gap: 6px; align-items: baseline; padding: 2px 4px; border-radius: 4px; }
.ver-grid label:hover { background: var(--panel); }
.ver-grid .vid { font-weight: 650; min-width: 54px; color: var(--ref); }
.ver-grid .vname { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-group h4 { margin: 12px 0 4px; font-size: var(--fs-small); color: var(--ink-2); }
.toast {
  position: fixed; right: 16px; bottom: 34px; z-index: var(--z-toast); max-width: 420px; padding: 10px 14px; border-radius: 10px;
  background: var(--chrome); color: var(--chrome-ink); box-shadow: 0 12px 32px oklch(0 0 0 / 0.3); line-height: 1.5;
  animation: toast-in 200ms var(--ease);
}
.toast small { display: block; color: var(--chrome-ink-2); margin-top: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

.skeleton { background: linear-gradient(90deg, var(--panel) 0, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; border-radius: 4px; height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------------------------------------------------------------- floating tool windows */
.toolwin {
  position: fixed; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 18px 48px oklch(0 0 0 / 0.28);
  overflow: visible; min-width: 280px; min-height: 160px; animation: pop-in 160ms var(--ease);
}
.toolwin-head {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; background: var(--chrome-3);
  color: var(--chrome-ink); font-weight: 600; font-size: var(--fs-small); cursor: move; user-select: none; touch-action: none;
  border-radius: 9px 9px 0 0;
}
.toolwin-close { margin-left: auto; background: none; border: 0; color: var(--chrome-ink-2); width: 26px; height: 24px; border-radius: 5px; cursor: pointer; }
.toolwin-close:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.toolwin-body { overflow: auto; min-height: 0; border-radius: 0 0 9px 9px; }
/* Maximize / restore button (js/toolwin.js) */
.toolwin-maxbtn { margin-left: auto; display: grid; place-items: center; background: none; border: 0; color: var(--chrome-ink-2); width: 26px; height: 24px; border-radius: 5px; cursor: pointer; padding: 0; }
.toolwin-maxbtn:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.toolwin-maxbtn + .toolwin-close { margin-left: 0; }
/* Resizing: every edge and corner of a window is a handle that reaches 6 px outside it; a window that fills the workspace has none */
.toolwin-rz { position: absolute; z-index: 5; touch-action: none; }
.rz-n, .rz-s { left: 12px; right: 12px; height: 9px; cursor: ns-resize; }
.rz-e, .rz-w { top: 12px; bottom: 12px; width: 9px; cursor: ew-resize; }
.rz-n { top: -7px; } .rz-s { bottom: -7px; } .rz-e { right: -7px; } .rz-w { left: -7px; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 16px; height: 16px; }
.rz-ne { top: -7px; right: -7px; cursor: nesw-resize; } .rz-nw { top: -7px; left: -7px; cursor: nwse-resize; }
.rz-se { bottom: -7px; right: -7px; cursor: nwse-resize; } .rz-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
/* the one visible grip: two short diagonal lines in the bottom right corner */
.rz-se::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 9px; height: 9px; opacity: 0.55; pointer-events: none;
  background: linear-gradient(135deg, transparent 0 46%, var(--ink-3) 46% 56%, transparent 56% 72%, var(--ink-3) 72% 82%, transparent 82%); }
.rz-se:hover::after { opacity: 1; }
.toolwin-max { border-radius: 0; animation: none; }
.toolwin-max .toolwin-head { border-radius: 0; cursor: default; }
.toolwin-max .toolwin-body { border-radius: 0; }
.toolwin-max .toolwin-rz { display: none; }
/* while a window moves or resizes, a transparent sheet over the page keeps the pages inside windows (iframes) from taking the pointer */
.toolwin-shield { position: fixed; inset: 0; z-index: 99999; background: transparent; touch-action: none; }
body.bw-touch .rz-se { width: 34px; height: 34px; bottom: -6px; right: -6px; }
body.bw-touch .rz-se::after { right: 12px; bottom: 12px; width: 14px; height: 14px; opacity: 0.7; }
body.bw-touch .rz-ne, body.bw-touch .rz-nw, body.bw-touch .rz-sw { width: 26px; height: 26px; }
body.bw-touch .rz-n, body.bw-touch .rz-s { height: 14px; } body.bw-touch .rz-e, body.bw-touch .rz-w { width: 14px; }
body.bw-touch .toolwin-maxbtn { width: 34px; height: 28px; }
body.bw-phone .toolwin-rz, body.bw-phone .toolwin-maxbtn { display: none; }

/* Hebrew kethiv {..} and qere [..] (WTT, WVT, UWTT, Targums) */
:is(.vtext, .vtext-inline) .ketiv { color: var(--ink-3); }
:is(.vtext, .vtext-inline) .ketiv::before { content: "("; } .vtext .ketiv::after { content: ")"; }
:is(.vtext, .vtext-inline) .qere::before { content: "["; } .vtext .qere::after { content: "]"; }

/* Qumran editorial sigla (QST/QSM; tools/bwtext.py QUMRAN_SIGLA): editors' marks recede, the scroll's letters stay ink */
.dss { color: var(--ink-3); font-weight: 400; }
.dss-letter { color: var(--ink-2); }
.dss-hole { letter-spacing: 0.05em; }
.dss-space { display: inline-block; min-width: 0.5em; border-bottom: 1px dotted var(--ink-3); }
.dss-vacat, .dss-unknown { font: italic var(--fs-small) var(--ui); unicode-bidi: isolate; direction: ltr; margin: 0 0.25em; }
.dss-unknown { text-decoration: underline dotted; }

.vline .vlabel .vmapped { display: block; font-weight: 500; color: var(--ink-3); font-size: 10px; }

.aw-options { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; color: var(--ink-2); }
.an-table tr.clickable { cursor: pointer; } .an-table tr.clickable:hover td { background: var(--panel); }
.an-table td.code { font-family: var(--mono); color: var(--code); font-size: 12px; }

/* interlinear morphology codes under the words (toolbar toggle) */
.vline.interlinear .vtext .w[data-il] { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; line-height: 1.25; }
.vline.interlinear .vtext .w[data-il]::after { content: attr(data-il); font: 10.5px/1.3 var(--mono); color: var(--code); direction: ltr; margin-top: 1px; }
.vline.interlinear .vtext { line-height: 2.1; }


/* paragraph markers (toggle-para): RSV paragraph starts, /api/text `para` */
.para-mark { display: none; color: var(--ink-3); font-weight: 400; }
body.show-para .para-mark { display: inline; }

/* ---------------------------------------------------------------- core dialogs (js/dialogs.js, js/solm.js) */
dialog.bwd { width: 480px; }
.bwd-msg p { margin: 0 0 8px; }
.bwd-cledit { width: 100%; font-size: 17px; margin-bottom: 10px; }
.bwd-cledit.greek { font-family: var(--text-greek); }
.bwd-cledit.hebrew { font-family: var(--text-hebrew); font-size: 20px; }
.bwd-check { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.bwd-hint { margin: 0 0 8px; color: var(--ink-2); }
.bwd-row { display: flex; align-items: center; gap: 8px; }
.bwd-num { width: 90px; }
dialog.bwd-wait { width: 380px; }
dialog.bwd-wait-status { width: 420px; }
.bwd-wait-text { margin-bottom: 8px; min-height: 1.4em; }
.bwd-progress { width: 100%; height: 10px; accent-color: var(--sel-strong); }
.bwd-meter { width: 100%; height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; }
.bwd-meter span { display: block; width: 0; height: 100%; background: var(--sel-strong); transition: width 120ms var(--ease); }
.bwd-status-line { text-align: center; padding: 3px 0; min-height: 1.6em; }
.bwd-meter-row { display: flex; align-items: center; gap: 12px; }
.bwd-grow { flex: 1; }
.bwd-usermsg { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.bwd-usermsg-text { padding: 12px 14px; overflow: auto; white-space: pre-wrap; }
.bwd-usermsg footer { display: flex; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); }
/* About OpenBible */
.bwd-about { display: block; }
.bwd-about-text h2 { margin: 0 0 6px; font-size: 20px; }
.bwd-about-text p { margin: 3px 0; }
.bwd-about-note { margin-top: 14px !important; color: var(--ink-2); line-height: 1.45; }
/* Search Limit Parameters (positions come from the program's own dialog resource) */
dialog.bwd-limdlg { width: auto; max-width: 96vw; }
.bwd-limwrap { overflow: auto; }
.bwd-limframe { position: relative; margin: 0 auto; }
.bwd-limgroup { position: absolute; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; }
.bwd-limgroup legend { margin-left: 8px; padding: 0 4px; font-size: var(--fs-small); color: var(--ink-2); font-weight: 600; }
.bwd-limbook { position: absolute; display: flex; align-items: center; gap: 3px; font-size: 12px; white-space: nowrap; }
.bwd-limbook input { margin: 0; }
.bwd-limbook.absent { color: var(--ink-3); opacity: 0.6; }
.bwd-limrange { position: absolute; display: flex; gap: 4px; }
.bwd-limrange .bwd-range { flex: 1; min-width: 0; }
.bwd-limactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bwd-limlist { width: 100%; font: 12.5px/1.5 var(--mono); }
/* Browse Box, Popup Command Line */
.bwd-browsebox { display: flex; gap: 10px; padding: 10px; height: 100%; }
.bwd-bbcol { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.bwd-list { width: 100%; flex: 1; min-height: 0; height: auto; }
.bwd-spin { display: flex; gap: 4px; justify-content: center; }
.bwd-spin .btn { padding: 0 8px; height: 22px; }
.bwd-spin.h { display: inline-flex; }
.bwd-popcl { display: flex; align-items: center; gap: 6px; padding: 10px; }
.bwd-popcl-input { flex: 1; min-width: 0; }
.bwd-popcl-ver { min-width: 54px; font-weight: 650; }
.bwd-popcl-input.greek { font-family: var(--text-greek); }
.bwd-popcl-input.hebrew { font-family: var(--text-hebrew); }
/* version tree */
.bwd-tree { max-height: 46vh; min-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.bwd-tree-lang { display: flex; align-items: center; gap: 6px; padding: 3px 4px; font-weight: 650; }
.bwd-tree-tog { background: none; border: 0; width: 20px; cursor: pointer; color: var(--ink-2); }
.bwd-tree-n { margin-left: auto; font-weight: 400; color: var(--ink-3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.bwd-tree-kids { padding-left: 30px; }
.bwd-tree-ver { display: flex; gap: 6px; align-items: baseline; padding: 2px 4px; border-radius: 4px; }
.bwd-tree-ver:hover { background: var(--panel); }
.bwd-tree-ver .vid { font-weight: 650; min-width: 56px; color: var(--ref); }
.bwd-tree-ver .vname { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bwd-choose-opts { display: flex; gap: 18px; flex-wrap: wrap; }
/* Far East input mode box on the Command Line (Insert key; help bwh17b) and the Hebrew special-code mode */
.search-top { position: relative; }
.ime-box { position: absolute; right: 42px; top: 7px; width: 10px; height: 10px; border-radius: 2px; animation: ime-blink 1s steps(2, jump-none) infinite; pointer-events: none; }
.ime-box[data-color="green"] { background: oklch(0.65 0.17 150); }
.ime-box[data-color="red"] { background: oklch(0.6 0.2 25); }
.ime-box[data-color="yellow"] { background: oklch(0.82 0.15 95); }
@keyframes ime-blink { 50% { opacity: 0.25; } }
.cmdline.code-mode { outline: 2px solid var(--code); outline-offset: -2px; }
.cmdline[lang="zh"], .cmdline[lang="zh-Hant"], .cmdline[lang="zh-Hans"], .cmdline[lang="ja"], .cmdline[lang="ko"] { font-family: "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", var(--ui); }
.vtext[dir="rtl"]:not(.hebrew) { font-family: "Geeza Pro", "Noto Naskh Arabic", "Arial", var(--text-latin); font-size: 1.15em; line-height: 1.9; }
/* SOLM tab (js/solm.js) and LXX variants */
.solm-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 8px; }
.solm-tab { border: 1px solid var(--line-strong); background: var(--bg); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.solm-tab.on { background: var(--sel-strong); border-color: var(--sel-strong); color: white; }
.solm-tab.none { opacity: 0.55; }
.solm-bar { display: flex; justify-content: space-between; align-items: center; margin: 4px 0; color: var(--ink-2); }
.solm-frame { border: 1px solid var(--line); border-radius: 6px; }
.solm-h { font-size: var(--fs-ui); margin: 14px 0 4px; color: var(--ink-2); }
.solm-note { margin-top: 14px; font-size: var(--fs-small); }
.lxx-variants { margin: 2px 0 6px 72px; color: var(--ink-2); font-size: var(--fs-small); }
.lxx-variants summary { cursor: pointer; }
.lxx-var { cursor: pointer; color: var(--link); font-size: 0.72em; user-select: none; }
.lxx-var::after { content: attr(data-mark); }
.lxx-var:hover, .lxx-var:focus-visible { text-decoration: underline; }
/* Options flags: BHT display switches, Command Line range, plus between WTT morphemes */
body.bht-hide-acc .bht-acc, body.bht-hide-meth .bht-meth, body.bht-hide-shewa .bht-shewa { display: none; }
.in-range { box-shadow: inset 3px 0 0 var(--sel-strong); }
:is(.vtext, .vtext-inline) .w i.plus { font-style: normal; color: var(--ink-3); font-size: 0.8em; padding: 0 1px; }

/* Command Line Versions Button: the six indicator boxes turn yellow when a feature is on (help bwh09) */
.versions-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; white-space: nowrap; }
.vind { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 1px; }
.vind i { width: 6px; height: 6px; background: oklch(0.62 0.15 150); border-radius: 1px; }
.vind i.on { background: oklch(0.84 0.16 95); }

/* Search Window verse list: "Show Entire Verse Wrapped" (js/search.js) */
.results-inner.wrapped .res-row { position: relative; height: auto; min-height: 26px; align-items: start; padding-top: 3px; padding-bottom: 3px; }
.results-inner.wrapped .kwic { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }

/* Window title bars hide and show their controls (help bwh09: click the title bar; js/main.js initPaneHeads) */
.pane-head > span:first-child { cursor: pointer; }
.pane.controls-hidden .pane-controls, #browse-pane.controls-hidden .browse-bar, #analysis-pane.controls-hidden .atabs { display: none; }
.pane-head .collapse { margin-right: 6px; color: var(--chrome-ink-2); }

/* Scripture Reference Popups of the Word Analysis tab (click modes): a movable window per reference with a close button */
.refpop { position: fixed; z-index: 70; width: min(440px, calc(100vw - 16px)); max-height: 46vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28); }
.refpop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; background: var(--chrome-2); color: var(--chrome-ink); border-radius: 5px 5px 0 0; font-weight: 600; cursor: move; touch-action: none; user-select: none; }
.refpop-x { background: transparent; border: 0; color: inherit; font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 4px; cursor: pointer; }
.refpop-x:hover { background: var(--chrome-hover); }
.refpop-x:focus-visible { outline: 2px solid var(--ref); outline-offset: 1px; }
.refpop-body { overflow: auto; padding: 6px 10px 8px; }
.refpop-body .vline { display: flex; gap: 8px; margin: 3px 0; }
.refpop-body .vlabel { flex: none; min-width: 3.2em; color: var(--ink-3); font-size: 12px; padding-top: 3px; }

/* Words and Context tabs (js/wordtabs.js): three word lists, each with a title bar that turns green while the Full Wordlist and the search results
   wordlist are linked; only the rows in view are in the document, every row is 26px high */
:root { --wt-linked-bg: oklch(0.90 0.09 150); --wt-linked-ink: oklch(0.30 0.10 150); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wt-linked-bg: oklch(0.34 0.08 150); --wt-linked-ink: oklch(0.92 0.08 150); } }
:root[data-theme="dark"] { --wt-linked-bg: oklch(0.34 0.08 150); --wt-linked-ink: oklch(0.92 0.08 150); }
#analysis-body.wt-fill { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.wt-lists { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wt-list { flex: 1 1 0; min-height: 96px; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.wt-list:first-child { border-top: 0; }
.wt-head { display: flex; align-items: baseline; gap: 8px; padding: 4px 10px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; }
.wt-head.linked { background: var(--wt-linked-bg); color: var(--wt-linked-ink); }
.wt-kind { color: var(--ink-3); flex: none; }
.wt-head.linked .wt-kind { color: inherit; }
.wt-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 650; }
.wt-meta { margin-left: auto; flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wt-head.linked .wt-meta { color: inherit; }
.wt-scroll { flex: 1; min-height: 0; overflow: auto; }
.wt-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.wt-table { table-layout: fixed; }
.wt-table td { padding: 0 6px; height: 26px; line-height: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.wt-table tr.wt-pad td { padding: 0; border: 0; height: auto; }
.wt-table td.vtext { direction: ltr; text-align: left; max-width: none; flex: none; font-size: 16px; line-height: 25px; }
.wt-table td.vtext.greek { font-size: 16px; }
.wt-table td.vtext.hebrew { font-size: 17px; }
.wt-table td.num { color: var(--ink-2); }
.wt-table tr.sel td { background: var(--sel-bg); }
.wt-table tr.cur td:first-child { box-shadow: inset 2px 0 0 var(--sel-strong); }
.wt-msg { padding: 10px 12px; }

/* ---------------------------------------------------------------- Analysis Window, round 5 (awbrowse.js, awverse.js, analysis.js, workspace/anatabs.js) */
/* a tab that fills the whole body and scrolls inside (the Browse tab, the Verse tabs): the body itself does not scroll */
.analysis-body.aw-fill { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.analysis-body.aw-fill > .awb, .analysis-body.aw-fill > .awv { flex: 1; min-height: 0; }
.aw-hint { color: var(--ink-3); font-size: var(--fs-small); }

/* Browse tab: header, text, Information Window */
.awb { display: flex; flex-direction: column; min-width: 0; }
.awb-head { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
.awb-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.awb-row[hidden], .awb-btn[hidden], .awb-info[hidden] { display: none; }
.awb-btn { height: 24px; padding: 0 8px; }
.awb-btn.on { background: var(--sel-bg); border-color: var(--sel-strong); }
.awb-ref { flex: 1; min-width: 0; text-align: center; color: var(--ref); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awb-outline { flex: 1; min-width: 0; }
.awb-boxes .ctl { min-width: 0; }
.awb-ver { flex: 0 0 72px; } .awb-book { flex: 1 1 auto; } .awb-ch, .awb-vs { flex: 0 0 56px; }
.awb-text { flex: 1; min-height: 0; overflow: auto; padding: 8px 14px 30px; outline: none; position: relative; }
.awb-text:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.awb-chaptitle { margin: 14px 0 4px; }
.awb-chap:first-child .awb-chaptitle { margin-top: 2px; }
.awb-text .vspan.cur { background: var(--sel-bg); border-radius: 3px; }
.awb-text .vspan.awb-here { box-shadow: -3px 0 0 var(--sel-strong); }
.awb-text .vspan .vn { color: var(--ref); font: 600 10px var(--ui); vertical-align: super; margin-right: 2px; cursor: default; }
.awb-text .verse-flow { font-family: var(--text-latin); font-size: var(--fs-latin); line-height: 1.75; }
.awb-text .verse-flow.greek { font-family: var(--text-greek); font-size: var(--fs-greek); }
.awb-text .verse-flow.hebrew { font-family: var(--text-hebrew); font-size: var(--fs-hebrew); direction: rtl; }
.awb-text .vspan .w:hover, .awb-text .vspan .mw:hover { background: var(--panel-2); box-shadow: 0 0 0 2px var(--panel-2); }
.awb-text .vspan .w.hit, .awb-text .vspan .mw.hit { background: var(--hit-bg); color: var(--hit-ink); box-shadow: 0 0 0 1px var(--hit-bg); }
.awb-text .vspan .w.pinned, .awb-text .vspan .mw.pinned { outline: 2px solid var(--sel-strong); outline-offset: 1px; }
.awb-text .vspan .str { color: var(--strongs); font: 10.5px var(--mono); vertical-align: super; margin: 0 1px; }
body:not(.show-strongs) .awb-text .str { display: none; }
.awb-multi .verse-block { margin: 0; }
.awb-info { flex: none; height: 30%; min-height: 96px; max-height: 50%; display: flex; flex-direction: column; border-top: 2px solid var(--line-strong); background: var(--bg); }
.awb-infohead { flex: none; padding: 2px 10px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-small); font-weight: 600; }
.awb-infobody { flex: 1; min-height: 0; overflow: auto; padding: 6px 10px 10px; }
.awb-def, .awb-desc { margin-top: 6px; font-size: 13px; }

/* Verse tabs (Vs1, Vs2): header with Back / Forward, module chooser, Expand, Menu, Search, then the module's page */
.awv { display: flex; flex-direction: column; min-width: 0; }
.awv-head { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
.awv-row { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.awv-row .btn { height: 24px; padding: 0 8px; }
.awv-nav { padding: 0 7px; min-width: 28px; }
.awv-pick { flex: 1; min-width: 0; }
.awv-pick option.awv-none { color: var(--ink-3); }
.awv-where { margin-left: auto; color: var(--ref); font-weight: 650; white-space: nowrap; }
.awv-content { flex: 1; min-height: 0; overflow: auto; background: var(--bg); }
.awv-frame { display: block; width: 100%; height: 100%; border: 0; background: white; }
.awv-empty { padding: 14px; }

/* Toggle Analysis Window Heading (help bwh10a): the heading lines of the Analysis, Notes and Editor tabs */
body.aw-no-heading .ws-note-head .ws-note-row:first-child { display: none; }
body.aw-no-heading .rich .rich-status > :first-child { visibility: hidden; }

/* the title bars and the tab strips of the two Analysis Windows (workspace/anatabs.js) */
.atabs button.aw-dragging { opacity: 0.45; }
.atabs button.aw-drop-before { box-shadow: inset 3px 0 0 var(--sel-strong); }
.atabs button.aw-drop-after { box-shadow: inset -3px 0 0 var(--sel-strong); }
.atabs.aw-drop-end { box-shadow: inset 0 -3px 0 var(--sel-strong); }
body.ws-acols2 #ws-abody2.aw-fill { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
body.ws-acols2 #ws-abody2.aw-fill > .awb, body.ws-acols2 #ws-abody2.aw-fill > .awv { flex: 1; min-height: 0; }
#ws-ahead2 { display: none; }
body.ws-acols2 #analysis-pane > .pane-head:not(#ws-ahead2) { grid-column: 1; grid-row: 1; }
body.ws-acols2 #analysis-pane > #ws-ahead2 { display: flex; grid-column: 2; grid-row: 1; border-left: 1px solid var(--chrome-hover); }
body.ws-acols2 #ws-ahead2[hidden] { display: none; }
#analysis-pane .pane-head #ws-atab-hide, #analysis-pane .pane-head #ws-atab-hide2 { font-size: 15px; line-height: 1; padding: 2px 6px; }
/* Lockman lexicon section of the Word Analysis tab (awlockman.js) */
.aw-lockman { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.aw-lockman h3 { margin: 0 0 4px; font-size: var(--fs-small); color: var(--ink-3); font-weight: 650; }
.aw-lm-entry { margin: 4px 0 8px; font-size: 13px; }
.aw-lm-no { color: var(--code); font: 12px var(--mono); }
.aw-lm-head { font-size: 17px; }
.aw-lm-head.greek { font-family: var(--text-greek); } .aw-lm-head.hebrew { font-family: var(--text-hebrew); }
.aw-lm-gloss { color: var(--ink-2); }
.aw-lm-ety { color: var(--ink-3); font-size: 12px; }
.aw-lm-usage { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; }
.awb-verseWords { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; align-content: flex-start; }
.awb-verseWords .awb-hint { flex-basis: 100%; color: var(--ink-3); font-size: var(--fs-small); margin-bottom: 4px; }
.awb-vw { height: 28px; font-size: 16px; }
.awb-vw.greek { font-family: var(--text-greek); } .awb-vw.hebrew { font-family: var(--text-hebrew); }
