/* Text keyword statistics and on-demand JSON entries (bilingual, responsive). */
.text-analyzer-workspace{min-width:0}
.text-keywords{display:grid;gap:13px;margin-top:18px;padding:clamp(12px,2.2vw,20px);border:1px solid rgba(103,214,157,.29);border-radius:16px;background:rgba(10,30,21,.72);color:#daf5e3;min-width:0}
.text-keywords header h3{margin:0 0 4px;font-size:clamp(17px,2vw,21px)}
.text-keywords header p{margin:0;color:#aac8b6;font-size:13px;line-height:1.6}
.text-keyword-options{display:flex;flex-wrap:wrap;gap:13px;align-items:center}
.text-keyword-options label{display:flex;align-items:center;gap:9px;font-size:13px}
.text-keyword-options select{min-height:43px;padding:6px 10px;background:#142b20;color:#ecfff1;border-radius:9px;border:1px solid #4d8464}
.text-keyword-checkbox{flex-wrap:wrap}
.text-keyword-table{overflow-x:auto;border:1px solid #284b36;border-radius:10px}
.text-keyword-table table{width:100%;border-collapse:collapse;text-align:start;min-width:330px}
.text-keyword-table caption{padding:10px;text-align:start;font-size:12px;color:#a6d4b7}
.text-keyword-table th,.text-keyword-table td{padding:10px 12px;border-top:1px solid rgba(118,187,135,.18);text-align:start;font-size:13px}
.text-keyword-table th{font-weight:750;color:#bcf4d1}
.text-keyword-table td:first-child{font-weight:650;unicode-bidi:plaintext}
.text-keywords>label{display:grid;gap:8px;font-size:13px}
.text-keywords>label input{box-sizing:border-box;width:100%;max-width:500px;padding:11px 13px;border-radius:10px;border:1px solid #4d8464;background:#142b20;color:#eaffef}
#textTargetResult{font-size:13px;color:#9ee7bd}
.lab4-json-load-more{display:block;width:min(100%,420px);padding:11px 16px;margin:10px auto;border:1px solid #468e63;border-radius:9px;min-height:44px;background:#183927;color:#d9ffeb;font-weight:680;cursor:pointer}
.lab4-json-load-more:hover{background:#29583b}
.lab4-json-load-more:focus-visible,.text-keywords input:focus-visible,.text-keywords select:focus-visible{outline:2px solid #8bf5bd;outline-offset:2px}
.lab4-json-page-hint{margin:8px 0 12px;color:#acd6bd;font-size:12px;line-height:1.6}
@media(max-width:560px){.text-keyword-options{align-items:stretch;flex-direction:column}.text-keyword-options label{width:100%;justify-content:space-between}.text-keyword-table th,.text-keyword-table td{padding:10px 8px}}

/* Search the entire locally loaded JSON using a persistent Worker. */
.lab4-json-deep-search{display:grid;gap:11px;margin:15px 0;padding:15px;border:1px solid #4b8861;border-radius:13px;background:#112c1d}
.lab4-json-deep-search[hidden]{display:none}
.lab4-json-deep-search h4,.lab4-json-deep-search p{margin:0}
.lab4-json-deep-search p,.lab4-json-deep-search output{font-size:13px;color:#afdcc1}
.lab4-json-deep-search label{display:grid;gap:8px}
.lab4-json-deep-search input{padding:12px;border:1px solid #4e8b62;border-radius:9px;color:#e9ffed;background:#0c2417}
.lab4-json-deep-search>button{width:fit-content;min-height:42px;padding:9px 16px;border-radius:9px;background:#184d2e;color:#f1fff5;border:1px solid #74b287;cursor:pointer}
.lab4-json-deep-search ol{margin:0;padding-inline-start:23px;display:grid;gap:10px;max-height:520px;overflow-y:auto}
.lab4-json-deep-search li{padding:11px 8px;border-bottom:1px solid #355940;overflow-wrap:anywhere}
.lab4-json-deep-search li code{display:block;margin-bottom:5px;color:#a7f2c0}
.lab4-json-deep-search li button{margin:5px 6px;padding:6px 10px;border:1px solid #5c9170;border-radius:7px;color:#edfff2;background:#204832;min-height:34px;cursor:pointer}
.lab4-json-deep-search :is(button,input):focus-visible{outline:2px solid #b0ffce;outline-offset:2px}

/* Local text-file import + export: compact, responsive, keyboard reachable. */
.text-file-workbench{display:grid;gap:12px;margin:14px 0;padding:clamp(13px,2vw,20px);border:1px solid #3d805b;border-radius:14px;background:#0f271b}
.text-file-import{display:grid;gap:8px;font-size:14px;font-weight:650;color:#d9f6df}
.text-file-import input{width:100%;max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:9px;border:1px solid #5c9670;border-radius:9px;background:#10281c;color:#eaffef}
.text-file-actions{display:flex;flex-wrap:wrap;gap:9px}
.text-file-actions button{min-height:43px;border-radius:9px}
.text-file-status{display:block;overflow-wrap:anywhere;font-size:13px;line-height:1.65;color:#c0dbca}
#toolInput.text-file-drop-active{outline:3px dashed #9fedb6;outline-offset:3px}
.text-file-workbench :is(input,button):focus-visible{outline:2px solid #b4ffd0;outline-offset:3px}
@media(max-width:560px){.text-file-actions button{flex:1 1 100%}}
