.resource-actions{display:flex;flex-direction:column;align-items:center;gap:.5rem;flex-shrink:0}
.resource-open{background:#123d66;color:white;padding:.65rem 1.2rem;font-weight:700;min-height:44px;border-radius:.5rem}
.resource-download{text-decoration:underline;font-size:.875rem;min-height:44px;display:inline-flex;align-items:center}
.resource-dialog{padding:0;border:1px solid #cbd5e1;border-radius:.75rem;width:calc(100vw - 16px);max-width:1100px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);color:#0f172a;background:white}
.resource-dialog[open]{display:flex;flex-direction:column}
.resource-dialog::backdrop{background:#0f172ab3}
.resource-dialog-header{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.75rem;border-bottom:1px solid #cbd5e1}
.resource-dialog-header h2{flex:1;min-width:120px;font-size:1rem;font-weight:700;overflow-wrap:anywhere}
.resource-dialog-header a{text-decoration:underline}
.resource-dialog-header button,.resource-dialog-header a{min-height:44px;display:inline-flex;align-items:center;padding:.5rem}
.resource-frame{width:100%;flex:1;min-height:0;border:0}
.portal-header{gap:.75rem;flex-wrap:wrap}
.portal-header>div:first-child{min-width:0;flex:1}
.portal-header>div:first-child>div{min-width:0}
.portal-header>div:first-child span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-header>div:last-child{flex-shrink:0}
.portal-mobile-search{display:none}
.portal-header-panel{max-height:calc(100dvh - 120px);overflow-y:auto!important;overflow-wrap:anywhere}
@media(max-width:767px){
 .portal-mobile-search{display:block;flex-basis:100%;order:3;min-width:0}
 .portal-header-panel{position:fixed!important;left:8px!important;right:8px!important;top:64px!important;width:auto!important;max-width:calc(100vw - 16px);max-height:calc(100dvh - 180px);margin:0!important}
 .portal-header button{min-width:44px;min-height:44px}
 .portal-header [aria-label="User avatar"]{display:none}
}
