:root {
  --bg: #ffffff; --fg: #242424; --muted: #616161; --line: #e0e0e0; --soft: #f5f5f5; --hover: #f0f0f0;
  --brand: #185abd; --brand-soft: #e8f0fb; --red: #c4314b; --green: #107c41; --yellow: #fff4b3;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; font-size: 13px; color: var(--fg);
       background: var(--bg); direction: rtl; display: flex; flex-direction: column; overflow: hidden; }
.hidden { display: none !important; }
.ic { font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets"; font-style: normal; font-size: 14px; line-height: 1; vertical-align: -2px; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; }
.gap { gap: 6px; }

/* ---------- top bar ---------- */
.topbar { position: relative; display: flex; align-items: center; height: 44px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--line); flex: none; }
.title-btn { display: flex; align-items: center; gap: 6px; border: none; background: none; font: inherit; font-size: 15px; font-weight: 600;
             padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--fg); }
.title-btn:hover { background: var(--hover); }
.title-btn .chev { font-size: 10px; color: var(--muted); }
.tb-actions { display: flex; gap: 2px; margin-inline-start: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; border-radius: 6px;
            background: none; color: var(--muted); cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.icon-btn .ic { font-size: 16px; }
.icon-btn.on { color: var(--brand); }
.icon-btn.slash { font-weight: 600; font-size: 15px; }

.menu { position: absolute; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; min-width: 190px; }
.topbar .menu { top: 40px; right: 6px; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: none; font: inherit; text-align: right;
               padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--fg); }
.menu button:hover, .menu button.active { background: var(--hover); }
.menu .item-desc { display: block; font-size: 11px; color: var(--muted); }
.menu .menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu button.main-item { font-weight: 600; }
.menu.up { bottom: calc(100% + 4px); right: 8px; left: 8px; max-height: 50vh; overflow-y: auto; }

