/* translator.css — styles for the Judean Translator (/learn/judean-translator.html) */
/* ── Colors: ScripTopics look (brown cards, gold, sky blue, purple) ── */
:root {
    --bg: var(--bg-dark, #14110d);
    --card: var(--card-brown, #26211A);
    --card2: #1d1914;
    --line: var(--border-brown, #4a3f30);
    --gold: var(--primary-gold, #ffd700);
    --cream: var(--warm-cream, #f5e6d3);
    --muted: var(--text-light, #a89a7c);
    --sky: #38b6f5;
    --purple2: #5a3a9a;   /* same purple as the light theme; fixed so the site-wide --purple (pink in dark) never shows */
    --lilac: var(--light-purple, #b794f6);
    --green: #4ade80;
    --pink: #f9a8d4;
    --c-root:#e8954a; --c-prefix:#60a5fa; --c-article:#2dd4bf; --c-conj:#e879a0; --c-pronoun:#b57bee;
    --c-subj:#facc15; --c-suffix:#f97316; --c-adverb:#86efac; --c-noun:#f5e6d3; --c-plural:#a89880;
    --c-interrog:#67e8f9; --c-name:#f9a8d4; --c-adjective:#a3e635;
}
body.light-theme {
    --bg:#f5f0e8; --card:#ede6d6; --card2:#f7f2e8; --line:#c8baa0; --gold:#8a6000; --cream:#2a1f0a; --muted:#6b5a3e;
    --sky:#0a72b2; --lilac:#5a2a9a; --green:#15803d; --pink:#b0306e;
    --c-root:#b5591f; --c-prefix:#1d5fb0; --c-article:#0f7a68; --c-conj:#a83e63; --c-pronoun:#6b3fa0;
    --c-subj:#8a6300; --c-suffix:#c1500a; --c-adverb:#227a4d; --c-noun:#3b2f1e; --c-plural:#6b5a3e;
    --c-interrog:#0f7a8c; --c-name:#a02463; --c-adjective:#4d7c0f;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: 'Manakahthey', 'Noto Sans Hebrew', 'Segoe UI', system-ui, sans-serif; }
.jd { font-family: 'Manakahthey', 'Noto Sans Hebrew', serif; direction: rtl; }
a { color: var(--sky); }
button { font-family: inherit; }

.tp { max-width: calc(952px + 3em); margin: 0 auto; padding: 18px 1.5em 60px; }
@media (max-width: 768px) { .tp { padding: 12px 12px 50px; } }

/* Title */
.tp-title { text-align: center; margin: 4px 0 14px; }
.tp-title h1 { margin: 0; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tp-icon { width: 1.25em; height: 1.25em; fill: none; stroke: #ffc940; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #ffc940; flex-shrink: 0; }
body.light-theme .tp-icon { stroke: #a8760f; color: #a8760f; }
.tp-home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.tp-title .t1 { color: var(--sky); } .tp-title .t2 { color: var(--gold); }
.tp-title p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Search */
.tp-search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto 18px; }
.tp-search input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--card);
                   color: var(--cream); font-size: 1.05rem; outline: none; font-family: inherit; }
.tp-search input:focus { border-color: var(--sky); }
.tp-qwrap { position: relative; flex: 1; min-width: 0; display: flex; }
.tp-qwrap input { padding-right: 42px !important; }
.tp-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
            display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 0.95rem; font-weight: 700;
            color: var(--cream); background: var(--card2); border: 1px solid var(--line); -webkit-tap-highlight-color: transparent; user-select: none; }
.tp-clear.on { display: flex; }
.tp-clear:hover { border-color: var(--sky); }
.tp-search button { padding: 0 20px; border-radius: 10px; border: none; background: var(--sky); color: #04202f; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
body.light-theme .tp-search button { color: #fff; }

/* Layout */
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .tp-grid { grid-template-columns: 1fr; gap: 14px; } }
.tp-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sec-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
             font-weight: 700; color: var(--gold); margin: 0 0 8px; }
.sec-label .count { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 0.8rem; }
.box { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 14px; }
.it-badge.comp { background: rgba(46,139,87,0.15); color: #2e8b57; }
.it-badge.comm { background: rgba(91,58,154,0.15); color: #5b3a9a; }
.st { font-weight:700; margin-left:4px; }
.st-ok { color:#2e8b57; }
.st-wait { color:var(--muted); }
.found-by { font-size:0.8rem; color:var(--muted); margin-top:6px; }
.found-by a { color:inherit; font-weight:600; }
.gtag { display:block; font-size:0.72em; font-weight:400; color:var(--muted); letter-spacing:0; }
.gen-tag { display:inline-block; padding:2px 9px; border-radius:10px; font-size:0.72rem; font-weight:600; background:rgba(91,58,154,0.12); color:#5b3a9a; }
.gen-slot { margin-top:4px; }
.gen-bar { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 8px; }
.gen-bar .cat-tag.on { background:var(--sky); color:#fff; }
.nf-row { display:flex; gap:10px; align-items:baseline; padding:4px 0; border-top:1px solid rgba(0,0,0,0.08); font-size:0.85rem; }
.nf-j { font-size:1.2rem; min-width:56px; }
.empty { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 10px 4px; }
.hidden { display: none !important; }

/* Itharey's translations */
.it-card { background: var(--card); border: 2px solid var(--line); border-left: 4px solid var(--sky); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.it-card.pinned { box-shadow: 0 0 0 3px rgba(56,182,245,0.25); }
.it-head { display: flex; align-items: flex-start; gap: 8px; }
.it-badge { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; color: var(--sky);
            background: rgba(56,182,245,0.12); border: 1px solid rgba(56,182,245,0.4); white-space: nowrap; }
.it-eng { flex: 1; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.it-eng .hl { color: var(--pink); }
.it-jud-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 6px; flex-wrap: wrap; }
.it-jud { font-size: 1.8rem; color: var(--gold); line-height: 1.4; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 100%; min-width: 0; }
.it-jud-row .play { flex-shrink: 0; }
.it-jud .wd, .hero-jud .wd { white-space: nowrap; }
.it-jud .dot { opacity: 0.5; padding: 0 6px; }
.it-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; direction: rtl; margin-bottom: 8px; }
.it-w { display: flex; flex-direction: column; align-items: center; padding: 4px 8px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); }
.it-w .j { font-size: 1.15rem; color: var(--gold); }
.it-w .g { font-size: 0.68rem; color: var(--cream); direction: ltr; font-family: 'Segoe UI', system-ui, sans-serif; }
.it-ref { font-size: 0.85rem; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,0.15); margin-top: 6px; line-height: 1.45; }
body.light-theme .it-ref { background: rgba(0,0,0,0.045); }
.it-ref a { font-weight: 700; text-decoration: none; }
.it-ref em { color: var(--cream); opacity: 0.9; }
.it-notes { font-size: 0.88rem; line-height: 1.55; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--lilac); white-space: pre-wrap; }
.it-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.it-foot a { color: var(--lilac); text-decoration: none; }
.it-foot .sp { flex: 1; }
.btn-sm { padding: 5px 12px; border-radius: 16px; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 0.78rem; cursor: pointer; }
.btn-sm:hover { border-color: var(--gold); color: var(--gold); }
.btn-rebuild { border-color: var(--gold); color: var(--gold); font-weight: 700; background: rgba(255,215,0,0.08); }
body.light-theme .btn-rebuild { background: #a8760f; border-color: #7a4d09; color: #fff; }
.btn-danger:hover { border-color: #ef4444; color: #ef4444; }
.play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,215,0,0.08); color: var(--gold);
        cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.play:hover { border-color: var(--gold); }

/* No translation yet → ask */
.ask-cta { border: 2px dashed var(--lilac); border-radius: 12px; padding: 14px; text-align: center; }
.ask-cta p { margin: 0 0 10px; font-size: 0.92rem; line-height: 1.5; }
.ask-cta .q { color: var(--sky); font-weight: 700; }
.btn-ask { padding: 9px 18px; border-radius: 20px; border: none; background: var(--purple2); color: #f5f0ff; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.btn-ask:hover { filter: brightness(1.1); }
.ask-more { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.ask-more button { background: none; border: none; color: var(--lilac); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }

/* Forms */
.form { background: var(--card); border: 2px solid var(--lilac); border-radius: 12px; padding: 14px; }
.form h3 { margin: 0 0 10px; font-size: 1rem; color: var(--lilac); display: flex; justify-content: space-between; align-items: center; }
.form h3 button { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.form label { display: block; font-size: 0.8rem; color: var(--muted); margin: 10px 0 4px; }
.form input, .form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
                              color: var(--cream); font-size: 0.95rem; font-family: inherit; outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--lilac); }
.form textarea { resize: vertical; min-height: 70px; }
.form .row { display: flex; gap: 8px; margin-top: 12px; }
.form .row button { flex: 1; }
.btn-main { padding: 10px 16px; border-radius: 8px; border: none; background: var(--purple2); color: #f5f0ff; font-weight: 700; cursor: pointer; font-size: 0.92rem; }
.btn-ghost { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; font-size: 0.92rem; }
.form .note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.form .ok { color: var(--green); }
.form .preview { font-size: 1.5rem; color: var(--gold); text-align: center; padding: 8px; border-radius: 8px; background: var(--card2); }
.seg-toggle { display: flex; gap: 6px; margin-top: 4px; }
.seg-toggle button { flex: 1; padding: 7px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; font-size: 0.82rem; }
.seg-toggle button.on { border-color: var(--lilac); color: var(--lilac); background: rgba(138,79,255,0.12); }

/* Requests */
.req { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: none; }
.req .txt { flex: 1; min-width: 0; }
.req .txt b { display: block; font-size: 0.95rem; }
.req .txt small { color: var(--muted); font-size: 0.75rem; }
.req .txt small a { color: var(--lilac); text-decoration: none; }
.st { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.st.open { color: #f59e0b; border: 1px solid rgba(245,158,11,0.5); }
.st.answered { color: var(--green); border: 1px solid rgba(74,222,128,0.5); }
/* Light theme: filled pills with white words so they can be read */
html body.light-theme .st.open { background:#b45309 !important; border-color:#b45309 !important; color:#ffffff !important; }
html body.light-theme .st.answered { background:#166534 !important; border-color:#166534 !important; color:#ffffff !important; }
/* Categories */
.cat-bar { display: flex; gap: 6px; max-width: 620px; margin: -8px auto 16px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cat-bar:empty { display: none; }
.cat-sub { margin-top: -10px; }
.sf-subs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 4px; }
.cat-chip.sub { padding: 4px 10px; font-size: 0.8rem; border-style: dashed; }
.cat-chip { flex-shrink: 0; white-space: nowrap; padding: 6px 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card);
            color: var(--cream); font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.cat-chip small { font-weight: 400; opacity: 0.8; margin-left: 3px; }
.cat-chip:hover { border-color: var(--sky); }
html body .cat-chip.on { background: #0a72b2; border-color: #0a72b2; color: #ffffff !important; }
html body.light-theme .cat-chip.on { background: #0a5a8a; border-color: #0a5a8a; }
.cat-tag { padding: 3px 10px; border-radius: 14px; border: 1px solid var(--sky); background: transparent; color: var(--sky); font-size: 0.72rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.it-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
/* Responses: the situation, then what to answer */
.it-sit { display: block; font-weight: 700; }
.it-resp { display: block; font-weight: 600; margin-top: 3px; color: var(--green); }
.it-resp i { font-style: normal; font-weight: 400; color: var(--cream); }
.it-sref { display: block; font-size: 0.78rem; font-weight: 600; color: var(--sky); margin-top: 3px; }
/* How to respond (a translation linked to its answer) */
.tr-adj { outline: 2px solid #16a34a; outline-offset: 1px; border-radius: 4px; }
.il-adj { outline: 2px solid #16a34a; outline-offset: 2px; border-radius: 8px; }
.tr-diff { outline: 2px solid #f97316; outline-offset: 1px; border-radius: 4px; cursor: pointer; }
.il-diff { outline: 2px solid #f97316; outline-offset: 2px; border-radius: 8px; cursor: pointer; position: relative; padding-top: 10px; }
.rb-w.rb-flag { outline: 2px solid #f97316; outline-offset: 2px; position: relative; padding-top: 12px; }
.chg-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 0.58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #c2410c; color: #fff; border-radius: 6px; padding: 1px 6px; white-space: nowrap; line-height: 1.4; }
.it-send { padding: 0 14px 10px; text-align: right; }
.it-respond { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.it-respond > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.it-respond span { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.sf-resp-pick { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--green); }
.sf-resp-pick span { flex: 1; font-size: 0.88rem; }
.sf-resp-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; max-height: 180px; overflow-y: auto; }
.sf-resp-list button { text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--cream); cursor: pointer; font-size: 0.85rem; font-family: inherit; }
.nj-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 700; vertical-align: middle;
          border: 1px solid var(--pink); color: var(--pink); }
.nj-say { font-weight: 700; margin-bottom: 6px; }
.nj-alts { display: flex; flex-direction: column; gap: 6px; }
.nj-alt { text-align: left; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--green); background: var(--card2); color: var(--cream); cursor: pointer; font-family: inherit; font-size: 0.95rem; }
.nj-alt small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--sky); }
.it-name { margin: 8px 0 0; padding: 7px 10px; border-radius: 8px; font-size: 0.85rem; line-height: 1.45; background: rgba(74,222,128,0.10); border: 1px solid var(--green); }
.it-name b { color: var(--green); }
.req-match { margin-top: 6px; font-size: 0.78rem; }
.req-match .btn-sm { margin-left: 6px; }
.answering { font-size: 0.85rem; padding: 8px 12px; border-radius: 8px; background: rgba(138,79,255,0.12); border: 1px solid var(--lilac); margin-bottom: 10px; }

/* Workspace: your translation */
.hero { text-align: left; padding: 12px 10px 10px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); margin-bottom: 10px; }
.hero-line { display: flex; direction: rtl; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.hero-jud { font-size: 2rem; color: var(--gold); line-height: 1.4; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.hero-jud .dot { opacity: 0.45; padding: 0 8px; font-size: 1.4rem; }
.hero-eng { font-size: 0.95rem; margin-top: 4px; }
.hero-il .il-h { font-size: 2.1rem; }
.hero-il .il-e { font-size: 0.85rem; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; border: 1px solid; font-size: 0.72rem; text-decoration: none; }
.pill .s { font-family: 'Manakahthey', serif; font-weight: 700; }
.ws-sub { margin-top: 14px; }
/* Modify this Translation, one step at a time: 1 change words → Next → 2 pick, hear, breakdown */
#ws:not(.step2):not(.ws-all) .ws-s2, #ws.step2:not(.ws-all) .ws-s1, #ws.ws-all .ws-step { display: none; }
.ws-close { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 0.85rem; }
/* while modifying, only the work is on the page */
.tp.rb-focus #itSection, .tp.rb-focus #askForm, .tp.rb-focus #kjvSection, .tp.rb-focus #myReqSection, .tp.rb-focus #inboxSection, .tp.rb-focus #catBar, .tp.rb-focus #catSubBar { display: none !important; }
.tp.landing .tp-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.tp.rb-focus .tp-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.ws-hint { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--cream); margin: 0 0 8px; }

/* Rebuild box */
.rb-box { position: relative; }
.rb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rb-ref { font-size: 0.85rem; font-weight: 700; color: var(--sky); text-decoration: none; }
.rb-badge { font-size: 0.68rem; padding: 2px 9px; border-radius: 20px; color: var(--green); background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); }
.rb-badge.it { color: var(--sky); background: rgba(56,182,245,0.12); border-color: rgba(56,182,245,0.35); }
.rb-reset { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 8px; width: 30px; height: 28px; cursor: pointer; }
.rb-words { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; direction: rtl; }
.rb-wg { display: inline-flex; align-items: flex-start; gap: 5px; }
.rb-dot { font-family: 'Manakahthey', serif; color: var(--gold); opacity: 0.6; padding-top: 7px; }
.rb-w { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 7px; border-radius: 9px; cursor: pointer;
        background: var(--card2); border: 1.5px solid var(--line); color: inherit; }
.rb-w:hover, .rb-w.rb-active { border-color: var(--gold); }
.rb-j { font-family: 'Manakahthey', serif; font-size: 1.4rem; line-height: 1.15; color: var(--gold); }
.rb-g { font-size: 0.68rem; color: var(--cream); direction: ltr; max-width: 80px; text-align: center; font-family: 'Segoe UI', system-ui, sans-serif; }
.rb-verb .rb-j { color: var(--c-root); } .rb-noun .rb-j { color: var(--c-noun); } .rb-pron .rb-j { color: var(--c-pronoun); }
.rb-changed { border-color: var(--green); } .rb-changed .rb-g { color: var(--green); font-weight: 600; }
.rb-removed { opacity: 0.35; border-style: dashed; } .rb-removed .rb-j, .rb-removed .rb-g { text-decoration: line-through; }
.rb-pop { position: absolute; z-index: 30; width: min(340px, calc(100% - 12px)); background: var(--card2); border: 1.5px solid var(--gold);
          border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.rb-pop::before { content: ''; position: absolute; top: -8px; left: var(--arrow, 50%); width: 13px; height: 13px; background: var(--card2);
                  border-left: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.rb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.rb-chip { display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; }
.rb-cj { font-family: 'Manakahthey', serif; font-size: 1.2rem; color: var(--gold); direction: rtl; }
.rb-cg { font-size: 0.7rem; }
.rb-who { padding: 5px 11px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--cream); font-size: 0.8rem; cursor: pointer; }
.rb-sel { border-color: var(--green) !important; color: var(--green); background: rgba(74,222,128,0.1); }
.rb-input { width: 100%; padding: 9px 12px; font-size: 0.95rem; background: var(--bg); color: var(--cream); border: 1.5px solid var(--line); border-radius: 9px; outline: none; font-family: inherit; }
.rb-pop-name { width: min(460px, calc(100% - 12px)); }
.rb-ntyped { text-align: center; font-size: 1.7rem; min-height: 2.2rem; color: var(--gold); margin-bottom: 8px; }
.rb-pop-name .rb-results { max-height: 150px; margin-bottom: 8px; }
.rb-own { border-color: var(--green); }
.rb-tag { font-size: 0.68rem; color: var(--muted); margin-left: 4px; }
.rb-pop .jkb-wrap { max-width: none; padding: 0; }
.rb-pop .jkb-row { gap: 3px; }
.rb-pop .jkb-key { flex: 1 1 0; width: auto; min-width: 0; max-width: 44px; height: 40px; font-size: 1.15rem; background: var(--card); border-color: var(--line); color: var(--gold); }
.rb-pop .jkb-key.jkb-action, .rb-pop .jkb-key.jkb-submit { font-size: 0.9rem; height: 38px; }
.rb-pop .jkb-key.jkb-action { flex: 0 1 auto; min-width: 58px; max-width: none; color: var(--cream); background: var(--card); }
html body .rb-pop .jkb-key.jkb-submit { flex: 0 1 auto; min-width: 86px; max-width: none; background: var(--purple2); border-color: var(--purple2); color: #ffffff !important; }
.rb-forms { margin-bottom: 10px; }
.rb-formlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-height: 230px; overflow-y: auto; }
.rb-cref { font-size: 0.62rem; opacity: 0.85; }
.rb-who.rb-off { opacity: 0.35; text-decoration: line-through; }
.rb-searching { font-size: 0.8rem; text-align: center; width: 100%; padding: 4px 0; }
.rb-addp { margin-top:10px; padding:10px; border:1.5px solid var(--gold); border-radius:12px; background:var(--card2); }
.rb-btn:disabled { opacity:0.35; cursor:default; }
.rb-poslabel { text-align: center; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-root); margin-top: 6px; font-weight: 700; }
.rb-need-k { display: block; }
.rb-need-note { display: block; margin-top: 2px; font-size: 0.62rem; letter-spacing: 0.06em; font-weight: 600; color: var(--gold); text-transform: none; }
.rb-results { margin-top: 8px; max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.rb-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: inherit; text-align: left; }
.rb-rj { font-family: 'Manakahthey', serif; font-size: 1.2rem; color: var(--gold); direction: rtl; }
.rb-re { font-size: 0.8rem; }
.rb-more { padding: 6px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; }
.rb-actions { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.rb-btn { min-width: 40px; padding: 5px 12px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--cream); cursor: pointer; }
.rb-x:hover { border-color: #ef4444; color: #ef4444; }

/* Complete Your Translation */
.pick-wrap { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; direction: rtl; }
.chip { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 8px; background: var(--card2);
        border: 1.5px solid transparent; border-top: 2px solid var(--line); cursor: pointer; }
.chip-jud { font-family: 'Manakahthey', serif; font-size: 1.2rem; }
.chip-eng { font-size: 0.7rem; direction: ltr; font-family: 'Segoe UI', system-ui, sans-serif; }
.chip-audio { background: none; border: none; color: var(--pink); cursor: pointer; padding: 2px 0 0; }
.rb-picked { border-color: var(--green) !important; background: rgba(74,222,128,0.08); }
.rb-unpicked { opacity: 0.4; }
.sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 0.8rem; }

/* Morpheme breakdown */
.morph-table { width: 100%; border-collapse: collapse; }
.morph-table tr { border-bottom: 1px solid var(--line); } .morph-table tr:last-child { border-bottom: none; }
.morph-table td { padding: 7px 4px; font-size: 0.82rem; vertical-align: middle; }
.morph-j { font-family: 'Manakahthey', serif; font-size: 1.2rem; }
.morph-role { font-size: 0.72rem; }
.mini-play { background: none; border: none; color: var(--pink); cursor: pointer; padding: 0 0 0 4px; vertical-align: middle; }

/* Scriptures (KJV) */
.kjv-body { max-height: 74vh; overflow-y: auto; }
@media (max-width: 860px) { .kjv-body { max-height: 62vh; } }
.proof-card { background: var(--card2); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; }
.proof-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.proof-top a { font-weight: 700; font-size: 0.85rem; color: var(--sky); text-decoration: none; }
.proof-top .btn-rebuild { margin-left: auto; }
.proof-kjv { font-size: 0.88rem; line-height: 1.5; }
.proof-kjv .hl { color: var(--pink); font-weight: 700; font-style: normal; }
.more-btn { display: block; margin: 10px auto 2px; padding: 7px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; font-size: 0.82rem; }

/* Share to Wall (admin only) — same box as your translator */
#shareToWallWrap { text-align: center; margin: 14px 0 0; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.share-wall-controls { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.share-verse-input { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--cream); font-size: 0.85rem;
                     padding: 7px 10px; width: 240px; max-width: 100%; outline: none; font-family: inherit; }
.share-verse-input:focus { border-color: var(--gold); }
.share-recon-check { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); cursor: pointer; user-select: none; }
.share-recon-check input { accent-color: var(--gold); }
.share-recon-check.is-locked { opacity: 0.5; }
.share-wall-btn { background: rgba(255,215,0,0.1); color: var(--gold); border: 1px solid var(--line); border-radius: 8px; font-weight: 700;
                  font-size: 0.85rem; padding: 9px 20px; cursor: pointer; }
.share-wall-btn:hover:not(:disabled) { border-color: var(--gold); }
.share-wall-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.share-wall-status { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ── Judean with literal meaning under each word (same look as the Bible search) ── */
:root { --morpheme-blue:#7dd3fc; --morpheme-orange:#fb923c; --morpheme-white:#ffffff; --sun:#ffc940; --sun-tint:rgba(255,201,64,.18); }
body.light-theme { --morpheme-blue:#0a72b2; --morpheme-orange:#c2410c; --morpheme-white:#2a1f0a; --sun:#8f5f00; --sun-tint:rgba(240,168,24,.22); }
.il-wrap { display:flex; flex-wrap:wrap; direction:rtl; gap:.7rem 1.1rem; padding:.3rem 0 .2rem; justify-content:flex-start; }
.il-cell { display:inline-flex; flex-direction:column; align-items:center; text-align:center; }
/* ── Admin only: words that are NOT Torah words (same colours as the New Words page) ── */
.nw-first { background:rgba(255,201,64,.18); box-shadow:0 0 0 2px #ffc940; border-radius:5px; }
.nw-any { background:rgba(255,201,64,.14); box-shadow:0 0 0 1px rgba(255,201,64,.75); border-radius:5px; }
.nw-later { border-bottom:2px dotted #ffc940; }
.nw-seen { background:rgba(56,182,245,.16); border-radius:5px; }
.nw-first.nw-known { background:rgba(80,200,120,.18); box-shadow:0 0 0 2px #50c878; }
.nw-later.nw-known { border-bottom:2px dotted #50c878; }
body.light-theme .nw-first { background:rgba(214,150,0,.16); box-shadow:0 0 0 2px #c58a00; }
body.light-theme .nw-any { background:rgba(214,150,0,.12); box-shadow:0 0 0 1px #c58a00; }
body.light-theme .nw-later { border-bottom-color:#c58a00; }
body.light-theme .nw-seen { background:rgba(20,120,190,.14); }
body.light-theme .nw-first.nw-known { background:rgba(40,150,80,.15); box-shadow:0 0 0 2px #2e9a55; }
body.light-theme .nw-later.nw-known { border-bottom-color:#2e9a55; }
body.nw-hide-names .nw-name { background:none !important; box-shadow:none !important; border-bottom:none !important; }
.nw-legend { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; justify-content:center; margin:10px 0; font-size:.8rem; color:var(--text-dim, inherit); }
.nw-legend i { font-style:normal; font-family:'Manakahthey',serif; padding:0 6px; margin-right:5px; }
.nw-legend button { background:none; border:1px solid currentColor; color:inherit; border-radius:8px; padding:2px 9px; font-size:.78rem; cursor:pointer; }
.il-h { font-family:'Manakahthey',serif; font-size:1.55rem; line-height:1.5; border-radius:4px; padding:1px 3px; }
.il-e { direction:ltr; font-size:.82rem; line-height:1.3; color:var(--muted); margin-top:2px; max-width:11em; overflow-wrap:anywhere;
        font-family:'Segoe UI',system-ui,sans-serif; }
.il-play { justify-content:center; }
.il-cell[data-lex] { cursor:pointer; }
.il-cell[data-lex]:hover .il-h { text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:4px; }
.il-cell.lex-on { outline:2px solid var(--gold); outline-offset:2px; border-radius:6px; }
.lex-panel { position:sticky; top:8px; z-index:5; height:min(78vh,720px); display:flex; flex-direction:column; background:var(--card); border:2px solid var(--gold); border-radius:12px; overflow:hidden; }
.lex-x { position:absolute; top:6px; right:8px; z-index:2; width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--cream); font-size:1.1rem; line-height:1; cursor:pointer; }
.lex-x:hover { border-color:#ef4444; color:#ef4444; }
.lex-panel iframe { flex:1; width:100%; border:0; background:transparent; }
@media (max-width:860px) { .lex-panel { position:fixed; left:8px; right:8px; bottom:72px; top:auto; height:58vh; z-index:90; box-shadow:0 8px 30px rgba(0,0,0,.5); } }
.judean-highlight { background:var(--sun-tint); }
.il-e.highlight { color:var(--cream); font-weight:700; background:var(--sun-tint); padding:.1rem .28rem; border-radius:4px; box-shadow:inset 0 -2px 0 var(--sun); }
@media (max-width:768px) { .il-h { font-size:1.4rem; } .il-wrap { gap:.55rem .8rem; } }

/* Cards open and close */
.chev { margin-left:auto; color:var(--muted); display:inline-flex; transition:transform .2s; flex-shrink:0; }
.open > .it-head .chev, .proof-card.open .chev { transform:rotate(180deg); }
.it-head { width:100%; background:none; border:none; padding:0; color:inherit; cursor:pointer; text-align:left; font:inherit; }
.it-body { margin-top:10px; }
.proof-top { cursor:pointer; }
.proof-kjv { cursor:pointer; }
.pc-more { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
.pc-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; }
/* Upgrade prompt where Scripture audio would be (free accounts) */
html body a.up-audio { margin-right:auto; padding:5px 12px; border-radius:16px; border:1px dashed var(--gold); color:var(--gold) !important;
    font-size:0.78rem; font-weight:600; text-decoration:none; background:rgba(255,215,0,0.06); }
html body a.up-audio:hover { border-style:solid; color:var(--gold) !important; }

/* Syntax rule chips in the save form */
.rule-chip { cursor:pointer; background:transparent; border:1px solid var(--line); color:var(--cream); font-family:inherit; }
.rule-chip .s { color:var(--rc); }
.rule-chip:hover { border-color:var(--rc); }
.rule-chip.on { background:var(--rc); border-color:var(--rc); color:var(--bg); font-weight:700; }
.rule-chip.on .s { color:var(--bg); }
/* Off = plain black (light theme) / white (dark theme). Forced, so light-theme.js can't fade them */
body .rule-chip:not(.on) { color:#ffffff !important; background:transparent !important; border-color:var(--line) !important; opacity:1 !important; }
body.light-theme .rule-chip:not(.on) { color:#111111 !important; border-color:#b8a98c !important; }
body .rule-chip:not(.on) .s { color:inherit !important; }
body .rule-chip.on { background:var(--rc) !important; border-color:var(--rc) !important; color:var(--bg) !important; opacity:1 !important; }
body .rule-chip.on .s { color:var(--bg) !important; }

/* ════ LIGHT THEME: comfortable reading ════
   light-theme.js forces its own (greyer) values for these names with !important,
   so this page states its own colors more firmly ("html body" wins over "body").
   Text is near-black, soft text is dark brown (not grey). */
html body.light-theme {
    --bg:#f5f0e8 !important; --card:#ede6d6 !important; --card2:#f7f2e8 !important; --line:#bfae8c !important;
    --gold:#7a5300 !important; --cream:#1a1410 !important; --muted:#3a3020 !important;
    --sky:#0a5a8a !important; --lilac:#5a2a9a !important; --green:#166534 !important; --pink:#a3245e !important;
    --purple2:#5a3a9a !important;
    --morpheme-white:#1a1410 !important; --morpheme-blue:#1a5a8a !important; --morpheme-orange:#b45309 !important;
    --sun:#8a5a00 !important; --sun-tint:rgba(240,168,24,.25) !important;
    color:#1a1410 !important;
}
/* Dark buttons keep white words, in both themes */
html body .tp-search button, html body .btn-main, html body .btn-ask, html body a.btn-ask, html body a.btn-main { color:#ffffff !important; }
html body .tp-search button { background:#0a72b2 !important; }
html body.light-theme .tp-search button { background:#0a5a8a !important; }
html body.light-theme .btn-rebuild { background:#8a5a00 !important; border-color:#6b4500 !important; color:#ffffff !important; }
html body.light-theme .rule-chip.on, html body.light-theme .rule-chip.on .s { color:#ffffff !important; }
/* Soft text: dark enough to read */
html body.light-theme .il-e, html body.light-theme .empty, html body.light-theme .sec-label .count, html body.light-theme .sub,
html body.light-theme .it-foot, html body.light-theme .form label, html body.light-theme .form .note,
html body.light-theme .req .txt small, html body.light-theme .ask-more { color:#3a3020 !important; }
html body.light-theme .it-notes, html body.light-theme .proof-kjv, html body.light-theme .it-ref em, html body.light-theme .hero-eng,
html body.light-theme .rb-g, html body.light-theme .chip-eng, html body.light-theme .morph-table td { color:#1a1410 !important; }
html body.light-theme .sec-label { color:#7a5300 !important; }
html body.light-theme input::placeholder, html body.light-theme textarea::placeholder { color:#5a4e3a !important; }
html body a.btn-ask:hover { color:#ffffff !important; }
html body.light-theme .hero { background: var(--card2) !important; }
/* Unpicked / removed words: no fading — readable, shown with a dashed edge */
html body.light-theme .rb-unpicked { opacity: 1 !important; border-style: dashed !important; background: transparent !important; }
html body.light-theme .rb-removed { opacity: 1 !important; color:#5a4e3a !important; }

/* Supporter note */
.lock { text-align: center; padding: 6px 4px; }
.lock p { margin: 0 0 10px; font-size: 0.9rem; }
.up-list { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; display: inline-block; font-size: 0.88rem; line-height: 1.8; }
html body a.up-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 8px; padding: 9px 12px;
    border-radius: 9px; border: 1px dashed var(--gold); background: rgba(255,215,0,0.06); color: var(--cream) !important; text-decoration: none; font-size: 0.82rem; line-height: 1.4; }
html body a.up-banner b { flex-shrink: 0; padding: 5px 12px; border-radius: 14px; background: var(--purple2); color: #ffffff !important; font-size: 0.78rem; }
html body a.up-banner:hover { border-style: solid; color: var(--cream) !important; }
.lock .btn-ask { display: inline-block; text-decoration: none; }
.lock-pop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lock-card { background: var(--card); border: 2px solid var(--gold); border-radius: 14px; padding: 18px; max-width: 340px; width: 100%; text-align: center; }
.lock-card .btn-sm { margin-top: 10px; }
.hear-ipa { margin: 8px auto 0; max-width: 520px; font-size: 0.95rem; letter-spacing: .02em; color: var(--muted); word-break: break-word; font-family: 'Noto Sans', 'Segoe UI', sans-serif; }
.cm-card { max-width: 420px; max-height: 86vh; overflow-y: auto; text-align: left; }
.cm-cat { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.cm-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cm-row input { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg, transparent); color: var(--cream); font-size: 0.88rem; }
.cm-sub { margin-left: 16px; }
.cm-card .btn-sm { margin-top: 0; }

/* Footer follows the theme */
footer { background: transparent; }
html:has(body.light-theme) { background: #f5f0e8 !important; }
body.light-theme footer { background: #ede6d6 !important; border-top: 1px solid #c4baa8 !important; color: #5a4e3a !important; }
body.light-theme footer a { color: #5a3a9a !important; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 2px solid var(--green); color: var(--cream);
         padding: 10px 18px; border-radius: 10px; z-index: 5000; font-size: 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.4); max-width: 90vw; }

@media (max-width: 600px) {
    .tp-title h1 { font-size: 1.45rem; }
    .tp-search input { font-size: 1rem; padding: 10px 12px; }
    .it-jud, .hero-jud { font-size: 1.6rem; }
    .box, .form { padding: 11px; }
    .rb-j { font-size: 1.25rem; }
}


/* Translations (the cards, the word glosses, the word chips) use the Manakahthey font, like the Bible search */
#itSection, #itSection *, .il-e, .il-wrap, .chip-eng, .it-w .g { font-family: 'Manakahthey', 'Noto Sans Hebrew', 'Segoe UI', system-ui, sans-serif; }

/* Attestation badge on a translation card: proven by a verse, or built by an attested rule */
.it-attest { font-size: .85rem; line-height: 1.4; padding: 5px 9px; border-radius: 7px; margin: 8px 0 4px; }
.it-attest.verse { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--text); }
.it-attest.rule  { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--text); }

/* "Add a prefix / ending" row in the rebuild word panel (mirror of the remove buttons) */
.rb-addfix { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.rb-addfix .rb-btn { font-size: .78rem; padding: 2px 7px; }

/* "Listen" button (equalizer) under the Judean line on a translation card — hear it without opening "Use this" */
.it-say { margin: 7px 0 2px; }
.it-listen { display: inline-flex; align-items: center; gap: 8px; padding: 5px; background: transparent;
    border: none; cursor: pointer; font: inherit; font-size: .9rem; color: #bcdcff; }   /* dark theme text */
.it-listen .play-lbl { font-weight: 500; }
.eq-chip { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 8px; background: #2f6fb0; }                                          /* dark theme chip */
.eqbars { display: inline-flex; gap: 2px; align-items: flex-end; height: 15px; }
.eqbars span { width: 3px; height: 15px; border-radius: 2px; background: #fff; transform-origin: bottom; display: block; transform: scaleY(.45); }
body.light-theme .it-listen { color: #0b3a66; }   /* light theme text */
body.light-theme .eq-chip { background: #0b5aa0; } /* light theme chip: strong blue */
@keyframes eqSway { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
    .eqbars span { animation: eqSway 3.6s ease-in-out infinite; }
    .eqbars span:nth-child(2) { animation-delay: .6s; }
    .eqbars span:nth-child(3) { animation-delay: 1.2s; }
}

/* My lists: Category → List → ordered lines */
.ml-cat { margin: 2px 0 14px; }
.ml-cat-h { font-weight: 600; font-size: 1.05rem; margin: 10px 0 6px; border-bottom: 1px solid var(--b); padding-bottom: 3px; }
.ml-list { margin: 0 0 10px 6px; }
.ml-list-h { font-weight: 500; opacity: .9; margin: 8px 0 4px; display: flex; align-items: center; gap: 8px; }

/* Suggest word order panel */
.syn-offer { margin-left: 4px; }
.syn-note { font-size: .9rem; color: var(--cream); margin: 4px 0 10px; }
.syn-line { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.syn-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); cursor: grab; }
.syn-chip.syn-unk { border-style: dashed; border-color: #a8760f; }
.syn-chip.syn-unk .syn-j, .syn-chip.syn-unk .syn-e { color: var(--cream); }
.syn-j { font-size: 1.5rem; line-height: 1.2; }
.syn-e { font-size: .82rem; color: var(--cream); direction: ltr; }
.syn-mv button { border: none; background: transparent; color: var(--gold); font-size: 1.1rem; cursor: pointer; padding: 0 3px; }
.syn-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.syn-learn { font-size: .85rem; margin: 6px 0 0; }

/* Suggest word order: unknown / coined word controls */
.syn-chip.syn-coined { border-color: #c58a00; }
.syn-fix { display: flex; gap: 4px; margin-top: 4px; }
.syn-fix select, .syn-fix input { font-size: .86rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card2); color: var(--cream); max-width: 100px; }

/* Judean keyboard popup for an unknown word in the word-order panel */
.syn-kb-btn { font-size: .95rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card2); color: var(--cream); cursor: pointer; }
.syn-kb-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.syn-kb-box { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 16px; max-width: 94vw; width: 420px; }
.syn-kb-ttl { font-size: .95rem; color: var(--cream); margin-bottom: 8px; }
.syn-kb-show { min-height: 2rem; font-size: 1.8rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px; margin-bottom: 10px; background: var(--bg); }
.syn-kb-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }

/* "Find it in Scripture" results from a typed Judean word */
.syn-find-btn { border: none; background: transparent; cursor: pointer; font-size: 1rem; padding: 0 4px; }
.syn-form { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.syn-form-j { font-size: 1.5rem; min-width: 70px; }
.syn-form-n { color: var(--muted); font-size: .85rem; }
.syn-form a { color: var(--sky); text-decoration: none; }

/* Rebuild: collapsible "Forms in Scripture" + "built to match" form chip */
.rb-forms-toggle { background: transparent; border: none; color: var(--gold); cursor: pointer; font: inherit; font-size: .95rem; padding: 4px 0; }
.rb-chip.rb-built { border-color: #c58a00; }

/* Gender/number of the word being switched, in the rebuild panel */
.rb-gender { color: var(--gold); font-weight: 600; }

.mine-more { display: block; margin: 14px auto; }
.ml-add { margin: 8px 0 12px; }
.ml-add #mlAddQ { width: 100%; }
.ml-add-hit { display: block; width: 100%; text-align: left; margin: 4px 0; }
.ml-add-form { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ml-add-form input { width: 100%; }
