#sh-connection-status {
  position: sticky;
  top: 0;
  z-index: 10001;
  box-sizing: border-box;
  width: 100%;
  padding: 7px 12px;
  background: #183b2c;
  color: #e0f7e8;
  border-bottom: 1px solid #427e5c;
  font: 600 15px/1.4 sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
#sh-connection-status[data-state="checking"] { background: #30343b; color: #fff; }
#sh-connection-status[data-state="offline"],
#sh-connection-status[data-state="error"] { background: #8b1010; color: #fff; border-color: #ff8a80; }
/* The connection strip stays visible; backend warnings follow it in normal flow. */
#sh-backend-status { position: static; }
#sh-connection-shade {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font: 16px/1.5 sans-serif;
  text-align: center;
  outline: none;
  touch-action: none;
}
#sh-connection-shade[hidden] { display: none; }
#sh-connection-shade strong { font-size: 22px; }
#sh-connection-shade p { max-width: 28rem; color: #ddd; }
