/* Konfigurátor vnějších vlivů */
.vr-extinf-row{display:flex;gap:8px;align-items:center;width:100%;flex-wrap:wrap}
.vr-extinf-row input{flex:1;min-width:140px}
.vr-extinf-open,.vr-extinf-from-vv{white-space:nowrap;flex:0 0 auto}
.vr-extinf-from-vv-list{display:grid;gap:8px;max-height:min(50vh,420px);overflow:auto}
.vr-extinf-from-vv-item{
  display:grid;gap:4px;text-align:left;width:100%;
  border:1px solid #334155;background:#1a222c;color:#e2e8f0;
  border-radius:10px;padding:10px 12px;cursor:pointer;font:inherit;
}
.vr-extinf-from-vv-item:hover{border-color:#3b82f6;background:#1e293b}
.vr-extinf-from-vv-item strong{font-size:13px}
.vr-extinf-from-vv-item .codes{font-size:12px;color:#93c5fd;word-break:break-word}
.vr-extinf-from-vv-item .meta{font-size:11px;color:#94a3b8}
html[data-vr-theme="light"] .vr-extinf-from-vv-item{background:#fff;color:#1f2937;border-color:#cbd5e1}
html[data-vr-theme="light"] .vr-extinf-from-vv-item:hover{border-color:#2563eb;background:#eff6ff}
html[data-vr-theme="light"] .vr-extinf-from-vv-item .codes{color:#1d4ed8}

.vr-ei-overlay{
  display:none;position:fixed;inset:0;z-index:12050;
  background:rgba(0,0,0,.72);align-items:stretch;justify-content:center;
  padding:12px;box-sizing:border-box;
}
.vr-ei-overlay.is-open{display:flex}
.vr-ei-modal{
  background:#12161c;border:1px solid #2d3a47;border-radius:12px;
  width:min(1100px,100%);max-height:calc(100vh - 24px);
  display:flex;flex-direction:column;color:#e8eef5;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
}
.vr-ei-head{
  padding:12px 16px;border-bottom:1px solid #253340;
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;
}
.vr-ei-head h2{margin:0;font-size:1.15rem;color:#fff}
.vr-ei-sub{margin:4px 0 0;font-size:12px;color:#9fb3c6;max-width:72ch;line-height:1.4}
.vr-ei-tabs{display:flex;gap:6px;padding:10px 16px 0;flex-wrap:wrap}
.vr-ei-tab{
  border:1px solid #334155;background:#1a222c;color:#cfe0f2;
  border-radius:999px;padding:5px 12px;font-size:13px;cursor:pointer;
}
.vr-ei-tab.is-active{background:#1d4ed8;border-color:#3b82f6;color:#fff}
.vr-ei-body{padding:12px 16px;overflow:auto;flex:1;min-height:0}
.vr-ei-foot{
  padding:10px 16px;border-top:1px solid #253340;
  display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;align-items:center;
}
.vr-ei-selected{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;min-height:28px}
.vr-ei-chip{
  display:inline-flex;align-items:center;gap:4px;
  border:1px solid #3b82f6;background:rgba(59,130,246,.15);
  color:#bfdbfe;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;
}
.vr-ei-chip button{
  border:0;background:transparent;color:#93c5fd;cursor:pointer;font-size:14px;line-height:1;padding:0 2px;
}
.vr-ei-chip.is-incomplete{border-color:#b45309;background:rgba(180,83,9,.18);color:#fde68a}
.vr-ei-groups{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:12px;min-height:320px}
.vr-ei-nav{border:1px solid #253340;border-radius:10px;overflow:auto;max-height:52vh;background:#0e131a}
.vr-ei-nav button{
  display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #1e293b;
  background:transparent;color:#cbd5e1;padding:8px 10px;cursor:pointer;font-size:13px;
}
.vr-ei-nav button.is-active{background:#1e3a5f;color:#fff}
.vr-ei-nav button .vr-ei-badge{float:right;opacity:.7;font-size:11px}
.vr-ei-panel{border:1px solid #253340;border-radius:10px;padding:12px;background:#0e131a;overflow:auto;max-height:52vh}
.vr-ei-panel h3{margin:0 0 6px;font-size:1rem}
.vr-ei-notes{font-size:12px;color:#9fb3c6;margin:0 0 10px;line-height:1.4}
.vr-ei-warn{
  border:1px solid #b45309;background:rgba(180,83,9,.15);color:#fde68a;
  border-radius:8px;padding:8px 10px;font-size:12px;margin-bottom:10px;line-height:1.4;
}
.vr-ei-classes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.vr-ei-class{
  border:1px solid #334155;background:#1a222c;color:#e2e8f0;
  border-radius:10px;padding:8px 10px;min-width:120px;max-width:220px;cursor:pointer;
  text-align:left;font-size:12px;line-height:1.35;
}
.vr-ei-class strong{display:block;font-size:13px;margin-bottom:2px}
.vr-ei-class.is-on{border-color:#22c55e;background:rgba(34,197,94,.12);box-shadow:0 0 0 1px rgba(34,197,94,.35)}
.vr-ei-class.is-incomplete{border-style:dashed}
.vr-ei-templates{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.vr-ei-tpl{
  border:1px solid #334155;border-radius:10px;padding:10px;background:#0e131a;cursor:pointer;
  text-align:left;color:inherit;
}
.vr-ei-tpl:hover{border-color:#3b82f6}
.vr-ei-tpl h4{margin:0 0 4px;font-size:14px;color:#fff}
.vr-ei-tpl .muted{font-size:12px;color:#94a3b8;line-height:1.35}
.vr-ei-tpl .ip{margin-top:6px;font-weight:800;color:#93c5fd;font-size:13px}
.vr-ei-result{
  border:1px solid #253340;border-radius:10px;padding:12px;background:#0e131a;font-size:13px;line-height:1.45;
}
.vr-ei-result table{width:100%;border-collapse:collapse}
.vr-ei-result td{padding:4px 6px;border-bottom:1px solid #1e293b;vertical-align:top}
.vr-ei-result td:first-child{color:#94a3b8;width:38%}
.vr-ei-foot .vr-ei-hint{flex:1;font-size:12px;color:#94a3b8;min-width:160px}

html[data-vr-theme="light"] .vr-ei-modal{background:#fff;border-color:#cbd8ea;color:#1f2937}
html[data-vr-theme="light"] .vr-ei-head,
html[data-vr-theme="light"] .vr-ei-foot{border-color:#d7e2ef;background:#f7faff}
html[data-vr-theme="light"] .vr-ei-head h2{color:#0f172a}
html[data-vr-theme="light"] .vr-ei-nav,
html[data-vr-theme="light"] .vr-ei-panel,
html[data-vr-theme="light"] .vr-ei-tpl,
html[data-vr-theme="light"] .vr-ei-result{background:#f8fafc;border-color:#d7e2ef}
html[data-vr-theme="light"] .vr-ei-nav button{color:#334155;border-bottom-color:#e2e8f0}
html[data-vr-theme="light"] .vr-ei-nav button.is-active{background:#dbeafe;color:#1e3a8a}
html[data-vr-theme="light"] .vr-ei-class{background:#fff;color:#1f2937;border-color:#cbd5e1}
html[data-vr-theme="light"] .vr-ei-class.is-on{background:#ecfdf5;border-color:#22c55e}

@media (max-width:820px){
  .vr-ei-groups{grid-template-columns:1fr}
  .vr-ei-nav{max-height:140px;display:flex;flex-wrap:nowrap;overflow-x:auto}
  .vr-ei-nav button{width:auto;white-space:nowrap;border-bottom:0;border-right:1px solid #1e293b}
}
