.refresh-state {
  margin-left: auto;
  color: #4e5969;
  font-size: 12px;
  white-space: nowrap;
}

.manual-entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-entry-actions button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  background: #fff;
  color: #165dff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.manual-entry-actions button:hover {
  border-color: #94bfff;
  background: #f2f7ff;
}

.dashboard-page .cdemo.manual-cdemo {
  grid-template-columns: minmax(420px, 560px) minmax(520px, 1fr);
}

.manual-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 33, 41, .42);
}

.manual-modal-panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(29, 33, 41, .22);
}

.manual-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.manual-modal-head h2 {
  margin: 0 0 6px;
  color: #1d2129;
  font-size: 18px;
  line-height: 1.25;
}

.manual-modal-head p {
  margin: 0;
  color: #86909c;
  font-size: 13px;
  line-height: 1.55;
}

.manual-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: #f2f3f5;
  color: #4e5969;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.manual-textarea {
  min-height: 180px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  color: #1d2129;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.manual-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 1px dashed #94bfff;
  border-radius: 8px;
  background: #f7fbff;
  color: #165dff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.manual-upload input {
  display: none;
}

.manual-json-example {
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #f7f8fa;
  overflow: hidden;
}

.manual-json-example-title {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e6eb;
  color: #4e5969;
  font-size: 12px;
  font-weight: 700;
}

.manual-json-example pre {
  max-height: 240px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  color: #1d2129;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.manual-preview {
  padding: 10px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #f7f8fa;
  color: #4e5969;
  font-size: 12px;
}

.manual-preview strong {
  display: block;
  margin-bottom: 6px;
  color: #1d2129;
}

.manual-preview ul {
  margin: 0;
  padding-left: 18px;
}

.manual-preview li {
  margin: 3px 0;
}

.manual-error {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff1f0;
  color: #f53f3f;
  font-size: 13px;
}

.manual-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.manual-actions button {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.manual-secondary {
  border: 1px solid #d8dee9;
  background: #fff;
  color: #4e5969;
}

.manual-primary {
  border: 1px solid #165dff;
  background: #165dff;
  color: #fff;
}

.manual-primary:disabled {
  border-color: #c9cdd4;
  background: #c9cdd4;
  cursor: default;
}

.virtual-query-list {
  padding: 0;
}

.virtual-query-list .qrow {
  min-height: 32px;
  padding-top: 0;
  padding-bottom: 0;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.dashboard-page .query-select-row {
  height: 100%;
}

.virtual-query-list .qtext {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-column-empty {
  padding: 18px 16px;
  color: #86909c;
  font-size: 13px;
  line-height: 1.6;
}
