.cg-reference-institution{min-height:100vh;background:var(--bg);color:var(--text);font-family:var(--sans)}
.cg-reference-institution .app{grid-template-columns:268px minmax(0,1fr);background:var(--bg)}
.cg-reference-institution .side{background:var(--bg-2);border-color:var(--line)}
.cg-reference-institution .side__brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}
.cg-reference-institution .cg-reference-mark,.cg-reference-institution .cg-reference-mark svg{display:block;width:36px;height:36px}
.cg-reference-institution .side__link{color:var(--text-2);text-decoration:none}
.cg-reference-institution .side__link.is-active{color:var(--text);background:var(--gold-soft)}
.cg-reference-institution .app__main{min-width:0;background:var(--bg)}
.cg-reference-institution .top{min-height:68px;background:var(--glass);border-bottom:1px solid var(--line)}
.cg-reference-institution .top__actions{display:flex;align-items:center;gap:16px}
.cg-reference-institution .app__content{display:block;width:100%;max-width:1320px;margin:0 auto;padding:clamp(24px,3vw,40px) clamp(20px,3vw,40px) 70px}
.cg-reference-institution .page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:28px}
.cg-reference-institution .page-head .h1{font:600 clamp(32px,3.5vw,48px)/1.12 var(--serif);color:var(--text)}
.cg-reference-institution .page-head>div>p:last-child{max-width:720px;color:var(--text-2)}
.cg-reference-institution .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cg-reference-institution .kpi{display:grid;gap:7px;padding:20px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}
.cg-reference-institution .kpi span,.cg-reference-institution .kpi small{font:500 12px var(--mono);color:var(--text-3)}
.cg-reference-institution .kpi strong{font:600 28px var(--serif);color:var(--text)}
.cg-reference-institution .grid-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:18px}
.cg-reference-institution .panel{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--text)}
.cg-reference-institution .panel__head h2{font:600 23px var(--serif);color:var(--text)}
.cg-reference-institution .tbl-wrap{max-width:100%;overflow-x:auto}
.cg-reference-institution .tbl{width:100%;min-width:700px;border-collapse:collapse;color:var(--text)}
.cg-reference-institution .tbl th,.cg-reference-institution .tbl td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}
.cg-reference-institution .cg-inst-actions{white-space:nowrap}
.cg-reference-institution .cg-inst-actions a{margin:2px}
.cg-reference-institution .list-rows>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.cg-reference-institution .list-rows .grow{flex:1;min-width:0}
.cg-reference-institution .bnav{display:none}
@media(max-width:900px){.cg-reference-institution .top{display:flex!important;position:sticky;top:0;z-index:20;padding:0 16px!important}.cg-reference-institution .top__crumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cg-reference-institution .top__actions{gap:8px}.cg-reference-institution .top__actions>.avatar{display:none}}
@media(max-width:1050px){.cg-reference-institution .grid-main{grid-template-columns:1fr}}
@media(max-width:900px){.cg-reference-institution .app{display:block}.cg-reference-institution .side,.cg-reference-institution .top{display:none}.cg-reference-institution .bnav{display:flex}.cg-reference-institution .app__content{padding:24px 16px calc(100px + env(safe-area-inset-bottom))}}
@media(max-width:620px){.cg-reference-institution .page-head{display:block}.cg-reference-institution .page-head>.badge{margin-top:14px}.cg-reference-institution .kpis{grid-template-columns:1fr 1fr}.cg-reference-institution .panel{padding:18px}}

