/* 配饰信息 / 整理范围 / 批量编辑 / 迁入向导 / 设置（owner: 前端整理）。
   仅依赖 tokens.css / base.css / layout.css，不覆盖公共组件类。 */

/* ============================================================
   1. 通用小件
   ============================================================ */
.btn-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.muse-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: muse-spin 0.8s linear infinite;
}

.muse-spinner.is-small {
  width: 13px;
  height: 13px;
  border-width: 2px;
}

.muse-spinner.is-large {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

@keyframes muse-spin {
  to {
    transform: rotate(360deg);
  }
}

.muse-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0;
  color: var(--text-2);
  font-size: 13px;
}

.muse-loading.is-large {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 0;
  text-align: center;
  font-size: 14px;
}

.muse-loading-label {
  line-height: 1.5;
}

.muse-note {
  margin: 6px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.muse-note.is-warn {
  color: var(--warning);
}

.muse-inline-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--danger-soft);
  border-radius: var(--r-2);
  background: var(--danger-soft);
}

.muse-inline-error-icon {
  display: inline-flex;
  color: var(--danger);
  flex: none;
  margin-top: 1px;
}

.muse-inline-error-body {
  min-width: 0;
}

.muse-inline-error-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.muse-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.muse-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.muse-field-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.muse-select {
  appearance: auto;
}

.muse-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.muse-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.muse-radio:hover {
  border-color: var(--accent);
}

.muse-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.muse-radio input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.muse-radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.muse-radio-label {
  font-size: 13.5px;
  font-weight: 500;
}

.muse-radio-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ============================================================
   2. 弹层（批量编辑 / 迁入向导）
   ============================================================ */
.muse-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.32);
  animation: fade-in 160ms var(--ease);
}

.muse-modal {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 90dvh;
  background: var(--surface);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: dialog-in 180ms var(--ease);
}

.muse-modal.batch-modal {
  width: min(620px, 100%);
}

.muse-modal.wizard-modal {
  width: min(920px, 100%);
}

.muse-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 10px;
  flex: none;
}

.muse-modal-heading {
  min-width: 0;
}

.muse-modal-title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.muse-modal-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-2);
}

.muse-modal-close {
  margin-left: auto;
  flex: none;
}

.muse-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.muse-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.muse-modal-foot .btn {
  min-height: 44px;
}

/* ============================================================
   3. 配饰信息视图
   ============================================================ */
.info-view {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-view.has-batch-bar {
  padding-bottom: 120px;
}

.info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.info-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 680;
  letter-spacing: -0.02em;
}

.info-subtitle {
  margin: 4px 0 0;
  max-width: 640px;
  font-size: 13px;
  color: var(--text-2);
}

.info-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- 整理范围横幅 ---- */
.scope-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-3);
  background: var(--accent-soft);
}

.scope-banner-icon {
  display: inline-flex;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.scope-banner-text {
  min-width: 0;
  flex: 1;
}

.scope-banner-title {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.scope-banner-title strong {
  font-weight: 650;
}

.scope-banner-source {
  color: var(--text-2);
}

.scope-banner-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

.scope-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* ---- 面板与筛选 ---- */
.info-panel {
  overflow: hidden;
  min-width: 0;
}

.info-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px 10px;
}

.info-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
}

.info-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--text-3);
  pointer-events: none;
}

.info-search-input {
  padding-left: 38px;
  padding-right: 46px;
}

.info-search-input::-webkit-search-cancel-button {
  display: none;
}

.info-search-clear[hidden],
.info-clear[hidden],
.info-select-all-btn[hidden] {
  display: none;
}

.info-search-clear {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-2);
  color: var(--text-2);
}

.info-search-clear:hover {
  background: var(--surface-3);
  color: var(--text);
}

.info-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.info-select {
  width: auto;
  min-width: 148px;
  max-width: 220px;
  font-size: 13px;
}

.info-sort {
  min-width: 132px;
}

.info-clear {
  flex: none;
}

