/* HORIZON 30.9 — painel de identidade por instituição; isolado da navegação. */
body.hsg309-open{overflow:hidden}
#horizon-sge-app .hsg309-overlay[hidden]{display:none!important}
#horizon-sge-app .hsg309-overlay{position:fixed;inset:0;z-index:2147481000;background:rgba(1,20,42,.68);display:flex;justify-content:center;align-items:center;padding:20px}
#horizon-sge-app .hsg309-panel{background:#fff;color:#163653;width:min(1050px,96vw);max-height:92vh;overflow:auto;border:1px solid #bfdaed;border-radius:18px;box-shadow:0 20px 80px rgba(0,20,46,.28);padding:24px}
#horizon-sge-app .hsg309-head{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #dae8f2;padding-bottom:16px;margin-bottom:16px}
#horizon-sge-app .hsg309-head small{font-weight:800;color:#1A75D3;letter-spacing:.08em}
#horizon-sge-app .hsg309-head h2{color:#004A99;font-size:24px;margin:6px 0}
#horizon-sge-app .hsg309-head p{color:#647d98;font-size:13px;margin:0}
#horizon-sge-app #hsg309Close{border:0;background:#eff6ff;border-radius:10px;width:38px;height:38px;color:#004A99;cursor:pointer;font-size:24px;flex:0 0 auto}
#horizon-sge-app .hsg309-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}
#horizon-sge-app .hsg309-fields label{font-size:13px;font-weight:700;color:#274561;display:flex;gap:6px;flex-direction:column}
#horizon-sge-app .hsg309-fields input{border:1px solid #bcd2e6;border-radius:9px;padding:11px;background:#fff;color:#173654;width:100%;box-sizing:border-box}
#horizon-sge-app .hsg309-fields input:focus{outline:2px solid #1A75D3;outline-offset:1px}
#horizon-sge-app .hsg309-logos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#horizon-sge-app .hsg309-logo{border:1px solid #c8d9e9;padding:14px;border-radius:12px;background:#f8fbff;display:flex;flex-direction:column;gap:12px;font-size:13px}
#horizon-sge-app .hsg309-logo strong{color:#173b5d;min-height:34px}
#horizon-sge-app .hsg309-preview{height:105px;border-radius:9px;border:1px dashed #b8cfe4;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#667f9b;font-size:12px}
#horizon-sge-app .hsg309-preview img{max-width:100%;max-height:100%;object-fit:contain}
#horizon-sge-app .hsg309-upload{display:inline-flex;padding:10px;background:#004A99;color:#fff!important;border-radius:8px;cursor:pointer;justify-content:center;text-align:center;font-weight:700}
#horizon-sge-app .hsg309-clear{background:transparent;border:1px solid #b6cee5;padding:8px;border-radius:8px;color:#004A99;cursor:pointer}
#horizon-sge-app .hsg309-foot{display:flex;justify-content:space-between;align-items:center;gap:14px;position:sticky;bottom:-24px;background:#fff;border-top:1px solid #d7e5f1;padding:15px 0 7px;margin-top:20px}
#horizon-sge-app #hsg309Status{font-size:12px;color:#236f54}#horizon-sge-app #hsg309Status.error{color:#c0392b}
#horizon-sge-app .hsg309-save{background:#004A99;color:#fff!important;border:0;border-radius:10px;padding:12px 24px;cursor:pointer;font-weight:800}
#horizon-sge-app .hsg309-save:disabled{opacity:.5;cursor:wait}
:is(#horizon-sge-app.hsg-dark,#horizon-sge-app[data-hsg-theme="dark"]) .hsg309-panel{background:#13273b;color:#ebf2f9;border-color:#355a7f}
:is(#horizon-sge-app.hsg-dark,#horizon-sge-app[data-hsg-theme="dark"]) .hsg309-head h2,:is(#horizon-sge-app.hsg-dark,#horizon-sge-app[data-hsg-theme="dark"]) .hsg309-fields label,:is(#horizon-sge-app.hsg-dark,#horizon-sge-app[data-hsg-theme="dark"]) .hsg309-logo strong{color:#e9f5ff}
:is(#horizon-sge-app.hsg-dark,#horizon-sge-app[data-hsg-theme="dark"]) :is(.hsg309-logo,.hsg309-preview,.hsg309-fields input,.hsg309-foot){background:#1c3249;color:#e9f5ff;border-color:#406184}
@media(max-width:760px){#horizon-sge-app .hsg309-fields{grid-template-columns:1fr}#horizon-sge-app .hsg309-logos{grid-template-columns:repeat(2,minmax(0,1fr))}#horizon-sge-app .hsg309-panel{padding:16px}}
@media(max-width:480px){#horizon-sge-app .hsg309-logos{grid-template-columns:1fr}#horizon-sge-app .hsg309-overlay{padding:7px}#horizon-sge-app .hsg309-foot{flex-direction:column;align-items:stretch}}
