/* When an agent is embedded in the AI Mech dashboard it must flow with the page:
   no inner scrollbar, the parent page's scrollbar does all the scrolling. */
html.embed,html.embed body{height:auto!important;min-height:0!important;overflow:visible!important}
html.embed body{display:block!important}
html.embed #stage{position:static!important;height:auto!important;min-height:0!important;overflow:visible!important;flex:none!important}
html.embed .step{position:static!important;inset:auto!important;overflow:visible!important;height:auto!important;padding-bottom:24px}
html.embed footer{position:static!important}
html.embed .res{height:auto!important}
html.embed #prevwrap{height:600px!important;min-height:0!important}
html.embed .vw{height:auto!important}
html.embed #vwrap{flex:none!important;height:600px!important}
html.embed main{flex:none!important;min-height:0!important}
html.embed #res{flex:none!important}
html.embed .list,html.embed #items{overflow:visible!important;flex:none!important;max-height:none!important}
html.embed .modal{position:absolute!important;min-height:100%}

/* Stronger contrast for the dashboard (light) theme */
html.embed{--mut:#35506a;--line:#b9cde2}
html.embed .btn:not(.sec),html.embed button.go,html.embed .primary{background:linear-gradient(135deg,#087268,#0b5aa6)!important;color:#fff!important;box-shadow:0 2px 8px rgba(8,80,110,.25)}
html.embed .btn:not(.sec):hover{filter:brightness(1.08)}
html.embed .btn:disabled{opacity:.55}
html.embed .btn.sec{color:#0d2a47!important;border-color:#8fb0cf!important;background:#fff!important}
html.embed .sr{background:#fff!important;border-color:#a9c3dc!important}
html.embed .sr .n b{color:#0b2340!important;font-size:13.5px}
html.embed .sr .n small{color:#2f4a64!important}
html.embed .sr .tg{background:#dcefec!important;color:#06594f!important;border-color:#9ccbc5!important}
html.embed .sw span{background:#8ea6bd}
html.embed .sw input:checked+span{background:#0a8f83}
html.embed h2,html.embed h3,html.embed b{color:#0b2340}
html.embed p.d,html.embed .d,html.embed .sub{color:#2f4a64!important}
html.embed .et{background:#f4f8fc!important}
html.embed .stat div{background:#fff!important;border-color:#a9c3dc!important}
