#appShell .qt-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 2.5fr) minmax(220px, 2.5fr) minmax(320px, 5fr);
  gap: 12px;
  align-items: start;
}

#appShell .qt-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 440px;
}

#appShell .qt-col--detail { min-height: 440px; }

#appShell .qt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

#appShell .qt-muted { font-size: 12px; font-weight: 400; color: #98a2b3; }

#appShell .qt-back {
  font-size: 12px;
  font-weight: 400;
  color: var(--link-action);
  text-decoration: none;
}

#appShell .qt-back:hover { text-decoration: underline; }

#appShell .qt-list { display: flex; flex-direction: column; gap: 2px; }

#appShell .qt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #344054;
}

#appShell .qt-item:hover { background: #f5f7fa; }
#appShell .qt-item.is-active { background: var(--primary-light); }
#appShell .qt-item.is-active .qt-name { color: var(--primary-hover); font-weight: 600; }

#appShell .qt-index {
  width: 16px;
  flex: 0 0 auto;
  font-size: 12px;
  color: #98a2b3;
  text-align: center;
}

#appShell .qt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell .qt-item.is-off .qt-name { color: #98a2b3; text-decoration: line-through; }

#appShell .qt-tag {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #f2f4f7;
  color: #475467;
}

#appShell .qt-item.is-active .qt-tag { background: #fff; color: var(--primary-hover); }

#appShell .qt-switch {
  width: 26px;
  height: 14px;
  border-radius: 7px;
  background: #d0d5dd;
  flex: 0 0 auto;
  position: relative;
  transition: background 0.15s;
}

#appShell .qt-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2);
  transition: transform 0.15s;
}

#appShell .qt-switch.is-on { background: var(--primary); }
#appShell .qt-switch.is-on::after { transform: translateX(12px); }

#appShell .qt-ops { display: flex; gap: 1px; flex: 0 0 auto; opacity: 0; min-width: 56px; justify-content: flex-end; }

#appShell .qt-item:hover .qt-ops,
#appShell .qt-item.is-active .qt-ops { opacity: 1; }

#appShell .qt-op {
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

#appShell .qt-op:hover { background: #e4e7ec; color: #101828; }

#appShell .qt-add {
  width: 100%;
  margin-top: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  border-radius: 6px;
  height: 30px;
  font-size: 12px;
  color: #475467;
  cursor: pointer;
}

#appShell .qt-add:hover { border-color: var(--primary); color: var(--primary); }

/* 添加内容的选择框在 #appShell 外面，选择器不能带前缀 */
.qt-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qt-pick {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.qt-pick:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* 七个类型两列排，落单的那个占满整行 */
.qt-pick:last-child:nth-child(odd) { grid-column: 1 / -1; }

#appShell .qt-settings {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

#appShell .qt-settings summary { font-size: 12px; color: #475467; cursor: pointer; }

#appShell .qt-field { margin-top: 8px; }

#appShell .qt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

#appShell .qt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#appShell .qt-grid > .qt-field { margin-top: 0; }

#appShell .qt-field--wide { grid-column: 1 / -1; }

#appShell .qt-field > label:not(.qt-check) {
  display: block;
  font-size: 11px;
  color: #667085;
  margin-bottom: 3px;
  font-weight: 400;
}

#appShell .qt-field input,
#appShell .qt-field select {
  width: 100%;
  height: 30px;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
}

#appShell .qt-field textarea {
  width: 100%;
  min-height: 64px;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}

#appShell .qt-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 74px 18px;
  gap: 5px;
  align-items: center;
  margin-bottom: 6px;
}

#appShell .qt-row input {
  width: 100%;
  height: 28px;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
}

#appShell .qt-checks { display: flex; flex-wrap: wrap; gap: 4px; }

#appShell .qt-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  color: #475467;
}

#appShell .qt-check input {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

#appShell .qt-check.is-on { border-color: var(--primary); color: var(--primary-hover); background: var(--primary-light); }

#appShell .qt-hint {
  font-size: 11px;
  color: #98a2b3;
  margin: 6px 0 0;
  line-height: 1.5;
}

#appShell .qt-empty {
  padding: 40px 12px;
  text-align: center;
  font-size: 13px;
  color: #98a2b3;
}

#appShell .qt-terms-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
}

#appShell .qt-terms-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }

#appShell .qt-terms-head input {
  flex: 1;
  height: 28px;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
}

#appShell .qt-toolbar-select {
  height: 30px;
  max-width: 200px;
  font-size: 12px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