/* ---------- views ---------- */
.view { flex: 1; overflow-y: auto; padding: 10px 12px 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; }
.summary { color: var(--muted); margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px;
       background: #fff; cursor: pointer; color: var(--fg); }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.small-btn { font-size: 12px; padding: 3px 10px; margin-bottom: 6px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; color: #fff; font-size: 11px; }

.detail { background: var(--soft); }
.detail-top { display: flex; justify-content: space-between; align-items: center; }
.change { line-height: 1.5; }
.change.big { font-size: 17px; margin: 8px 0 4px; }
.before { text-decoration: line-through; color: var(--red); }
.after { color: var(--green); font-weight: 600; }
.arrow { margin: 0 6px; color: var(--muted); font-size: 11px; }
.reason { line-height: 1.55; margin-bottom: 6px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); text-decoration: none; margin-bottom: 8px; }
.link:hover { text-decoration: underline; }
.src-list { list-style: none; margin: 0 0 8px; padding: 0; }
.src-row { border-inline-start: 3px solid var(--line); padding: 4px 8px; margin-bottom: 6px; background: #fff; }
.src-title { font-weight: 600; }
.src-meta { font-size: 12px; color: var(--muted); line-height: 1.5; }
.src-missing { color: #c5221f; }
.src-row .link { margin: 2px 0 0; font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.filters button { font: inherit; font-size: 12px; padding: 2px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.filters button.on { color: #fff; border-color: transparent; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 4px; }
.list li:hover { background: var(--hover); }
.list li.current { background: var(--brand-soft); }
.bar { width: 3px; border-radius: 2px; flex: none; }
.row-main { min-width: 0; flex: 1; }
.row-change { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-reason { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doubt-word { background: var(--yellow); padding: 0 3px; border-radius: 2px; }
.diag { white-space: pre-wrap; font-size: 11px; color: var(--muted); margin: 0; font-family: inherit; }
.filters button.off { color: var(--muted); background: #fff; opacity: .75; }
.hidden-note { margin: -4px 0 6px; }
.bulk-box { margin: 0 0 8px; }
.bulk-box summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.bulk-row { flex-wrap: wrap; }
.bulk-row .field { flex: 1; min-width: 140px; width: auto; margin-bottom: 6px; }
.bulk-confirm { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; background: var(--soft); }
.bulk-confirm > div:first-child { margin-bottom: 6px; line-height: 1.5; }
#bulk-progress progress { flex: 1; min-width: 80px; }
.search { margin-bottom: 6px; }
/* the list draws only the rows on screen; every row has the same height (ROW_H in taskpane.js) */
.list li.vrow { height: 50px; overflow: hidden; align-items: center; }
.list li.vrow .bar { align-self: stretch; }
.list li.vl-pad { padding: 0; border: none; cursor: default; }
.list li.vl-pad:hover { background: none; }
.list li.list-empty { cursor: default; }
#list:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* ---------- settings ---------- */
.field { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-width: 0; }
.field-label { display: block; margin: 8px 0 3px; color: var(--muted); font-size: 12px; }
.toggle { display: flex; align-items: center; gap: 6px; padding: 4px 0; }

/* ---------- chat ---------- */
.chat-view { display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative; }
.chat { flex: 1; overflow-y: auto; padding: 12px 12px 4px; }
.empty { text-align: center; margin-top: 18vh; color: var(--muted); }
.empty h2 { font-size: 15px; color: var(--fg); font-weight: 600; margin: 8px 0 4px; }
.empty .ic.hero { font-size: 28px; color: var(--brand); }
.skill-pills { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.skill-pills button { font: inherit; padding: 5px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; color: var(--fg); }
.skill-pills button:hover { background: var(--hover); }

.msg { margin: 0 0 12px; line-height: 1.6; }
.msg.user { display: flex; justify-content: flex-start; }
.msg.user .bubble { background: var(--soft); border-radius: 12px; padding: 7px 11px; max-width: 88%; white-space: pre-wrap; }
.msg.user .skill-tag { display: block; font-size: 11px; color: var(--brand); margin-bottom: 2px; }
.msg.bot .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.msg.bot .body p { margin: 0 0 6px; }
.msg.bot .body ul, .msg.bot .body ol { margin: 0 0 6px; padding-inline-start: 18px; }
.msg.bot .body table { border-collapse: collapse; margin: 4px 0 8px; font-size: 12px; width: 100%; }
.msg.bot .body th, .msg.bot .body td { border: 1px solid var(--line); padding: 3px 6px; text-align: right; vertical-align: top; }
.msg.bot .body th { background: var(--soft); }
.msg.bot .body code { background: var(--soft); padding: 0 3px; border-radius: 3px; }
.msg.bot .body a { color: var(--brand); text-decoration: none; }
.msg.bot .body a:hover { text-decoration: underline; }
.thinking { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.thinking { flex-wrap: wrap; }
.thinking .queue-note { flex-basis: 100%; font-size: 12px; }   /* its place in the server's queue, on a line of its own */
.dots span { display: inline-block; width: 5px; height: 5px; margin: 0 1px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.proposal { border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); border-radius: 6px; padding: 7px 9px; margin: 6px 0; background: #fff; }
.proposal .kind { font-size: 11px; color: var(--brand); margin-bottom: 2px; }
.proposal .change { font-size: 14px; }
.proposal .row-reason { white-space: normal; margin: 2px 0 6px; }
.apply-all { margin-top: 4px; }

.overlay { position: absolute; inset: 0; background: #fff; z-index: 10; padding: 8px 12px; overflow-y: auto; }
.overlay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

.composer { position: relative; flex: none; margin: 6px 10px 10px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 4px;
            background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.composer:focus-within { border-color: #b4b4b4; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 2px 8px; margin-bottom: 4px; }
.chip.accent { color: var(--brand); background: var(--brand-soft); }
.chip-x { border: none; background: none; cursor: pointer; color: inherit; padding: 0; }
.chip-x .ic { font-size: 9px; }
#input { width: 100%; border: none; outline: none; resize: none; font: inherit; font-size: 13.5px; line-height: 1.5; max-height: 160px; padding: 4px 2px; background: transparent; }
.composer-row { display: flex; align-items: center; gap: 2px; }
.model-select { border: none; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; max-width: 150px; }
.model-select:hover { background: var(--hover); }
.send-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--brand); color: #fff; cursor: pointer; display: inline-flex;
            align-items: center; justify-content: center; }
.send-btn .ic { font-size: 14px; transform: scaleX(-1); }
.send-btn:disabled { background: #c8c8c8; cursor: default; }

.toast { position: fixed; bottom: 12px; left: 12px; right: 12px; padding: 8px 12px; border-radius: 8px; background: #242424; color: #fff; z-index: 50;
         box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* ---------- editing actions ---------- */
.action-bar { flex: none; margin: 6px 10px 0; }
.scope { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 5px; }
.scope button { font: inherit; font-size: 11px; padding: 2px 10px; border: none; background: #fff; color: var(--muted); cursor: pointer; }
.scope button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.action-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.action-btns button { font: inherit; font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
                      color: var(--fg); cursor: pointer; }
.action-btns button:hover:not(:disabled) { background: var(--hover); border-color: var(--brand); }
.action-btns button:disabled { color: #b4b4b4; cursor: default; }
.stop-btn { margin: 0 6px 0 0; padding: 1px 10px; }

/* the correction card and the filters stay in place; only the list scrolls */
.review-view { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.review-head { flex: none; }
.review-view #list { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.detail .doubt-word { font-weight: 600; }
.evidence { font-size: 12px; color: var(--muted); background: #fff; border-inline-start: 3px solid var(--line); padding: 4px 8px; margin: -2px 0 8px; line-height: 1.5; }
.section-title { font-size: 13px; margin: 16px 0 4px; }

/* ---------- dictionary proposals ---------- */
.count { display: inline-block; min-width: 18px; padding: 0 5px; margin-inline-start: auto; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; text-align: center; }
.dict-row { display: block; cursor: default; }
.dict-row:hover { background: none; }
.dict-row .row-change { white-space: normal; }
.dict-form { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 6px; }
.dict-form .field { padding: 4px 6px; font-size: 12px; }

/* ---------- several actions, and the question before a whole-document run ---------- */
.action-btns button.picked { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.action-btns .multi-toggle { border-style: dashed; color: var(--muted); }
.action-btns .multi-toggle.on { border-style: solid; color: var(--brand); border-color: var(--brand); }
.action-btns .run-picked { background: var(--brand); border-color: var(--brand); color: #fff; }
.action-btns .run-picked:disabled { background: #c8c8c8; border-color: #c8c8c8; }
.msg.confirm { border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); border-radius: 8px; padding: 8px 10px; background: var(--soft); }
.msg.confirm .body { margin-bottom: 6px; }

/* ---------- אוצר החכמה (otzar-local-service on this computer) ---------- */
:root { --oz-amber: #c8781e; --oz-amber-soft: #fdf0e2; --oz-amber-ink: #8a4f10; }
.title-logo { width: 22px; height: 22px; object-fit: contain; }
.oz-mode { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 9px; cursor: help; white-space: nowrap;
           background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.oz-mode.engine { background: var(--brand-soft); color: var(--brand); border-color: rgba(24,90,189,.2); }
.menu-logo { width: 16px; height: 16px; object-fit: contain; }
.oz-view { display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative; }
.oz-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.oz-down { padding: 16px 14px; }
.oz-down h3 { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 6px; }
.oz-down p { line-height: 1.6; white-space: pre-line; }

.oz-search { flex: none; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.oz-box { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 18px; padding: 5px 12px; background: #fff; }
.oz-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.oz-box > .ic { color: var(--muted); }
.oz-box input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 13.5px; background: transparent; }
.oz-box input::-webkit-search-cancel-button { display: none; }
.oz-scope-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 7px; padding: 3px 11px; border-radius: 12px; cursor: pointer;
                 font: inherit; font-size: 12px; font-weight: 600; background: var(--oz-amber-soft); border: 1px solid rgba(200,120,30,.25); color: var(--oz-amber-ink);
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oz-scope-chip:hover { background: #fbe6cd; }
.oz-scope-chip .cnt { font-weight: 400; color: #b07a3a; }
.oz-ops { display: flex; align-items: center; gap: 12px; margin-top: 7px; flex-wrap: wrap; }
.oz-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.oz-chk input { margin: 0; accent-color: var(--brand); }
.oz-chk:has(input:checked) { color: var(--fg); font-weight: 600; }
.oz-link { margin-inline-start: auto; border: none; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; padding: 2px; }
.oz-link .chev { font-size: 9px; }
.oz-adv { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 45vh; overflow-y: auto; }
.oz-adv-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 9px; }
.oz-adv-item .h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.oz-adv-item .d { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.oz-sign { font-family: Consolas, monospace; background: var(--brand-soft); color: var(--brand); padding: 0 6px; border-radius: 5px; font-size: 11.5px; }
.oz-num { width: 56px; text-align: center; font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.oz-exclude { margin-top: 5px; }
.oz-switch { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: #c8c8c8; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.oz-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: right .15s; }
.oz-switch:checked { background: var(--green); }
.oz-switch:checked::after { right: 16px; }

/* "קשר לאוצר": the tabs open in Otzar, above the results */
.oz-curbtn { display: inline-flex; align-items: center; gap: 3px; border: none; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--oz-amber-ink); cursor: pointer; padding: 2px; }
.oz-curbtn .ic { font-size: 11px; }
.oz-cur { flex: none; max-height: 48vh; overflow-y: auto; border-bottom: 1px solid var(--line); background: #fffaf3; }
.oz-cur-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px 2px 8px; font-size: 12.5px; }
.oz-cur-head > .ic { color: var(--oz-amber); }
.oz-cur-list { list-style: none; margin: 0; padding: 0 8px 4px; }
.oz-cur-group { font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 6px 6px 2px; }
.oz-cur-row { border-radius: 8px; }
.oz-cur-row .oz-row { padding: 5px 6px; }
.oz-cur-row.on { background: var(--brand-soft); }
.oz-cur-badge { font-size: 10px; font-weight: 700; color: #fff; background: var(--green); padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.oz-cur-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 8px 7px; }
.oz-cur-acts .oz-link { margin: 0; }
.oz-cur-msg { padding: 8px 6px; }
.oz-cur-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0 12px 7px; font-size: 10.5px; color: var(--muted); }
.oz-cur-foot .oz-link { margin: 0; font-size: 10.5px; }
.oz-blink { display: none; }
.oz-linking .oz-blink { display: inline-flex; }
.oz-conv-status:empty { display: none; }
.oz-conv-status { line-height: 1.6; }
.oz-res-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 2px; font-size: 12px; color: var(--muted); }
.oz-res-head b { color: var(--fg); }
.oz-sort { border: none; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; }
.oz-results { flex: 1; min-height: 60px; overflow-y: auto; list-style: none; margin: 0; padding: 2px 8px 6px; }
.oz-results > li { border-radius: 8px; }
.oz-row { display: flex; align-items: center; gap: 7px; padding: 7px 6px; border-radius: 8px; cursor: pointer; }
.oz-row:hover { background: var(--hover); }
.oz-tri { border: none; background: none; color: var(--oz-amber); cursor: pointer; padding: 0 2px; font-size: 10px; width: 16px; transition: transform .15s; }
.oz-tri.open { transform: rotate(-90deg); }
.oz-main-col { flex: 1; min-width: 0; }
.oz-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oz-auth { font-weight: 400; font-size: 11px; color: var(--muted); }
.oz-page { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.oz-cnt { font-size: 11.5px; font-weight: 700; color: var(--oz-amber-ink); background: var(--oz-amber-soft); padding: 1px 8px; border-radius: 9px; min-width: 26px; text-align: center; }
.oz-open { color: var(--brand); opacity: 0; font-size: 13px; }
.oz-row:hover .oz-open { opacity: 1; }
.oz-pages { list-style: none; margin: 0 0 4px; padding: 0 30px 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.oz-pages li { font-size: 11px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: #fff; }
.oz-pages li:hover { border-color: var(--brand); color: var(--brand); }
.oz-pages li b { color: var(--oz-amber-ink); font-weight: 600; }
/* the text around a match (local search): under each result, and per match when a result is opened */
.oz-ctx { font-size: 11.5px; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.oz-ctx b { color: var(--oz-amber-ink); font-weight: 600; }
.oz-hits { list-style: none; margin: 0 0 4px; padding: 0 30px 0 6px; }
.oz-hits li { display: flex; align-items: baseline; gap: 7px; padding: 3px 6px; border-radius: 6px; cursor: pointer; }
.oz-hits li:hover { background: var(--hover); }
.oz-hits .oz-page { flex: none; }
.oz-hits .oz-ctx { flex: 1; min-width: 0; color: var(--fg); }
.oz-hit-more { font-size: 11px; cursor: pointer; }
/* one click marks a row, a double click opens it */
.oz-row.oz-sel, .oz-hits li.oz-sel { background: var(--brand-soft); }
.oz-pages li.oz-sel { border-color: var(--brand); color: var(--brand); }
.oz-book .oz-main-col.oz-sel .oz-name { color: var(--brand); }
.oz-empty { text-align: center; color: var(--muted); padding: 22px 10px; line-height: 1.6; }
.oz-more { text-align: center; padding: 6px; }
.oz-note { flex: none; display: flex; align-items: flex-start; gap: 6px; margin: 2px 10px 6px; padding: 6px 9px; border-radius: 8px; font-size: 11px; line-height: 1.5;
           background: #fff8e1; border: 1px solid rgba(251,188,4,.35); color: #7a5f00; }
.oz-note.blue { background: var(--brand-soft); border-color: rgba(24,90,189,.2); color: #174ea6; }

.oz-split { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 3px; cursor: ns-resize; user-select: none;
            background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10.5px; touch-action: none; }
.oz-split .grip { width: 26px; height: 3px; border-radius: 2px; background: #c8c8c8; }
.oz-scope { flex: none; height: 220px; min-height: 90px; display: flex; flex-direction: column; }
/* before any search: no results area; the book list fills the view (its saved height is for later) */
.oz-idle .oz-res-head, .oz-idle .oz-results, .oz-idle .oz-note, .oz-idle .oz-split { display: none !important; }
.oz-idle .oz-scope { flex: 1; height: auto !important; border-top: 1px solid var(--line); }
.oz-seg { flex: none; display: flex; gap: 4px; padding: 7px 10px 6px; }
.oz-seg button { flex: 1; font: inherit; font-size: 11.5px; font-weight: 600; padding: 4px 2px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; white-space: nowrap; }
.oz-seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.oz-filter { flex: none; display: flex; align-items: center; gap: 6px; margin: 0 10px 5px; border: 1px solid var(--line); border-radius: 16px; padding: 3px 10px; }
.oz-filter .ic { color: var(--muted); font-size: 12px; }
.oz-filter input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 12px; background: transparent; }
.oz-hint { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 12px 4px; font-size: 10.5px; color: var(--muted); }
.oz-list-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 0 12px 5px; font-size: 11.5px; }
.oz-list-bar .oz-link { margin: 0; font-size: 11.5px; padding: 0; }
.oz-list-bar .oz-chk { font-size: 11.5px; }
.oz-fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 60%; padding: 1px 4px 1px 9px; border-radius: 10px; font-weight: 600;
            background: var(--oz-amber-soft); color: var(--oz-amber-ink); border: 1px solid rgba(200,120,30,.25); }
.oz-fchip #oz-fchip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oz-shown { color: var(--muted); white-space: nowrap; }
.oz-book .oz-mark { color: var(--green); font-weight: 700; font-size: 12px; width: 15px; text-align: center; flex: none; }
.oz-amber { color: var(--oz-amber); }
.oz-books { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0 8px 8px; }
.oz-book { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 8px; }
.oz-book:hover { background: var(--hover); }
.oz-book input[type=checkbox] { margin: 0; flex: none; accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.oz-book .oz-main-col { cursor: pointer; }
.oz-book.on .oz-name { font-weight: 700; }
.oz-book .oz-bcnt { font-size: 11px; color: var(--muted); font-weight: 600; }
.oz-book .oz-chev { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 10px; padding: 2px 4px; }
.oz-book .oz-bopen { border: none; background: none; color: var(--oz-amber); cursor: pointer; opacity: .6; font-size: 14px; padding: 0 3px; }
.oz-book:hover .oz-bopen { opacity: 1; }
.oz-book .oz-del { border: none; background: none; color: var(--muted); cursor: pointer; padding: 0 3px; }
.oz-book .oz-del:hover { color: var(--red); }
.oz-crumb { padding: 2px 6px 4px; font-size: 11.5px; }
.oz-crumb button { border: none; background: none; font: inherit; color: var(--brand); cursor: pointer; padding: 0; }
.oz-scope-foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--soft); }
.oz-scope-count { flex: 1; font-size: 12px; font-weight: 600; color: var(--oz-amber-ink); }

.oz-opt { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 6px; cursor: pointer; }
.oz-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.oz-opt:has(input:disabled) { opacity: .55; cursor: default; }
.oz-opt input { margin: 2px 0 0; accent-color: var(--brand); }
.oz-opt .d { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; line-height: 1.5; }
.oz-ai { display: flex; align-items: flex-start; gap: 7px; padding: 8px 10px; border: 1px dashed rgba(24,90,189,.35); border-radius: var(--radius); background: rgba(232,240,251,.5); color: #174ea6; font-size: 12px; line-height: 1.5; }

/* ---------- אוצריא (the Otzaria library: from this computer, else from the server) ---------- */
.oa-view { display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative; }
.oa-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.oa-top { flex: none; padding: 10px 12px 0; }
.oa-top .oz-seg { padding: 8px 0 6px; }
.oa-pane { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
#oa-library, #oa-recent, #db-library, #db-recent { padding: 0 8px 10px; }
.oa-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 4px 6px; font-size: 12px; }
.oa-crumb { border: none; background: none; font: inherit; color: var(--brand); cursor: pointer; padding: 1px 3px; border-radius: 4px; }
.oa-crumb:hover:not(:disabled) { background: var(--brand-soft); }
.oa-crumb:disabled { color: var(--fg); font-weight: 600; cursor: default; }
.oa-sep { color: var(--muted); }
.oa-list { list-style: none; margin: 0; padding: 0; }
.oa-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.oa-row:hover { background: var(--hover); }
.oa-row > .ic { color: var(--muted); flex: none; }
.oa-cat > .ic { color: #b8862b; }
.oa-row .oa-t { flex: 1; min-width: 0; }
.oa-row .oa-n { font-size: 11px; color: var(--muted); }
.oa-sub { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-wait { padding: 10px 8px; color: var(--muted); font-size: 12px; list-style: none; }

.oa-rbar { flex: none; display: flex; align-items: center; gap: 2px; padding: 2px 6px; border-bottom: 1px solid var(--line); }
.oa-where { display: flex; align-items: baseline; gap: 6px; min-width: 0; border: none; background: none; font: inherit; cursor: pointer;
            padding: 4px 6px; border-radius: 6px; color: var(--fg); text-align: right; }
.oa-where:hover { background: var(--hover); }
.oa-where b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.oa-ref { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-where .chev { font-size: 9px; color: var(--muted); }
.oa-marks { font-family: "Times New Roman", serif; font-size: 16px; }
.oa-info { flex: none; max-height: 40%; overflow-y: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 12px; line-height: 1.6; }
.oa-fact { margin-top: 2px; }
.oa-desc { margin: 6px 0 0; white-space: pre-line; }
.oa-toc { flex: none; max-height: 60%; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,.06); }
.oa-toc-filter { margin: 8px 10px 4px; }
.oa-toc-alts { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; }
.oa-toc-alts:empty { display: none; }
.oa-alt { font: inherit; font-size: 11.5px; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.oa-alt.on { background: var(--brand-soft); border-color: rgba(24,90,189,.3); color: var(--brand); font-weight: 600; }
#oa-toc-note, #db-toc-note { padding: 2px 12px; }
.oa-toc-list { list-style: none; margin: 0; padding: 4px 6px 8px; overflow-y: auto; }
.oa-toc-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.oa-toc-row:hover { background: var(--hover); }
.oa-toc-row.cur { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.oa-toc-row.nolink { color: var(--muted); }
.oa-caret { width: 14px; flex: none; text-align: center; color: var(--muted); font-size: 10px; }

.oa-text { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; padding: 8px 14px 40px; outline: none;
           font-family: "Times New Roman", "David", "Frank Ruehl CLM", serif; font-size: 16px; line-height: 1.75; }
.oa-empty { font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; }
.oa-line { white-space: pre-line; padding: 1px 4px; margin: 0 -4px; border-radius: 4px; cursor: pointer; }
.oa-line:hover { background: #fafafa; }
.oa-line.sel { background: var(--brand-soft); }
.oa-line.flash { animation: oa-flash 1.6s ease-out; }
@keyframes oa-flash { from { background: var(--yellow); } to { background: transparent; } }
.oa-line h1, .oa-line h2, .oa-line h3, .oa-line h4, .oa-line h5, .oa-line h6 { margin: 10px 0 2px; line-height: 1.4; font-weight: 700; }
.oa-line h1 { font-size: 22px; } .oa-line h2 { font-size: 19px; } .oa-line h3 { font-size: 17px; }
.oa-line h4, .oa-line h5, .oa-line h6 { font-size: 16px; }
.oa-line small { font-size: 13.5px; }
.oa-line big { font-size: 19px; }
.oa-line ul, .oa-line ol { margin: 2px 0; padding-inline-start: 20px; }

.oa-links { margin: 4px 0 10px; padding: 6px 8px 8px; border: 1px solid rgba(24,90,189,.25); border-radius: 8px; background: #fbfcfe;
            font-family: "Segoe UI", system-ui, sans-serif; font-size: 12.5px; line-height: 1.5; cursor: default; }
.oa-links-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.oa-links-head .oz-link { margin: 0; }
.oa-role { margin: 6px 0 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
.oa-link { display: flex; align-items: flex-start; gap: 4px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.oa-link:hover { background: var(--hover); }
.oa-link-t { flex: 1; min-width: 0; }
.oa-link .icon-btn { width: 24px; height: 24px; flex: none; }
.oa-snip { color: var(--muted); font-family: "Times New Roman", serif; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.oa-more { margin: 6px 0 0; }
.oa-row.active { background: var(--brand-soft); }
.oa-row.oa-com { padding-inline-start: 22px; }
.oa-row.oa-com > .ic { font-size: 12px; }

/* ===================== בר אילן ===================== */
.ba-pad { padding-inline: 12px; }
#ba-books .ba-pad:first-child { padding-bottom: 6px; }
#ba-list, #ba-choices { padding: 0 8px 10px; }
.ba-view .oa-row .icon-btn { flex: none; opacity: 0; }
.ba-view .oa-row:hover .icon-btn { opacity: 1; }
.ba-build { margin: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.ba-build p { margin: 0 0 8px; line-height: 1.6; white-space: pre-line; font-size: 12px; }
.ba-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.ba-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s; }
.ba-help { margin: 6px 2px 4px; line-height: 1.5; }
.ba-sub-h { font-size: 11px; font-weight: 600; color: var(--muted); padding: 10px 4px 4px; list-style: none; }
.ba-err { color: var(--red); white-space: pre-line; }
.ba-mode { padding: 2px 0 6px; }
.ba-mode button:disabled { opacity: .45; cursor: default; }
.ba-tq { resize: vertical; min-height: 54px; font-size: 13.5px; }
.ba-tools { margin: 4px 0; }
.ba-opts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0; }
.ba-opts .off { opacity: .45; pointer-events: none; }
.ba-go { width: 100%; justify-content: center; margin: 6px 0 8px; }
.ba-foot { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-top: 1px solid var(--line); }
.ba-busy .oa-pane { cursor: progress; }
.ba-busy .ba-go, .ba-busy #b-ba-ref { opacity: .5; pointer-events: none; }
.oa-sbox { flex: none; padding: 0 0 6px; }
#oa-search, #db-search { padding: 0 10px 10px; }
.oa-scope-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 12px;
                 font-weight: 600; background: var(--soft); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.oa-scope-chip.on { background: var(--brand-soft); border-color: rgba(24,90,189,.3); color: var(--brand); }
.oa-scope { flex: none; display: flex; flex-direction: column; max-height: 55%; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.oa-scope-top { display: flex; align-items: center; gap: 4px; padding-inline-end: 6px; }
.oa-scope-top .oz-seg { flex: 1; }
.oa-scope-filter { margin: 0 10px 4px; }
.oa-scope-list { flex: 1; min-height: 60px; overflow-y: auto; padding: 0 6px; }
.oa-pick input[type=checkbox] { margin: 0; accent-color: var(--brand); width: 15px; height: 15px; flex: none; }
.oa-go { color: var(--muted); font-size: 16px; }
.oa-save-row { display: flex; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--line); }
.oa-results { list-style: none; margin: 0; padding: 0; }
.oa-res { border-bottom: 1px solid var(--line); padding: 6px 4px; }
.oa-res-head { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.oa-res-head:hover { background: var(--hover); }
.oa-res-head > .ic { color: var(--muted); }
.oa-res.open .oa-res-head { background: var(--brand-soft); }
.oa-cnt { font-size: 11px; font-weight: 600; color: var(--muted); }
.oa-snip2 { font-family: "Times New Roman", serif; font-size: 14.5px; line-height: 1.6; color: #333; padding: 2px 24px 2px 4px; cursor: pointer; }
.oa-snip2 mark, mark.oa-hl { background: var(--yellow); color: inherit; border-radius: 2px; }
.oa-hits { margin: 4px 18px 2px 0; border-inline-start: 2px solid var(--brand-soft); }
.oa-hit { padding: 4px 8px; cursor: pointer; border-radius: 6px; }
.oa-hit:hover { background: var(--hover); }
.oa-hit-ref { font-size: 11px; font-weight: 600; color: var(--brand); }
.oa-hit .oa-snip2 { padding: 0; }
.oa-links-act { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.oa-links-act .btn { font-size: 12px; padding: 3px 10px; }
.oa-doclink { margin: 6px 0 0; align-items: center; }
.oa-doclink .oz-link { margin-inline-start: auto; }
#ba-cur-list .oz-name { white-space: normal; }   /* Bar-Ilan titles are long: wrap, not cut */
#ba-link .oz-cur-head { padding-inline: 0; }
.oa-curbtn { margin-top: 6px; color: var(--brand); }
.oa-cur { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: #f7faff; max-height: 45vh; }
.oa-cur .oz-cur-head > .ic { color: var(--brand); }
.oa-cur .oz-cur-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.oa-cur .oz-cur-row:last-child { border-bottom: none; }
.oa-cur .oa-t { flex: 1; min-width: 0; }
.oa-cur-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.oa-cur-acts .btn { font-size: 11.5px; padding: 2px 8px; }
.oa-badge { font-size: 10px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 0 5px; margin-inline-start: 6px; }
.oa-badge.on { color: var(--brand); border-color: rgba(24,90,189,.3); background: var(--brand-soft); }
.oa-cur .oa-role { list-style: none; padding: 6px 6px 2px; }
/* the content-search box above the tabs of the Otzaria and DBS views, under the book box */
.oa-sq-box { margin-top: 6px; }

/* ---------------- הקשבה */
#view-listen { padding: 10px 12px; }
.ls-box { display: flex; flex-direction: column; gap: 8px; }
.ls-hint { font-size: 11.5px; margin: 0; }
/* ---------- הקשבה: the transcriber's tools (#405) ---------- */
.ls-view { background: linear-gradient(180deg, var(--brand-soft) 0, var(--bg) 220px); }
.ls-card { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.ls-status { display: flex; flex-direction: column; gap: 5px; }
.ls-st1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ls-file { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.ls-chip { padding: 1px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; background: var(--soft); color: var(--muted); }
.ls-chip.ok { background: #e6f4ea; color: var(--green); }
.ls-chip:empty { display: none; }
.ls-prog { height: 5px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.ls-prog i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width .3s; }
.ls-st2 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-tl { position: relative; height: 28px; display: flex; gap: 1px; cursor: pointer; margin-top: 4px; }
.ls-p { height: 100%; min-width: 1px; background: var(--soft); border-radius: 2px; }
.ls-p.done { background: #e6f4ea; box-shadow: inset 0 -3px 0 var(--green); }
.ls-p.cur { background: var(--brand-soft); box-shadow: inset 0 -3px 0 var(--brand); }
.ls-dk { position: absolute; top: -3px; width: 3px; height: 9px; border-radius: 2px; background: #f9ab00; transform: translateX(50%); pointer-events: none; }
.ls-head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); transform: translateX(50%); pointer-events: none; }
.ls-head::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); }
.ls-tlx { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ls-cp { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.ls-cp .muted { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-mini { flex: 1; min-width: 40px; height: 6px; border-radius: 99px; background: var(--soft); position: relative; cursor: pointer; }
.ls-mini i { position: absolute; right: 0; top: 0; bottom: 0; width: 0; background: var(--brand); border-radius: 99px; }
.ls-ctl { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ls-ib { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: none; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ls-ib:hover { background: var(--hover); color: var(--fg); }
.ls-ib .ic { font-size: 16px; }
.ls-loopb.on { color: var(--brand); background: var(--brand-soft); }
.ls-tag { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 6px; padding: 0 4px; white-space: nowrap; }
.ls-play { width: 46px; height: 46px; margin: 0 4px; border: none; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(24,90,189,.3); }
.ls-play .ic { font-size: 20px; }
.ls-play:hover { filter: brightness(1.08); }
.ls-row2 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ls-sel { font: inherit; font-size: 12px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ls-follow { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; font-size: 12px; color: var(--muted); }
.ls-pill { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; }
.ls-pill.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ls-sub { margin-top: 6px; padding: 7px 8px; border-radius: 8px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ls-r { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ls-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.ls-seg button { font: inherit; font-size: 11.5px; border: none; background: none; padding: 2px 9px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.ls-seg button.on { background: var(--brand); color: #fff; }
.ls-work { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.ls-wb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; font: inherit; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); cursor: pointer; }
.ls-wb:hover { background: var(--hover); }
.ls-wb .ic { font-size: 15px; }
.ls-wb kbd { font: 600 10px "Segoe UI", sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.ls-wb.unclear { color: #b06000; border-color: #f6d36b; background: #fff8e1; }
.ls-wb.done.on { color: var(--green); border-color: var(--green); background: #e6f4ea; }
.ls-pop { padding: 8px; border-radius: 10px; border: 1px solid #f6d36b; background: #fff8e1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ls-pop mark, .ls-di mark { background: var(--yellow); color: var(--fg); border-radius: 3px; padding: 0 3px; }
.ls-pop input { font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.ls-oh { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; cursor: pointer; }
.ls-chev { font-size: 10px; transition: transform .2s; }
.ls-orig.closed .ls-ot { display: none; }
.ls-orig.closed .ls-chev { transform: rotate(90deg); }
.ls-ot { margin-top: 5px; font: 14px/1.7 "David", "Frank Ruehl CLM", "Times New Roman", serif; color: #444; }
.ls-ot [data-t] { cursor: pointer; border-radius: 3px; }
.ls-ot [data-t]:hover { background: var(--hover); }
.ls-ot.words { max-height: 11.5em; overflow-y: auto; }
.ls-ot .in { background: var(--soft); color: var(--fg); }
.ls-ot .now { background: var(--brand-soft); color: var(--fg); }
.ls-ot.words .now { background: var(--brand); color: #fff; }
.ls-sh { font-weight: 600; font-size: 12px; }
.ls-saidt { margin-top: 5px; font: 15px/1.6 "David", "Frank Ruehl CLM", "Times New Roman", serif; color: var(--fg); }
.ls-saidt.none { font: 12px/1.5 "Segoe UI", sans-serif; color: var(--muted); }
.ls-saidm { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-tabs { display: flex; gap: 2px; background: var(--soft); border-radius: 999px; padding: 3px; }
.ls-tabs button { flex: 1; font: inherit; font-size: 12px; font-weight: 600; border: none; background: none; padding: 4px 6px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.ls-tabs button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ls-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; border-radius: 8px; background: #f9ab00; color: #202124; font-size: 10px; padding: 0 4px; margin-inline-start: 3px; }
.ls-dh { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); margin: 6px 2px; }
.ls-dl { display: flex; flex-direction: column; gap: 5px; }
.ls-di { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 6px 8px; border-radius: 9px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.ls-di:hover { border-color: var(--brand); }
.ls-di.new { animation: ls-flash 1.6s ease-out; }
@keyframes ls-flash { from { background: #fff8e1; border-color: #f9ab00; } }
.ls-pb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.ls-pb .ic { font-size: 10px; }
.ls-nt { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ls-tm { font-size: 11px; color: var(--muted); text-align: left; font-variant-numeric: tabular-nums; }
.ls-empty { color: var(--muted); font-size: 12px; padding: 8px; text-align: center; }
.ls-note { width: 100%; min-height: 70px; margin-top: 6px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.ls-keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12px; margin-top: 6px; }
.ls-keys kbd { font: 600 11px "Segoe UI", sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; background: #fff; text-align: center; min-width: 26px; }
.tx-off { display: none !important; }
