.wsm-panel { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.wsm-panel h2 { margin: 0; }
.wsm-hint, .wsm-status { margin: 0; opacity: .75; font-size: 14px; }
.wsm-status { min-height: 1.3em; }
.wsm-list { display: flex; flex-direction: column; gap: 10px; }
.wsm-card { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid rgba(128,128,128,.3); border-radius: 12px;
  background: rgba(128,128,128,.07); cursor: pointer; }
.wsm-card-info { display: flex; flex-direction: column; gap: 3px; }
.wsm-card-info span { font-size: 13px; opacity: .75; }
.wsm-card input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: #4b2ce8; }
.wsm-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wsm-row > * { flex: 1 1 140px; min-width: 0; }
.wsm-panel select, .wsm-panel textarea {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(128,128,128,.4); background: transparent; color: inherit; font: inherit; }
.wsm-panel textarea.wsm-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.wsm-btn { padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(128,128,128,.4);
  background: rgba(128,128,128,.12); color: inherit; font: inherit; cursor: pointer; }
.wsm-btn.primary { background: #4b2ce8; border-color: #4b2ce8; color: #fff; }
.wsm-btn.danger { color: #e5484d; }
.wsm-btn:disabled { opacity: .55; cursor: wait; }
.wsm-chat { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto;
  padding: 4px 2px; }
.wsm-msg { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(128,128,128,.25); }
.wsm-msg.user { background: rgba(75,44,232,.12); }
.wsm-msg p { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; }
.wsm-msg p:last-child { margin-bottom: 0; }
.wsm-codeblock { border: 1px solid rgba(128,128,128,.35); border-radius: 10px; overflow: hidden; margin: 8px 0; }
.wsm-codehead { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; background: rgba(128,128,128,.15); font-size: 12px; }
.wsm-codehead .wsm-btn { padding: 4px 10px; font-size: 12px; }
.wsm-codeblock pre { margin: 0; padding: 10px 12px; overflow-x: auto; font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(0,0,0,.18); }
.wsm-panel input[type="text"], .wsm-panel input[type="time"], .wsm-panel input[type="datetime-local"] {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(128,128,128,.4); background: transparent; color: inherit; font: inherit; }
.wsm-task { flex-direction: column; align-items: stretch; cursor: default; }
.wsm-task .wsm-row > * { flex: 0 1 auto; }
.wsm-result { margin-top: 6px; padding: 10px 12px; border-radius: 10px; white-space: pre-wrap;
  word-break: break-word; font-size: 13px; background: rgba(128,128,128,.12); max-height: 40vh; overflow-y: auto; }
.wsm-card details summary { cursor: pointer; font-size: 13px; margin-top: 4px; }
.wsm-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e5484d; color: #fff; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; }
.wsm-badge[hidden] { display: none; }
@media (max-width: 760px) {
  .wsm-panel input, .wsm-panel select, .wsm-panel textarea { font-size: 16px; }
  .wsm-row > * { flex: 1 1 100%; }
  .wsm-task .wsm-row > * { flex: 1 1 auto; }
  .wsm-chat { max-height: 45vh; }
  .wsm-codeblock pre { font-size: 12px; }
  .wsm-card { padding: 10px 12px; }
}
.wsm-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.nav-icon.wsm-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; }
.nav-icon.wsm-ico svg { width: 20px; height: 20px; display: block; }
.wsm-chat-images { display: grid; gap: 6px; margin: 0 0 8px; max-width: 340px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.wsm-chat-images.wsm-n1 { max-width: 300px; grid-template-columns: 1fr; }
.wsm-chat-img { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; display: block; }
.wsm-chat-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 14px; }
.wsm-fig { display: block; margin: 10px 0; }
.wsm-fig .wsm-chat-img { display: inline-block; max-width: min(100%, 420px); }
.wsm-fig .wsm-chat-img img { max-height: none; object-fit: contain; }
.wsm-dl { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(128,128,128,.4); background: rgba(128,128,128,.12); color: inherit; text-decoration: none; }
.wsm-lightbox { position: fixed; inset: 0; z-index: 99998; background: rgba(0,0,0,.86); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.wsm-lightbox img { max-width: 94vw; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.wsm-lb-bar { display: flex; gap: 10px; }
.wsm-lb-bar .wsm-dl { color: #fff; margin: 0; }
