/* AI chat page - standalone, do not put this CSS inside ThinkPHP templates */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f3f5f9;
  color: #1a1d26;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(77,107,254,0.12), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(16,185,129,0.07), transparent 55%),
    #f3f5f9;
}
* { box-sizing: border-box; }

.ds-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 12px;
  overflow: hidden;
  transition: max-width .2s ease;
}
.ds-app.hist-open {
  max-width: 1280px;
}
.ds-workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}
.ds-hist-pane {
  display: none;
  flex: 0 0 300px;
  width: 300px;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 18px;
  margin-right: 12px;
  overflow: hidden;
  min-height: 0;
}
.ds-app.hist-open .ds-hist-pane,
.ds-hist-pane.open {
  display: flex;
}
.ds-top-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  justify-content: center;
  padding: 0 8px;
}
.ds-source-tabs {
  display: flex;
  background: #eef1f6;
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.ds-source-tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
}
.ds-source-tab.active {
  background: #fff;
  color: #1a1d26;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-weight: 600;
}
.ds-model-select-top {
  max-width: 280px;
  flex: 1;
  min-width: 120px;
}
.ds-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 4px 10px;
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  background: linear-gradient(to bottom, rgba(243,245,249,0.96), rgba(243,245,249,0.75));
}
.ds-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.ds-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 36px;
  background: linear-gradient(145deg, #4d6bfe 0%, #2f4fd6 55%, #1f3ab0 100%);
  box-shadow: 0 8px 18px rgba(77,107,254,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.ds-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.ds-brand-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-brand-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
.ds-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ds-icon-btn {
  border: 1px solid #e5e8ef;
  background: #fff;
  color: #1a1d26;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.ds-icon-btn:hover {
  border-color: #c9d2ff;
  background: rgba(77,107,254,0.10);
}
.ds-user {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e8ef;
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px 3px 3px;
  text-decoration: none;
  color: inherit;
  max-width: 160px;
}
.ds-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
}
.ds-user span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.ds-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ds-chat {
  flex: 1;
  overflow-y: auto;
  padding: 8px 2px 18px;
  -webkit-overflow-scrolling: touch;
}
.ds-hero {
  margin: 6vh auto 0;
  max-width: 640px;
  text-align: center;
}
.ds-hero-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #4d6bfe, #243ea8);
  box-shadow: 0 16px 36px rgba(77,107,254,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}
.ds-hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}
.ds-hero p {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}
.ds-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.ds-chip {
  border: 1px solid #e5e8ef;
  background: #fff;
  color: #374151;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(26,29,38,0.06);
  max-width: 280px;
  text-align: left;
}
.ds-chip:hover {
  border-color: #c9d2ff;
  background: #f8f9ff;
}

.ds-msg {
  display: flex;
  gap: 10px;
  margin: 0 auto 16px;
  max-width: 760px;
}
.ds-msg-user { flex-direction: row-reverse; }
.ds-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex: 0 0 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #4d6bfe, #243ea8);
}
.ds-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-msg-user .ds-avatar {
  background: linear-gradient(145deg, #111827, #374151);
}
.ds-bubble {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(26,29,38,0.04);
  max-width: 100%;
}
.ds-msg-user .ds-bubble {
  background: #4d6bfe;
  border-color: transparent;
  color: #fff;
}
.ds-bubble img.ds-img {
  display: block;
  max-width: 280px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.ds-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}
.ds-bubble.streaming:after {
  content: "";
  margin-left: 0;
  animation: none;
}
.ds-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  min-height: 28px;
}
.ds-wait em {
  font-style: normal;
}
.ds-wait-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.ds-wait-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d6bfe;
  display: inline-block;
  animation: ds-bounce 1.2s infinite ease-in-out;
}
.ds-wait-dots i:nth-child(2) { animation-delay: 0.15s; }
.ds-wait-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ds-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}
@keyframes ds-blink {
  50% { opacity: 0; }
}

