/* Scoped additions: existing dashboard and research styles remain untouched. */
main>.tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}
main>.tabs>.tab{flex:0 0 auto;width:auto!important;white-space:nowrap!important}
@media(max-width:760px){
 main>.tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important}
 main>.tabs>.tab{width:100%!important;min-width:0!important;white-space:normal!important;min-height:44px!important;padding:8px 4px!important;overflow-wrap:anywhere}
}
.toolGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.toolCard,.educationCard{border:1px solid #34445e;border-radius:16px;padding:18px;background:#0c1626;color:#e5efff;min-width:0}
.toolCard>summary,.educationCard>summary{font-size:17px;font-weight:800;cursor:pointer;line-height:1.5}
.toolCard[open]>summary,.educationCard[open]>summary{margin-bottom:12px}
.toolFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.toolCard label{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:0}
.toolCard input,.toolCard select{width:100%;min-width:0}
.toolCard label[hidden]{display:none}
.toolCard p,.educationCard p,.educationCard li{color:#b9cbe4;line-height:1.6}
.toolNote{font-size:12px}.toolResult{margin-top:14px;overflow-wrap:anywhere;line-height:1.6}
.toolResult:empty{display:none}.toolError{color:#ffb0b0}.toolCard button:disabled{opacity:.6;cursor:wait}
.toolTableWrap{overflow:auto;max-height:420px;margin:12px 0;border:1px solid #34445e;border-radius:10px}
.toolTableWrap table{width:100%;border-collapse:collapse;font-size:13px}
.toolTableWrap th,.toolTableWrap td{padding:9px;text-align:left;border-bottom:1px solid #34445e;white-space:nowrap}
.toolTableWrap th{background:#16243a}.toolFree{font-size:12px;border:1px solid #53b6a1;border-radius:6px;padding:3px 7px;vertical-align:middle}
.educationGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.educationLinks{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.publicTools a,.educationCard a{color:#8ed4ff;text-decoration:underline}
.toolCard summary:focus-visible,.educationCard summary:focus-visible{outline:2px solid #6ea0ff;outline-offset:4px}
body.ui-light .toolCard,body.ui-light .educationCard{background:#fff;color:#12243a;border-color:#bacde4}
body.ui-light .toolCard p,body.ui-light .educationCard p,body.ui-light .educationCard li{color:#38516e}
body.ui-light .toolCard input,body.ui-light .toolCard select{background:#f4f8ff;color:#142b48;border-color:#9eb6d5}
body.ui-light .toolTableWrap,body.ui-light .toolTableWrap td,body.ui-light .toolTableWrap th{border-color:#bacde4}
body.ui-light .toolTableWrap th{background:#eaf1fd;color:#142b48}
body.ui-light .publicTools a,body.ui-light .educationCard a{color:#1855a1}
body.ui-light .toolError{color:#a51d31}
@media(max-width:760px){.toolGrid,.educationGrid{grid-template-columns:1fr}.toolCard,.educationCard{padding:14px}}
@media(max-width:420px){.toolFields{grid-template-columns:1fr}}
