/* User monitor extension: incumbent white/emerald cards; totals left, action right above history.
   The modal presents actual benchmark history and sandboxed artwork, with no decorative substitute. */
.yzai-pelican-host:hover{transform:none!important}
.yzai-pelican-space{height:40px;min-height:40px;width:100%;pointer-events:none}
.yzai-pelican-actions{position:absolute;display:flex;align-items:center;justify-content:space-between;gap:6px;z-index:2;font:12px/1.4 system-ui,sans-serif;color:#475569}
.yzai-pelican-total{white-space:nowrap;font-size:11px}
.yzai-pelican-total b{font-weight:650;color:#0f766e;font-variant-numeric:tabular-nums}
.yzai-pelican-btn{appearance:none;border:1px solid #d6dee8;border-radius:8px;padding:7px 10px;background:#fff;color:#334155;font:12px/1.4 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.yzai-pelican-btn:hover{border-color:#0d9488;background:#f0fdfa;color:#115e59}
.yzai-pelican-btn:focus-visible,.yzai-pelican-history button:focus-visible{outline:2px solid #0d9488;outline-offset:3px}
.yzai-pelican-btn:disabled{opacity:.6;cursor:wait}
.yzai-pelican-modal{padding:0;border:1px solid #dbe3eb;border-radius:16px;width:min(1200px,calc(100vw - 40px));max-width:none;height:min(840px,calc(100dvh - 48px));max-height:none;color:#172133;background:#fff;font:14px/1.55 system-ui,sans-serif;overflow:hidden}
.yzai-pelican-modal::backdrop{background:rgba(15,23,42,.48)}
.yzai-pelican-head{padding:20px 24px 16px;border-bottom:1px solid #e2e8f0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.yzai-pelican-head h2{font-size:18px;line-height:1.4;margin:0 0 6px;font-weight:700;overflow-wrap:anywhere}
.yzai-pelican-sub{margin:0;color:#526174;font-size:12px;max-width:72ch}
.yzai-pelican-body{display:grid;grid-template-columns:242px minmax(0,1fr);height:calc(100% - 108px);min-height:0}
.yzai-pelican-history{overflow:auto;padding:14px;border-right:1px solid #e2e8f0}
.yzai-pelican-history button{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;padding:12px;margin-bottom:5px;cursor:pointer}
.yzai-pelican-history button:hover{background:#f1f5f9}
.yzai-pelican-history button[aria-current=true]{border-color:#0d9488;background:#f0fdfa}
.yzai-pelican-history strong{display:block;font-size:13px;font-variant-numeric:tabular-nums;margin-bottom:5px}
.yzai-pelican-history small{display:block;color:#526174;font-size:11px;margin-top:4px}
.yzai-pelican-status{font-size:12px;font-weight:600}
.yzai-pelican-status[data-status=normal]{color:#047857}
.yzai-pelican-status[data-status=degraded]{color:#b42318}
.yzai-pelican-status[data-status=unknown],.yzai-pelican-status[data-status=error]{color:#92400e}
.yzai-pelican-detail{padding:18px;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto}
.yzai-pelican-meta{color:#526174;font-size:12px;margin-bottom:10px;overflow-wrap:anywhere}
.yzai-pelican-reason{margin:0 0 12px;font-size:13px;overflow-wrap:anywhere}
.yzai-pelican-controls{display:flex;gap:8px;margin-bottom:12px}
.yzai-pelican-frame{width:100%;flex:1;min-height:320px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.yzai-pelican-code{display:block;white-space:pre-wrap;overflow:auto;font:12px/1.6 ui-monospace,monospace;background:#f8fafc;border-radius:10px;padding:16px;flex:1;overflow-wrap:anywhere}
.yzai-pelican-empty{padding:36px 12px;text-align:center;color:#526174}
.dark .yzai-pelican-actions,.dark .yzai-pelican-sub,.dark .yzai-pelican-meta,.dark .yzai-pelican-history small,.dark .yzai-pelican-empty{color:#b6c3d3}
.dark .yzai-pelican-total b{color:#5eead4}
.dark .yzai-pelican-btn,.dark .yzai-pelican-modal{background:#15202f;color:#e2e8f0;border-color:#39485c}
.dark .yzai-pelican-btn:hover,.dark .yzai-pelican-history button:hover{background:#223247}
.dark .yzai-pelican-history button[aria-current=true]{background:#123a38;border-color:#2dd4bf}
.dark .yzai-pelican-status[data-status=normal]{color:#6ee7b7}
.dark .yzai-pelican-status[data-status=degraded]{color:#fca5a5}
.dark .yzai-pelican-status[data-status=unknown],.dark .yzai-pelican-status[data-status=error]{color:#fcd34d}
.dark .yzai-pelican-head,.dark .yzai-pelican-history{border-color:#39485c}
.dark .yzai-pelican-code{background:#0f172a;color:#cbd5e1}
@media(max-width:640px){
 .yzai-pelican-modal{width:calc(100vw - 16px);height:calc(100dvh - 24px);border-radius:12px}
 .yzai-pelican-head{padding:14px;gap:8px}.yzai-pelican-head h2{font-size:16px}
 .yzai-pelican-body{display:flex;flex-direction:column;height:calc(100% - 125px)}
 .yzai-pelican-history{display:flex;flex-shrink:0;gap:8px;border-right:0;border-bottom:1px solid #e2e8f0;padding:10px;max-height:132px}
 .yzai-pelican-history button{min-width:174px;margin:0;padding:10px}
 .yzai-pelican-detail{padding:12px;flex:1}.yzai-pelican-frame{min-height:300px}
}
@media(prefers-reduced-motion:reduce){.yzai-pelican-card>button:first-child{transition:none;transform:none}}

.yzai-pelican-actions[hidden]{display:none}
.yzai-pelican-modal[open]{display:flex;flex-direction:column}
.yzai-pelican-head{flex-shrink:0}
.yzai-pelican-body{flex:1;height:auto;min-height:0}
