/* Keep a restrained glass tint while preventing page text from bleeding through. */
@media screen {
 #modal,#modal.analysis-modal,#modal.processing-modal,#modal.preferences-modal {
  background:linear-gradient(140deg,rgb(36 58 73 / .97),rgb(16 33 45 / .97));
  backdrop-filter:blur(40px) saturate(.65);-webkit-backdrop-filter:blur(40px) saturate(.65);
  box-shadow:0 26px 100px #0009,inset 0 1px #e4f2f61a;
 }
 #modal::backdrop{background:rgb(5 15 24 / .76);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
 #modal .modal-heading,#modal .modal-actions{background:rgb(25 45 59 / .97)}
 .research-panel{font-size:13px;line-height:1.75;color:var(--ui-text);overflow-wrap:anywhere}
 .research-panel h3{font-size:16px;line-height:1.6;margin:12px 0}
 .research-panel h3 span{color:var(--ui-muted);font-weight:400;margin:0 8px}
 .research-panel a{color:#a4daca;text-decoration:underline;text-underline-offset:3px}
 .research-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .research-filters [aria-pressed=true]{border-color:#a4daca;background:#a4daca20;color:#dff5ed}
 .research-meta,.research-match small,.research-team small,.research-sources small{font-size:11px;color:var(--ui-muted)}
 .research-match,.research-sources article,.research-team{padding:20px 0;border-top:1px solid var(--ui-border)}
 .upset-directions,.research-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}
 .upset-directions>div{padding:14px;border:1px solid var(--ui-border);border-radius:10px;background:#e4edef06}
 .upset-directions strong,.upset-directions small{display:block}
 .upset-directions b{float:right;font-size:20px;color:#e9cfa8}
 .research-match details{margin-top:12px;font-size:11px;color:var(--ui-muted)}
 .research-fixtures{display:grid;gap:8px}
 .research-fixture{display:flex;flex-direction:column;text-align:left;padding:14px;background:#e4edef06;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text);font:inherit;cursor:pointer}
 .research-fixture small{color:var(--ui-muted);margin-top:5px}
 .research-result{display:flex;gap:10px;font-size:12px;padding:9px 0;border-bottom:1px solid var(--ui-divider)}
 .research-result small{display:block}
 @media(max-width:700px){.research-teams,.upset-directions{grid-template-columns:1fr}}
}