.info-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 12px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.info-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.info-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.info-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.info-chip-count {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.info-chip.is-active .info-chip-count {
  color: var(--accent);
}

.info-resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.info-result-left {
  min-width: 0;
}

.info-result-text {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.info-result-meta {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--warning);
}

.info-result-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.info-progress-slot:empty {
  display: none;
}

.info-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ---- 表格 ---- */
.info-table-wrap {
  min-width: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.info-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 12px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-3);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.info-table tbody td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.info-row {
  transition: background var(--dur-fast) var(--ease);
}

.info-row:hover {
  background: var(--surface-2);
}

.info-row.is-selected {
  background: var(--accent-soft);
}

.info-row.is-selected:hover {
  background: var(--accent-soft-2);
}

.info-table .col-select {
  width: 56px;
  padding-left: 6px;
  padding-right: 0;
  text-align: center;
}

.info-table .col-item {
  min-width: 220px;
}

.info-table .col-brand {
  width: 13%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  color: var(--text-2);
}

.info-table .col-cat {
  width: 20%;
  color: var(--text-2);
}

.info-table .col-colors {
  width: 104px;
}

.info-table .col-status {
  width: 118px;
}

.info-table .col-actions {
  width: 60px;
  text-align: center;
}

.info-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-1);
  cursor: pointer;
}

.info-check {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 2px 6px 2px 2px;
  border-radius: var(--r-2);
  text-align: left;
}

.info-item:hover {
  background: var(--surface-3);
}