.ds-composer-wrap {
  flex: 0 0 auto;
  padding: 8px 0 4px;
}
.ds-deep-bar {
  margin: 0 0 8px;
  padding: 0 2px;
}
.ds-deep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ds-deep-tab {
  border: 1px solid #e5e8ef;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #3a4050;
  max-width: none;
  min-width: 5.5em;
  flex: 0 0 auto;
  overflow: visible;
  white-space: nowrap;
}
.ds-deep-tab:hover { border-color: #c5cad6; }
.ds-deep-tab.active {
  background: #1a1d26;
  border-color: #1a1d26;
  color: #fff;
}
.ds-deep-tab.pending { opacity: 0.55; }
.ds-deep-tab.err { border-color: #e8a0a0; color: #a33; }
.ds-deep-tab.judge {
  border-style: dashed;
  font-weight: 600;
}
.ds-deep-set {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef0f5;
}
.ds-deep-set > label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
.ds-deep-hint {
  margin: 8px 0 10px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.ds-deep-models {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fafbfe;
}
.ds-deep-models label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f2f7;
}
.ds-deep-models label:last-child { border-bottom: 0; }
.ds-deep-count {
  margin-top: 8px;
  font-size: 12px;
  color: #4b5568;
}
.ds-deep-panel-wrap {
  margin-top: 8px;
}
.ds-deep-panel-wrap .ds-msg { display: none; }
.ds-deep-panel-wrap .ds-msg.active { display: flex; }
.ds-composer {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(26,29,38,0.08);
}
.ds-composer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ds-model-select {
  border: 1px solid #e5e8ef;
  background: #f8f9fc;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  max-width: 70vw;
  color: #1a1d26;
}
.ds-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ds-tool {
  border: 1px solid #e5e8ef;
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.ds-tool.active {
  border-color: #4d6bfe;
  background: rgba(77,107,254,0.10);
  color: #2f4fd6;
}
.ds-tool-file { display: none !important; }

.ds-attach {
  display: none !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px;
  background: #f8f9fc;
  border: 1px dashed #c9d2ff;
  border-radius: 14px;
}
.ds-attach.show {
  display: flex !important;
}
.ds-attach img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}
.ds-attach-meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #6b7280;
}
.ds-attach-meta b {
  display: block;
  color: #1a1d26;
  margin-bottom: 2px;
  font-weight: 600;
}
.ds-attach-x {
  border: 1px solid #e5e8ef;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}
.ds-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ds-input {
  flex: 1;
  min-height: 52px;
  max-height: 160px;
  border: none;
  outline: none;
  resize: none;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  padding: 8px 2px;
  background: transparent;
}
.ds-send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: #4d6bfe;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  cursor: pointer;
}
.ds-send[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.ds-composer-foot {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #6b7280;
}

/* panels: settings drawer still overlays; history is side pane (no mask) */
.ds-drawer-mask {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(17,24,39,0.32);
  z-index: 40;
}
.ds-drawer-mask.open {
  display: block;
}
.ds-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 96vw;
  background: #fff;
  z-index: 50;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}
.ds-drawer.open {
  display: flex;
}
.ds-drawer-head,
.ds-hist-head {
  padding: 16px 18px;
  border-bottom: 1px solid #e5e8ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  flex: 0 0 auto;
}
.ds-drawer-main {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.ds-drawer-body,
.ds-hist-body {
  padding: 14px 16px 24px;
  overflow-y: auto;
  flex: 1;
  min-width: 0;
}
.ds-drawer-nav {
  flex: 0 0 118px;
  border-left: 1px solid #e5e8ef;
  background: #f7f8fb;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.ds-drawer-nav-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  color: #4b5568;
  writing-mode: horizontal-tb;
}
.ds-drawer-nav-btn:hover {
  background: #fff;
  border-color: #e5e8ef;
}
.ds-drawer-nav-btn.active {
  background: #1a1d26;
  color: #fff;
  border-color: #1a1d26;
  font-weight: 600;
}
.ds-set-panel { display: none; }
.ds-set-panel.active { display: block; }
.ds-mode-enable {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.ds-local {
  font-size: 11px;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 12px;
}
.ds-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}
.ds-param-row { margin-bottom: 14px; }
.ds-param-row label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.ds-param-row input[type=range] { width: 100%; }
.ds-param-row input[type=number],
.ds-param-row textarea {
  width: 100%;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
}
.ds-param-row textarea { min-height: 90px; }
.ds-set-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.ds-hist-item {
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
}
.ds-hist-item:hover {
  border-color: #c9d2ff;
  background: #f8f9ff;
}
.ds-hist-item .t {
  font-size: 13px;
  line-height: 1.45;
  color: #1a1d26;
}
.ds-hist-item .m {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}
.ds-hist-empty {
  color: #6b7280;
  font-size: 13px;
  padding: 20px 4px;
  line-height: 1.6;
}
.ds-hist-item.active {
  border-color: #4d6bfe;
  background: #f0f3ff;
}
.ds-bubble .ds-h { margin: 0.75em 0 0.4em; font-weight: 700; line-height: 1.35; }
.ds-bubble h1.ds-h { font-size: 1.25em; }
.ds-bubble h2.ds-h { font-size: 1.12em; }
.ds-bubble h3.ds-h, .ds-bubble h4.ds-h { font-size: 1.02em; }
.ds-bubble p { margin: 0.45em 0; white-space: normal; word-break: break-word; line-height: 1.75; }
.ds-bubble .ds-cite {
  font-size: 0.75em;
  color: #4d6bfe;
  margin: 0 1px;
  font-weight: 600;
  vertical-align: super;
}
.ds-bubble ul, .ds-bubble ol { margin: 0.4em 0 0.4em 1.2em; padding: 0; }
.ds-bubble li { margin: 0.2em 0; }
.ds-bubble blockquote {
  margin: 0.5em 0;
  padding: 4px 12px;
  border-left: 3px solid #4d6bfe;
  color: #4b5563;
  background: #f8faff;
}
.ds-bubble pre.ds-code, .ds-think pre {
  background: #f5f7fb;
  border-radius: 10px;
  padding: 10px 12px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}
.ds-bubble code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: #f0f2f7;
  padding: 1px 5px;
  border-radius: 4px;
}
.ds-think {
  margin: 0.5em 0 0.8em;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  padding: 8px 12px;
  background: #fafbfc;
  font-size: 12px;
  color: #6b7280;
}
.ds-think summary { cursor: pointer; font-weight: 600; color: #4b5563; }
.ds-export {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ds-export button {
  border: 1px solid #e5e8ef;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #374151;
}
.ds-export button:hover {
  border-color: #c9d2ff;
  background: #f8f9ff;
}
.ds-msg-body { min-width: 0; flex: 1; }

.ds-quota-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
  line-height: 1.45;
}
.ds-quota-banner.warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.ds-quota-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: #0d7377;
}
.ds-quota-banner.warn .ds-quota-ico { background: #ea580c; color: #fff; }
.ds-quota-text { flex: 1; min-width: 0; }
.ds-quota-btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #0d7377;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
}
.ds-quota-banner.warn .ds-quota-btn { background: #ea580c; }

@media (max-width: 640px) {
  .ds-brand-sub { display: none; }
  .ds-user span { display: none; }
  .ds-chip { max-width: 100%; }
  .ds-hero h1 { font-size: 22px; }
  .ds-drawer { width: 100%; max-width: 100%; }
  .ds-drawer-nav { flex: 0 0 96px; }
  .ds-drawer-nav-btn { font-size: 11px; padding: 8px 4px; }
  .ds-app.hist-open { max-width: 100%; }
  .ds-hist-pane { flex-basis: 42%; width: 42%; margin-right: 8px; border-radius: 14px; }
  .ds-top-mid { flex-wrap: wrap; justify-content: flex-start; }
  .ds-model-select-top { max-width: 100%; }
}

.a.ds-tool, a.ds-tool { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }

/* web login */
.ai-web-login-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}
.ai-web-login-box{width:min(420px,100%);background:#fff;border-radius:12px;padding:16px 18px;box-shadow:0 12px 40px rgba(0,0,0,.18)}
.ai-web-login-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.ai-web-login-tip{font-size:12px;color:#64748b;margin:0 0 12px;line-height:1.5}
.ai-web-login-lab{display:block;font-size:13px;color:#334155;margin-bottom:10px}
.ai-web-login-lab input{display:block;width:100%;margin-top:4px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box}
.ai-web-login-ops{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.ai-web-login-status{margin-top:10px;font-size:12px;color:#0f172a;min-height:1.2em}
.ai-web-login-flag{font-size:12px;padding:2px 8px;border-radius:999px;background:#fee2e2;color:#991b1b;margin-right:6px}
.ai-web-login-flag.ok{background:#dcfce7;color:#166534}
.ai-web-login-flag.bad{background:#fee2e2;color:#991b1b}

/* web settings panel */
.ds-web-set-tip{font-size:12px;color:#64748b;line-height:1.5;margin:0 0 12px}
.ds-web-set-status{font-size:13px;padding:8px 10px;border-radius:8px;background:#f1f5f9;margin-bottom:10px}
.ds-web-set-status.ok{background:#dcfce7;color:#166534}
.ds-web-set-status.bad{background:#fee2e2;color:#991b1b}
.ds-web-set-lab{display:block;font-size:13px;color:#334155;margin-bottom:10px}
.ds-web-set-lab input{display:block;width:100%;margin-top:4px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box}
.ds-web-set-ops{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;align-items:center}
.ds-web-set-ops .ds-send,
.ds-web-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto !important;
  min-width:96px;
  height:36px !important;
  flex:0 0 auto !important;
  padding:0 16px !important;
  border:none;
  border-radius:8px;
  background:#4d6bfe;
  color:#fff;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  writing-mode:horizontal-tb;
  cursor:pointer;
  box-sizing:border-box;
}
.ds-web-btn[disabled]{opacity:.55;cursor:not-allowed}

/* wait animation */
.ds-wait{display:flex;align-items:center;gap:10px;min-height:28px}
.ds-wait-spin{
  width:18px;height:18px;border-radius:50%;
  border:2px solid #cbd5e1;border-top-color:#2563eb;
  animation:ds-spin .7s linear infinite;flex:0 0 auto;
}
@keyframes ds-spin{to{transform:rotate(360deg)}}
.ds-wait-dots{display:inline-flex;gap:4px;align-items:center}
.ds-wait-dots i{
  width:6px;height:6px;border-radius:50%;background:#2563eb;opacity:.35;
  animation:ds-bounce 1s ease-in-out infinite;
}
.ds-wait-dots i:nth-child(2){animation-delay:.15s}
.ds-wait-dots i:nth-child(3){animation-delay:.3s}
@keyframes ds-bounce{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}
.ds-wait em{font-style:normal;font-size:13px;color:#64748b}

.ds-web-set-label{font-size:12px;color:#64748b;margin-bottom:6px}
.ds-web-sites{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ds-web-site-btn{
  border:1px solid #dbe1ea;background:#fff;color:#334155;border-radius:999px;
  padding:5px 10px;font-size:12px;cursor:pointer;line-height:1.2
}
.ds-web-site-btn:hover{border-color:#94a3b8}
.ds-web-site-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}
.ds-web-set-note{font-size:12px;color:#b45309;margin:0 0 10px;line-height:1.4}
.ds-web-set-tip{display:none !important}

.ds-web-set-help{font-size:12px;color:#64748b;line-height:1.55;margin:0 0 8px}
.ds-web-set-help code{font-size:11px;background:#f1f5f9;padding:1px 4px;border-radius:4px}
.ds-web-set-lab textarea{display:block;width:100%;margin-top:4px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box;min-height:84px;resize:vertical;font-family:Consolas,monospace;font-size:12px}

