/* Small, contextual contract views. Existing full-page tools remain the source of truth. */
#ps-context-panel{position:fixed;inset:0;width:min(920px,calc(100vw - 48px));height:min(730px,calc(100vh - 48px));height:min(730px,calc(100dvh - 48px));max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid #3b6279;border-radius:12px;background:#070f1d;color:#e8f0f7;box-shadow:0 28px 100px #000a;font:13px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;z-index:2147483000}
#ps-context-panel[open]{display:flex;flex-direction:column}
#ps-context-panel::backdrop{background:#020812ad;backdrop-filter:blur(3px)}
#ps-context-panel *{box-sizing:border-box}
#ps-context-panel .ps-context-bar{display:flex;align-items:center;gap:16px;flex:none;padding:15px 18px;background:#102236;border-bottom:1px solid #294459}
#ps-context-panel .ps-context-heading{min-width:0;flex:1}
#ps-context-panel h2{font:650 15px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none;margin:0 0 4px;color:#edf7fd}
#ps-context-panel code{display:block;overflow-wrap:anywhere;color:#91b3c7;font:10px/1.5 "SFMono-Regular",Consolas,monospace;background:none;padding:0;white-space:normal}
#ps-context-panel .ps-context-full{flex:none;color:#84e1d2;font-family:inherit;font-weight:600;font-size:12px;line-height:1.4;text-decoration:none;white-space:nowrap;padding:8px 0;border:0;background:none;box-shadow:none}
#ps-context-panel .ps-context-close{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border:1px solid #36566c;border-radius:6px;color:#d2e4ed;background:#142c40;font:26px/1 Arial,sans-serif;cursor:pointer;box-shadow:none;padding:0;margin:0}
#ps-context-panel .ps-context-close:hover{background:#23465b;color:#fff}
#ps-context-panel :focus-visible{outline:2px solid #65dcc9;outline-offset:3px}
#ps-context-panel .ps-context-status{flex:none;margin:0;padding:10px 18px;background:#0d1b2c;color:#a8bdcf;font-family:inherit;font-size:12px;line-height:1.5}
#ps-context-panel .ps-context-status[hidden]{display:none}
#ps-context-panel .ps-context-frame{display:block;flex:1;min-height:0;width:100%;border:0;margin:0;background:#070f1d}
html.ps-context-embedded{--ps-header-height:0px;scroll-padding-top:12px}
html.ps-context-embedded #ps-shell,html.ps-context-embedded .ps-page-footer,html.ps-context-embedded .ps-workspace-head,html.ps-context-embedded .ps-workbench-tabs,html.ps-context-embedded .archive-breadcrumbs,html.ps-context-embedded body>.foot,html.ps-context-embedded .wrap>.foot,html.ps-context-embedded #statsContent>.footer{display:none!important}
html.ps-context-embedded body[data-ps-section="dashboard"] #statsContent.pub{padding:12px!important;width:100%;max-width:none;margin:0}
html.ps-context-embedded body[data-ps-section="dashboard"] .db-main{display:block!important;height:calc(100vh - 24px)!important;height:calc(100dvh - 24px)!important;min-height:470px!important}
html.ps-context-embedded body[data-ps-section="dashboard"] .db-main>.db-listcard,html.ps-context-embedded body[data-ps-section="dashboard"] .db-main>.dc-infocard{display:none!important}
html.ps-context-embedded body[data-ps-section="dashboard"] .db-main>.db-decompilecard{display:flex!important;width:100%;height:100%;padding:15px!important}
html.ps-context-embedded body[data-ps-section="dashboard"] .dc-bytecode{max-height:60px}
html.ps-context-embedded body[data-ps-section="dashboard"] .dc-output{font-size:12px}
html.ps-context-embedded body[data-ps-section="archive"]>.wrap{padding:16px 20px 32px;max-width:none}
html.ps-context-embedded body[data-ps-section="archive"] .card pre{max-height:55vh}
@media(max-width:600px){#ps-context-panel{width:calc(100vw - 12px);height:calc(100vh - 16px);height:calc(100dvh - 16px);border-radius:9px}#ps-context-panel .ps-context-bar{gap:10px;padding:12px}#ps-context-panel h2{font-size:14px}#ps-context-panel code{font-size:9px}#ps-context-panel .ps-context-full{font-size:10px}#ps-context-panel .ps-context-close{width:34px;height:34px}html.ps-context-embedded body[data-ps-section="dashboard"] #statsContent.pub{padding:8px!important}html.ps-context-embedded body[data-ps-section="dashboard"] .db-main{height:calc(100vh - 16px)!important;height:calc(100dvh - 16px)!important;min-height:440px!important}html.ps-context-embedded body[data-ps-section="dashboard"] .db-main>.db-decompilecard{padding:12px!important}html.ps-context-embedded body[data-ps-section="archive"]>.wrap{padding:12px}}
@media(prefers-reduced-motion:reduce){#ps-context-panel{scroll-behavior:auto}}
