/* AI Ops Assistant Demo Widget */
.opsw-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.opsw-fab {
  border: 0; cursor: pointer;
  padding: 12px 14px;
  border-radius: 999px;
  background: #2f86d6;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.opsw-panel {
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 54px;
  display: none;
}
.opsw-panel.is-open { display: flex; flex-direction: column; }

.opsw-header {
  padding: 14px 14px 12px;
  background: #0f2542;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.opsw-title { font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.opsw-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.opsw-close { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; padding: 6px 8px; border-radius: 10px; }
.opsw-close:hover { background: rgba(255,255,255,.12); }

.opsw-body {
  padding: 14px;
  flex: 1;
  overflow: auto;
  background: #f5f8fb;
}
.opsw-msg { display: flex; margin-bottom: 10px; }
.opsw-msg.user { justify-content: flex-end; }
.opsw-bubble {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
}
.opsw-msg.user .opsw-bubble { background: #e9f2ff; border-color: rgba(47,134,214,.18); }
.opsw-role { font-size: 11px; font-weight: 800; opacity: .65; margin-bottom: 6px; }
.opsw-text { font-size: 13px; line-height: 1.35; color: #1b2430; }

.opsw-foot { padding: 12px; border-top: 1px solid rgba(0,0,0,.06); background: #fff; }
.opsw-hint { font-size: 12px; color: rgba(0,0,0,.62); margin-bottom: 10px; }
.opsw-row { display: flex; gap: 8px; align-items: flex-end; }
.opsw-input {
  flex: 1;
  resize: none;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  font-size: 13px;
  outline: none;
}
.opsw-input:focus { border-color: rgba(47,134,214,.55); box-shadow: 0 0 0 3px rgba(47,134,214,.12); }
.opsw-send {
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #2f86d6;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.opsw-send:disabled { opacity: .6; cursor: not-allowed; }

.opsw-upgrade {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #2f86d6;
  text-decoration: none;
}
.opsw-upgrade:hover { text-decoration: underline; }
