.hep-subject-fields{min-width:0;border:1px solid #d2e0f2;border-radius:16px;padding:16px;margin:0 0 16px;box-sizing:border-box}
.hep-subject-fields legend{width:auto;font-size:16px;font-weight:800;color:inherit;padding:0 6px}
.hep-subject-fields>label{display:block;margin:0 0 12px}.hep-subject-fields select{display:block;width:100%;max-width:100%;padding:12px;border:1px solid #bfd1e8;border-radius:10px;background:#fff;color:#0b2a5b;margin-top:8px}
.hep-subject-fields summary{font-weight:700;cursor:pointer;margin:8px 0 12px}.hep-subject-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hep-subject-options label{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:9px!important;border:1px solid #d2e0f2;border-radius:10px;font-size:12px;line-height:1.4;min-width:0}
.hep-subject-options input[type=checkbox]{width:17px!important;height:17px!important;min-height:0!important;flex:0 0 17px;margin:0!important;accent-color:#ff7417}
.hep-subject-options label:has(input:checked){border-color:#ff7417;background:#fff3e8;color:#0b2a5b}.hep-subject-fields small{display:block;margin-top:12px;line-height:1.5}
.hep-subject-tags{display:inline-flex;flex-wrap:wrap;gap:5px;max-width:100%;vertical-align:middle}
.hep-subject-tag{display:inline-block!important;padding:4px 8px!important;background:#fff0e3!important;color:#ac4700!important;border:1px solid #ffdbc0!important;border-radius:9px;font-size:12px!important;line-height:1.4!important;font-weight:700!important;white-space:normal!important;overflow-wrap:anywhere}
body.hm-frontpage #hm-teachers .hep-premium-card-head-v2 .hep-home-teacher-branch-p1{background:transparent!important;padding:0!important;border:0!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;border-radius:0!important}
body.hm-frontpage #hm-teachers .hep-subject-tag{font-size:10px!important;padding:3px 6px!important}
html[data-hep-theme=dark] .hep-subject-fields{border-color:#365373}html[data-hep-theme=dark] .hep-subject-fields select{background:#13243a;color:#f4f8ff;border-color:#365373}
html[data-hep-theme=dark] .hep-subject-options label{border-color:#365373}html[data-hep-theme=dark] .hep-subject-options label:has(input:checked){background:#4b2c1d;color:#fff4e8}
html[data-hep-theme=dark] .hep-subject-tag{background:#4b2c1d!important;color:#ffceaa!important;border-color:#8b5530!important}
@media(max-width:560px){.hep-subject-options{grid-template-columns:1fr}.hep-subject-fields{padding:12px}.hep-subject-tag{font-size:11px!important}}