.info-thumb {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
  border-radius: var(--r-1);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.info-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.info-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.info-name {
  font-size: 13.5px;
  font-weight: 520;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-name.is-empty {
  color: var(--text-3);
  font-weight: 500;
}

.info-name-hint {
  font-size: 11px;
  color: var(--warning);
}

.info-locator {
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-item-colors {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.info-cat {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.45;
}

.info-cat-l1 {
  color: var(--text);
}

.info-cat-sep {
  color: var(--text-3);
}

.info-cat-l2 {
  color: var(--text-2);
}

.cell-empty {
  color: var(--text-3);
}

.info-colors {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex: none;
}

.info-color-more {
  font-size: 11px;
  color: var(--text-3);
}

.info-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}

.info-edit-btn {
  min-width: 44px;
  min-height: 44px;
}

.info-select-all-btn {
  min-height: 44px;
  padding: 0 10px;
  font-size: 12.5px;
}

/* 触控目标：所有可点区域至少 44×44（DESIGN §2） */
.scope-banner-actions .btn,
.batch-bar-actions .btn,
.info-head-actions .btn,
.wiz-entries-actions .btn,
.settings-actions .btn,
.settings-invite-actions .btn {
  min-height: 44px;
}

.info-more {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-top: 1px solid var(--border);
}

/* ---- 状态块（空 / 零结果 / 错误） ---- */
.info-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
}

.info-state-icon {
  display: inline-flex;
  color: var(--text-3);
  margin-bottom: 4px;
}

.info-state-title {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
}

.info-state-desc {
  margin: 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.info-state-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.info-skeleton-wrap {
  padding-bottom: 8px;
}

.info-skel-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-skel-thumb {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-1);
}

.info-skel-line {
  display: inline-block;
  width: 120px;
  height: 12px;
  border-radius: 4px;
}

.info-skel-line.is-short {
  width: 64px;
}

.info-skel-box {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.info-skeleton-hint {
  margin: 10px 0 0;
  text-align: center;
}

/* ---- 批量条 ---- */
.info-batch-slot {
  display: none;
}

.info-batch-slot.is-visible {
  display: block;
}

.batch-bar {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  animation: batch-bar-in 180ms var(--ease);
}

@keyframes batch-bar-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

.batch-bar-info {
  min-width: 0;
}

.batch-bar-count {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}

.batch-bar-count strong {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.batch-bar-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.batch-bar-hint.is-warn {
  color: var(--danger);
  font-weight: 500;
}

.batch-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  flex-wrap: wrap;
}

.batch-edit-btn {
  min-height: 44px;
}

/* ============================================================
   4. 批量编辑弹层
   ============================================================ */
.batch-loading {
  padding: 24px 0;
  text-align: center;
}

.batch-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.batch-lead {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

.batch-lead strong {
  font-size: 17px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.batch-hint {
  margin: -4px 0 2px;
}

.batch-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.batch-warnings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-2);
  background: var(--warning-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.batch-warning.is-danger {
  background: var(--danger-soft);
}

.batch-warning-icon {
  display: inline-flex;
  color: var(--warning);
  flex: none;
  margin-top: 1px;
}

.batch-warning.is-danger .batch-warning-icon {
  color: var(--danger);
}

.batch-warning p {
  margin: 0;
}

.batch-summary {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.batch-error-slot:empty {
  display: none;
}

.batch-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.batch-result-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.batch-result-icon {
  display: inline-flex;
  flex: none;
  margin-top: 2px;
}

.batch-result-icon.is-ok {
  color: var(--success);
}

.batch-result-icon.is-warn {
  color: var(--warning);
}

.batch-result-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.batch-result-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.batch-result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.batch-result-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
}

.batch-result-stats strong {
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.batch-result-section h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.batch-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.batch-result-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-1);
  background: var(--surface-2);
  font-size: 12.5px;
}

.batch-result-item-name {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-result-item-reason {
  color: var(--danger);
  text-align: right;
}

.batch-result-item-meta {
  color: var(--text-3);
  font-size: 11.5px;
  text-align: right;
}

/* ============================================================
   5. 迁入向导
   ============================================================ */
.wiz-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.wiz-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-3);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.wiz-drop:hover,
.wiz-drop:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wiz-drop.is-drag {
  border-color: var(--accent);
  background: var(--accent-soft-2);
}

.wiz-drop-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.wiz-drop-icon {
  display: inline-flex;
  color: var(--accent);
}

.wiz-drop-title {
  font-size: 15px;
  font-weight: 600;
}

.wiz-drop-sub {
  font-size: 12.5px;
  color: var(--text-3);
}

.wiz-chosen-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface);
}

.wiz-chosen-icon {
  display: inline-flex;
  color: var(--accent);
  flex: none;
}

.wiz-chosen-text {
  min-width: 0;
  flex: 1;
}

.wiz-chosen-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiz-chosen-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.wiz-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wiz-parsing {
  align-items: center;
  padding: 26px 0 10px;
  text-align: center;
}

.wiz-parsing-wait {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.wiz-elapsed {
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  color: var(--text);
}

.wiz-confirming {
  align-items: center;
  padding: 32px 0;
  text-align: center;
}

.wiz-error-slot:empty {
  display: none;
}

.wiz-counts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wiz-count {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
}

.wiz-count-value {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.wiz-count-label {
  font-size: 12.5px;
  color: var(--text-2);
}

.wiz-count.is-ok .wiz-count-value {
  color: var(--success);
}

.wiz-count.is-warn .wiz-count-value {
  color: var(--warning);
}

.wiz-count.is-danger .wiz-count-value {
  color: var(--danger);
}

.wiz-counts-total {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.wiz-panel {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--surface);
}

.wiz-panel-title {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.wiz-panel-text {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.wiz-panel-text strong {
  color: var(--text);
  font-weight: 600;
}

.wiz-panel-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
}

.wiz-cat-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.wiz-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 12.5px;
}

.wiz-cat-name {
  color: var(--text);
}

.wiz-cat-count {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.wiz-options .muse-field {
  margin-top: 12px;
}

.wiz-entries-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wiz-entries-head .wiz-panel-title {
  margin: 0;
}

.wiz-entries-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wiz-entry-list-wrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  overflow: hidden;
}

.wiz-entry-table-head {
  display: grid;
  grid-template-columns: 52px minmax(120px, 1.2fr) minmax(90px, 1fr) 90px minmax(120px, 1.1fr);
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}

.wiz-entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 296px;
  overflow: auto;
}

.wiz-entry {
  display: grid;
  grid-template-columns: 52px minmax(120px, 1.2fr) minmax(90px, 1fr) 90px minmax(120px, 1.1fr);
  gap: 8px;
  align-items: center;
  padding: 0 10px 0 0;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.wiz-entry:last-child {
  border-bottom: none;
}

.wiz-entry.is-unsupported {
  opacity: 0.62;
}

.wiz-entry.is-duplicate {
  background: var(--warning-soft);
}

.wiz-entry-check-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.wiz-entry-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.wiz-entry-check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.wiz-entry-locator {
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiz-entry-cat {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiz-entry-size {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.wiz-entry-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.wiz-entry-reason {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.wiz-entries-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
}

/* 迁入结果 */
.wiz-result {
  padding-top: 8px;
}

.wiz-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wiz-result-title {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
}

.wiz-result-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.wiz-result-progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.wiz-result-progress-bar {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 240ms var(--ease);
}

.wiz-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wiz-result-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
}

.wiz-result-stat strong {
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.wiz-result-stat span {
  font-size: 12.5px;
  color: var(--text-2);
}

.wiz-result-stat.is-ok strong {
  color: var(--success);
}

.wiz-result-stat.is-danger strong {
  color: var(--danger);
}

.wiz-result-stat.is-warn strong {
  color: var(--warning);
}

.wiz-result-failures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow: auto;
}

.wiz-result-failures li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-1);
  background: var(--surface-2);
  font-size: 12px;
}

.wiz-result-failures .wiz-entry-reason {
  color: var(--danger);
  white-space: normal;
  text-align: right;
}

/* ============================================================
   6. 设置与数据
   ============================================================ */
.settings-view {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 680;
  letter-spacing: -0.02em;
}

.settings-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-2);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.settings-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-card-icon {
  display: inline-flex;
  color: var(--accent);
  flex: none;
}

.settings-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.settings-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.settings-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.settings-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  font-weight: 650;
  flex: none;
}

.settings-account-text {
  min-width: 0;
}

.settings-account-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.settings-account-meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.settings-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.settings-list-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.settings-list-row:last-child {
  border-bottom: none;
}

.settings-list-row dt {
  color: var(--text-2);
  flex: none;
}

.settings-list-row dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.settings-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-status-label {
  font-size: 13.5px;
  font-weight: 500;
}

.settings-status-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.settings-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.settings-invites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
}

.settings-invite-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settings-invite-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.settings-invite-meta {
  font-size: 11.5px;
  color: var(--text-3);
}

.settings-invite-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.settings-error-slot:empty {
  display: none;
}

/* ============================================================
   7. 响应式
   ============================================================ */
@media (max-width: 1199px) {
  .batch-bar {
    left: var(--sidebar-w-narrow);
  }
}

@media (max-width: 1050px) and (min-width: 768px) {
  .info-table {
    font-size: 12.5px;
  }

  .info-table thead th {
    padding: 8px;
  }

  .info-table tbody td {
    padding: 6px 8px;
  }

  .info-item-colors {
    display: flex;
  }

  .info-table .col-colors {
    display: none;
  }
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .info-view {
    padding: 14px 12px calc(28px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .info-view.has-batch-bar {
    padding-bottom: calc(196px + env(safe-area-inset-bottom));
  }

  .info-head {
    flex-direction: column;
    gap: 10px;
  }

  .info-title {
    font-size: 22px;
  }

  .info-head-actions {
    width: 100%;
  }

  .scope-banner {
    flex-direction: column;
    gap: 10px;
  }

  .scope-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .scope-banner-actions .btn {
    flex: 1 1 auto;
  }

  .info-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }

  .info-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .info-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .info-select {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .info-sort {
    min-width: 0;
  }

  .info-clear {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .info-chips {
    padding: 0 12px 12px;
    gap: 6px;
  }

  .info-chip {
    min-height: 44px;
  }

  .info-resultbar {
    padding: 8px 12px;
  }

  .info-table {
    display: block;
    font-size: 13px;
  }

  .info-table thead {
    display: none;
  }

  .info-table tbody {
    display: block;
  }

  .info-table tbody td {
    border-bottom: none;
    padding: 0;
  }

  .info-row {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: 10px;
    row-gap: 2px;
    padding: 10px 52px 12px 6px;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }

  .info-row .col-select {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: auto;
    align-self: start;
    padding: 0;
  }

  .info-row .col-item {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .info-row .col-brand,
  .info-row .col-cat,
  .info-row .col-colors,
  .info-row .col-status {
    grid-column: 2;
    width: auto;
    max-width: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12.5px;
    min-height: 22px;
  }

  .info-row .col-brand {
    grid-row: 2;
  }

  .info-row .col-cat {
    grid-row: 3;
  }

  .info-row .col-colors {
    grid-row: 4;
  }

  .info-row .col-status {
    grid-row: 5;
  }

  .info-row td[data-label]:not(.col-item):not(.col-select)::before {
    content: attr(data-label);
    flex: none;
    width: 64px;
    font-size: 11.5px;
    color: var(--text-3);
  }

  .info-row .col-actions {
    position: absolute;
    top: 6px;
    right: 2px;
    width: 44px;
    padding: 0;
  }

  .info-row .info-item {
    padding-right: 0;
  }

  .info-thumb {
    width: 48px;
    height: 48px;
  }

  .info-swatch {
    width: 14px;
    height: 14px;
  }

  .info-more {
    border-top: none;
  }

  .info-state {
    padding: 40px 16px;
  }

  .batch-bar {
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .batch-bar-actions {
    width: 100%;
  }

  .batch-bar-actions .btn {
    flex: 1 1 auto;
  }

  .batch-edit-btn {
    flex: 1 1 100% !important;
  }

  .muse-modal-backdrop {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .muse-modal,
  .muse-modal.wizard-modal,
  .muse-modal.batch-modal {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .muse-modal-head {
    padding: 14px 14px 8px;
    border-bottom: 1px solid var(--border);
  }

  .muse-modal-body {
    padding: 10px 14px 16px;
  }

  .muse-modal-foot {
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .muse-modal-foot .btn {
    flex: 1 1 auto;
  }

  .wiz-count-value {
    font-size: 22px;
  }

  .wiz-entry-table-head {
    display: none;
  }

  .wiz-entry-list {
    max-height: none;
  }

  .wiz-entry {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 8px;
    row-gap: 2px;
    padding: 6px 10px 10px 0;
  }

  .wiz-entry-check-col {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
  }

  .wiz-entry-locator-col {
    grid-column: 2;
    grid-row: 1;
    font-weight: 550;
    color: var(--text);
  }

  .wiz-entry-cat-col {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }

  .wiz-entry-size-col {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .wiz-entry-status-col {
    grid-column: 2 / span 2;
    grid-row: 3;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .wiz-result-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wiz-counts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-view {
    padding: 14px 12px calc(28px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .settings-title {
    font-size: 22px;
  }

  .settings-card {
    padding: 14px;
  }

  .settings-invite {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-invite-actions {
    width: 100%;
  }
}

/* ============================================================
   8. V2 项目 / 智能校正 / 设置补充
   （owner: 前端整理；玻璃材质由 visual teammate 的 glass.css 提供，这里不覆盖公共 token）
   ============================================================ */

/* ---- 8.1 信息表格：项目列 ---- */
.info-table .col-project {
  width: 16%;
  min-width: 120px;
  max-width: 220px;
  color: var(--text-2);
}

.info-projects {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}

.info-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 132px;
  min-height: 22px;
  padding: 1px 8px 1px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-2);
}

.info-project-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.info-project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-project-more {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1;
}

.info-project-select {
  min-width: 132px;
  max-width: 200px;
}

/* ---- 8.2 批量编辑：项目分区 ---- */
.batch-projects-slot:empty {
  display: none;
}

.batch-projects {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--surface-2);
}

.batch-projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-projects-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.batch-projects-icon {
  display: inline-flex;
  color: var(--accent);
}

.batch-projects-note {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 11px;
  color: var(--text-3);
}

.batch-projects-hint {
  margin: 0;
}

.batch-project-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-project-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-project-group-title {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
}

.batch-project-group-hint {
  font-size: 11.5px;
  color: var(--text-3);
}

.batch-project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.batch-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.batch-project-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.batch-project-chip.is-add.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.batch-project-chip.is-remove.is-selected {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.batch-project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.batch-project-check {
  display: inline-flex;
  color: currentColor;
}

.batch-project-empty {
  margin: 0;
}

.batch-result-detail {
  margin: 0;
}

/* ---- 8.3 智能校正弹层 ---- */
.muse-modal.recog-modal {
  width: min(680px, 100%);
}

.recog-empty,
.recog-error {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 8px;
}

.recog-empty {
  align-items: center;
  text-align: center;
}

.recog-empty-icon {
  display: inline-flex;
  color: var(--success);
}

.recog-empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.recog-empty-text {
  margin: 0;
  max-width: 460px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.recog-preview,
.recog-applied {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.recog-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.recog-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
}

.recog-stat strong {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.recog-stat span {
  font-size: 12px;
  color: var(--text-2);
}

.recog-stat.is-write strong {
  color: var(--accent);
}

.recog-stat.is-clear strong {
  color: var(--warning);
}

.recog-stat.is-error strong {
  color: var(--danger);
}

.recog-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.recog-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-1);
  background: var(--surface-2);
  font-size: 12.5px;
}

.recog-item-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recog-item-name {
  font-weight: 550;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recog-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.recog-write {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
}

.recog-item-noop {
  font-size: 11.5px;
  color: var(--text-3);
}

.recog-item-error {
  font-size: 11.5px;
  color: var(--danger);
  overflow-wrap: anywhere;
}

.recog-applied-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* ---- 8.4 设置：项目管理 / 自动识别 ---- */
.settings-project-create {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface-2);
}

.settings-project-input {
  flex: 1 1 180px;
  min-width: 0;
}

.settings-color-swatches {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.settings-color-swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.settings-color-swatch:hover {
  transform: scale(1.08);
}

.settings-color-swatch.is-selected {
  border-color: var(--text);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.settings-project-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-project-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface);
}

.settings-project-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.settings-project-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.settings-project-name {
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-project-meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.settings-project-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.settings-project-action {
  min-height: 44px;
}

.settings-project-action.is-danger {
  color: var(--danger);
}

.settings-project-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.settings-project-edit-actions {
  display: flex;
  gap: 6px;
}

.settings-project-edit-actions .btn {
  min-height: 44px;
}

.settings-text.compact {
  font-size: 12px;
  color: var(--text-3);
}

/* ---- 8.5 迁入向导：识别建议 ---- */
.wiz-entry-cat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: normal;
  line-height: 1.4;
}

.wiz-entry-cat-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 识别建议可能包含品牌 / 类目 / 颜色三段：允许两行，避免只剩省略号。 */
@media (min-width: 768px) {
  .wiz-entry-table-head,
  .wiz-entry {
    grid-template-columns: 52px minmax(120px, 1.1fr) minmax(150px, 1.5fr) 90px minmax(120px, 1.1fr);
  }
}

.wiz-entry-suggestion {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 11px;
  line-height: 1.35;
  color: var(--accent);
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wiz-recognition-note {
  display: flex;
  flex-direction: column;
}

@media (pointer: coarse) {
  /* 触控命中 ≥44：项目颜色选择也是可点目标。 */
  .settings-color-swatch {
    width: 44px;
    height: 44px;
  }
}

/* ---- 8.6 响应式补充 ---- */
@media (max-width: 1050px) and (min-width: 768px) {
  /* 平板宽度：优先保留品牌 / 类目 / 项目，隐藏处理状态与颜色，避免横向滚动。 */
  .info-table .col-status {
    display: none;
  }

  .info-table .col-project {
    width: 18%;
    min-width: 96px;
  }

  .info-table .col-item {
    min-width: 180px;
  }

  .info-table .col-cat {
    width: 18%;
  }
}

@media (max-width: 767px) {
  /* 提高特异性：visual.css 的 .info-view.has-batch-bar 在 organize.css 之后加载，
     这里必须覆盖成足以容纳两行批量按钮的高度，避免最后一行被固定批量条挡住。 */
  .info-view.info-view.has-batch-bar {
    padding-bottom: calc(268px + env(safe-area-inset-bottom));
  }

  /* 卡片式行：项目占第 4 行，颜色 / 状态顺延。 */
  .info-row {
    grid-template-rows: auto auto auto auto auto auto;
  }

  .info-row .col-select {
    grid-row: 1 / span 6;
  }

  .info-row .col-project {
    grid-column: 2;
    grid-row: 4;
    width: auto;
    max-width: none;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    min-height: 22px;
  }

  .info-row .col-project::before {
    content: attr(data-label);
    flex: none;
    width: 64px;
    font-size: 11.5px;
    color: var(--text-3);
  }

  .info-row .col-colors {
    grid-row: 5;
  }

  .info-row .col-status {
    grid-row: 6;
    display: flex;
  }

  .info-project-chip {
    max-width: 46vw;
  }

  .batch-projects {
    padding: 10px 12px;
  }

  .batch-project-chip {
    min-height: 40px;
    padding: 0 10px;
  }

  .recog-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recog-stat strong {
    font-size: 19px;
  }

  .recog-list {
    max-height: none;
  }

  .settings-project-row {
    flex-wrap: wrap;
  }

  .settings-project-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .settings-project-create {
    align-items: stretch;
  }

  .settings-project-input {
    flex: 1 1 100%;
  }

  .settings-color-swatch {
    width: 34px;
    height: 34px;
  }

  .settings-color-swatches {
    flex: 1 1 auto;
  }

  .wiz-entry-suggestion {
    white-space: normal;
  }
}