/* Capture-reference shell fidelity. */
.cg-reference-institution .side{display:flex;flex-direction:column;height:100vh;padding:22px 16px 18px;overflow-y:auto;scrollbar-width:thin}
.cg-reference-institution .side__brand{padding:4px 10px 22px}
.cg-reference-institution .side__nav{display:grid;gap:2px}
.cg-reference-institution .side__link{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:12px;font-size:14.5px;font-weight:500}
.cg-reference-institution .side__link .i{width:19px;height:19px;stroke-width:1.8}
.cg-reference-institution .side__link.is-active::before{content:"";position:absolute;left:-16px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--gold)}
.cg-reference-institution .side__link.is-active .i{color:var(--gold-text)}
.cg-reference-institution .side__foot{display:grid;gap:6px;margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}
.cg-reference-institution .side__user{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.cg-reference-institution .side__user>span:last-child{min-width:0;display:grid;gap:2px}.cg-reference-institution .side__user b,.cg-reference-institution .side__user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cg-reference-institution .side__user small{color:var(--text-3)}
.cg-reference-institution .top{display:flex;align-items:center;justify-content:space-between;gap:20px;height:68px;padding:0 clamp(20px,3vw,40px)}
.cg-reference-institution .crumbs{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;color:var(--text-3)}
.cg-reference-institution .crumbs>span{color:var(--text-2)}
.cg-reference-institution .crumbs>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:600}
.cg-reference-institution .crumbs .i{width:14px;height:14px}
.cg-reference-institution .acct{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 12px 4px 4px;border:1px solid var(--line-2);border-radius:999px;background:transparent;color:var(--text);text-align:left}
.cg-reference-institution .acct>span:nth-child(2){display:grid;gap:0;min-width:0}
.cg-reference-institution .acct small{font-size:10.5px;line-height:1.2;color:var(--text-3)}
.cg-reference-institution .acct b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
.cg-reference-institution .acct>.i{width:14px;height:14px;color:var(--text-3)}
@media(max-width:1180px) and (min-width:901px){.cg-reference-institution .side__user>span:last-child{display:none}.cg-reference-institution .side__user{grid-template-columns:1fr;place-items:center;padding:7px;border:0;background:transparent}}
/* 1.36.42 — Final institution polish. */
.cg-reference-institution{--text-3:#748D9D}
html[data-theme="light"] .cg-reference-institution{--text-3:#586D7D}
.cg-reference-institution .app__content{max-width:1320px;margin:0 auto;padding:clamp(24px,3vw,40px) clamp(20px,3vw,40px) 60px}
.cg-reference-institution :is(.panel,.kpi,.tbl-wrap){border-radius:18px!important}
.cg-reference-institution :is(.panel,.kpi){transition:border-color .18s ease,transform .18s ease}
@media(hover:hover){.cg-reference-institution :is(.panel,.kpi):hover{border-color:var(--line-2)!important;transform:translateY(-1px)}}
html[data-theme="dark"] .cg-reference-institution .side{background:#091f2d!important}
html[data-theme="dark"] .cg-reference-institution .top{background:rgba(7,24,34,.86)!important}
@media(max-width:900px){.cg-reference-institution .app{display:block}.cg-reference-institution .side{display:none!important}.cg-reference-institution .top{display:flex!important;position:sticky;top:0;z-index:30;height:62px;padding:0 14px!important}.cg-reference-institution .bnav{display:flex!important}.cg-reference-institution .app__content{max-width:none;padding:22px 16px calc(96px + env(safe-area-inset-bottom))}.cg-reference-institution .crumbs>span{display:none}.cg-reference-institution .top__actions{margin-left:auto;gap:8px}.cg-reference-institution .acct{min-width:44px;padding:4px}.cg-reference-institution .acct>span:nth-child(2),.cg-reference-institution .acct>.i{display:none}}
@media(max-width:620px){.cg-reference-institution .crumbs{display:none}.cg-reference-institution .top{justify-content:flex-end}.cg-reference-institution .lang a,.cg-reference-institution .theme-btn,.cg-reference-institution .acct{min-width:44px;min-height:44px}}


/* 1.36.49 — Institution shell hardening. */
@media(min-width:901px){
  .cg-reference-institution .side{
    display:flex!important;
    flex-direction:column!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .cg-reference-institution .side__brand{flex:0 0 auto!important}
  .cg-reference-institution .side__nav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    align-content:start!important;
    padding-bottom:14px!important;
  }
  .cg-reference-institution .side__foot{
    flex:0 0 auto!important;
    margin-top:0!important;
    position:relative!important;
    z-index:2!important;
    background:var(--bg-2)!important;
  }
  .cg-reference-institution .app__main,
  .cg-reference-institution .app__content{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:clip!important;
    box-sizing:border-box!important;
  }
  .cg-reference-institution :is(.grid-main,.kpis)>*{min-width:0!important}
}
