/* MiStudio hosted UI: connect / pair screens (webhost/connect.js). Light, sober, like the studio's own cards. */
#msConnect { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  background: #eef1f5; font: 14px/1.45 system-ui, "Segoe UI", sans-serif; color: #1d2430; }
#msConnect .msc-card { width: min(560px, calc(100vw - 32px)); background: #fff; border: 1px solid #d5dbe3; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(20, 30, 50, .10); padding: 22px 26px 14px; }
#msConnect .msc-brand { font-weight: 650; font-size: 15px; color: #2b5fa8; margin-bottom: 8px; }
#msConnect .msc-beta { font-weight: 500; font-size: 11px; color: #6b7686; border: 1px solid #d5dbe3; border-radius: 9px; padding: 1px 7px; margin-left: 6px; }
#msConnect h1 { font-size: 19px; font-weight: 600; margin: 4px 0 10px; }
#msConnect p, #msConnect li { margin: 6px 0; }
#msConnect ol { padding-left: 20px; }
#msConnect li { margin: 10px 0; }
#msConnect .msc-row { display: flex; gap: 8px; align-items: center; margin: 14px 0 6px; flex-wrap: wrap; }
#msConnect .msc-btn { display: inline-block; font: inherit; padding: 6px 14px; border-radius: 6px; border: 1px solid #2b5fa8; cursor: pointer;
  text-decoration: none; background: #fff; color: #2b5fa8; }
#msConnect .msc-btn.primary { background: #2b5fa8; color: #fff; }
#msConnect .msc-btn[aria-disabled="true"] { opacity: .55; }
#msConnect input { font: 18px/1 ui-monospace, Consolas, monospace; letter-spacing: 4px; width: 9.5em; padding: 6px 10px; border: 1px solid #b9c2ce; border-radius: 6px;
  background: #fff; color: #1d2430; }
#msConnect .msc-small { font-size: 12px; color: #6b7686; display: block; }
#msConnect .msc-row .msc-small { display: inline; }
#msConnect .msc-err { color: #b3261e; min-height: 1.2em; }
#msConnect .msc-spin::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid #b9c2ce; border-top-color: #2b5fa8; border-radius: 50%; animation: mscspin .8s linear infinite; }
@keyframes mscspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #msConnect .msc-spin::before { animation: none; } }
#msConnect .msc-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 8px; border-top: 1px solid #edf0f4;
  font-size: 11px; color: #8a94a3; }
#msConnect .msc-foot a { color: #8a94a3; }
#msLost { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 100001; display: flex; gap: 12px; align-items: center;
  background: #fff4e5; border: 1px solid #e0a040; border-radius: 8px; padding: 8px 14px; font: 13px system-ui, "Segoe UI", sans-serif; color: #5a3a00;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
#msConnect .msc-prog { margin-top: 12px; }
#msConnect .msc-bar { height: 6px; background: #edf0f4; border-radius: 3px; overflow: hidden; }
#msConnect .msc-bar i { display: block; height: 100%; width: 0; background: #2b5fa8; transition: width .2s linear; }
#msConnect .msc-btn[disabled] { opacity: .55; cursor: default; }
.msc-badge { position: fixed; right: 12px; bottom: 34px; z-index: 100000; font: 12px system-ui, "Segoe UI", sans-serif; color: #2b5fa8;
  background: #fff; border: 1px solid #b9c8de; border-radius: 12px; padding: 3px 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.msc-badge:hover { background: #eef3fa; }
#msLost .msc-btn { font: inherit; padding: 4px 12px; border-radius: 6px; border: 1px solid #2b5fa8; background: #2b5fa8; color: #fff; cursor: pointer; }
