#maestro-root{position:fixed;z-index:40;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}
#maestro-root>*{pointer-events:auto}
#maestro-root .maestro-fab{display:inline-flex;align-items:center;gap:10px;border:1px solid #2b2c34;background:linear-gradient(145deg,#1a1424,#131418 55%);color:#f0f0f3;padding:8px 14px 8px 8px;border-radius:999px;font:600 14px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.4px;box-shadow:0 10px 28px #0008}
#maestro-root .maestro-fab img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#23192F}
#maestro-root .maestro-panel{width:min(380px,calc(100vw - 28px));max-height:min(70vh,560px);display:flex;flex-direction:column;background:#131418;border:1px solid #2b2c34;border-radius:14px;overflow:hidden;box-shadow:0 18px 50px #000a}
#maestro-root .maestro-panel[hidden]{display:none!important}
#maestro-root .maestro-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:14px 14px 8px;background:linear-gradient(120deg,#23192F,#131418 70%)}
#maestro-root .maestro-eyebrow{display:block;font:11px/1.4 ui-monospace,monospace;letter-spacing:1px;color:#a1a1ad;margin-bottom:4px}
#maestro-root .maestro-head strong{font:600 22px/1 'Barlow Condensed',sans-serif}
#maestro-root .maestro-head-actions{display:flex;gap:6px;align-items:center}
#maestro-root .maestro-link{border:0;background:transparent;color:#c4b5fd;font:12px/1 Inter,sans-serif;padding:6px}
#maestro-root .maestro-status{margin:0;padding:0 14px 10px;font:11px/1.45 ui-monospace,monospace;color:#a1a1ad;border-bottom:1px solid #2b2c34}
#maestro-root .maestro-log{flex:1;min-height:180px;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
#maestro-root .maestro-msg{padding:10px 11px;border-radius:10px;background:#0c0d10;border:1px solid #2b2c34}
#maestro-root .maestro-msg.assistant{border-color:color-mix(in srgb,#9945FF 35%,#2b2c34)}
#maestro-root .maestro-msg.user{align-self:flex-end;background:#1a1b22}
#maestro-root .maestro-msg b{display:block;font:11px/1.3 ui-monospace,monospace;color:#a1a1ad;margin-bottom:4px}
#maestro-root .maestro-msg p{margin:0;white-space:pre-wrap;color:#f0f0f3;font:13px/1.5 Inter,sans-serif}
#maestro-root .maestro-cta{display:inline-flex;margin:0 14px 8px;padding:8px 12px;background:#9945FF;color:#fff;text-decoration:none;border-radius:6px;font:600 13px/1 'Barlow Condensed',sans-serif}
#maestro-root .maestro-form{display:flex;gap:8px;padding:12px;border-top:1px solid #2b2c34;background:#0c0d10}
#maestro-root .maestro-form input{flex:1;min-width:0;border:1px solid #2b2c34;background:#131418;color:#f0f0f3;border-radius:8px;padding:10px}
#maestro-root .maestro-form button{border:0;background:#CCFF00;color:#1F240B;border-radius:8px;padding:10px 14px;font:600 13px/1 'Barlow Condensed',sans-serif}
@media(max-width:620px){
  #maestro-root{right:12px;bottom:12px}
  #maestro-root .maestro-panel{width:min(100vw - 24px,380px);max-height:65vh}
  #jester-launchpad .chain-switcher{bottom:max(88px,env(safe-area-inset-bottom))}
}
