/* input: _shared/tokens.css, _shared/components.css
 * output: D 方案 — 融入式首次引导 playground 样式
 * pos: 跨账号生命周期 3 状态(空态 / 进行中 / 收口),无 splash,无强遮罩
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ql-font-base, -apple-system, "PingFang SC", system-ui, sans-serif);
  background: #f3f4f6;
  color: var(--ql-text);
  min-height: 100vh;
}

/* ============ 顶部 ctrl bar ============ */
.ctrl-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ql-surface);
  border-bottom: 1px solid var(--ql-border);
  padding: 18px 28px 14px;
  box-shadow: 0 2px 12px -4px color-mix(in oklch, var(--ql-text) 8%, transparent);
}

.ctrl-bar__head { margin-bottom: 14px; }
.ctrl-bar__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ql-text);
  letter-spacing: -0.01em;
}
.ctrl-bar__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ql-text-secondary);
}

.ctrl-bar__sub em {
  font-style: normal;
  font-weight: 700;
  color: var(--ql-action);
  background: color-mix(in oklch, var(--ql-action) 10%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}

.ctrl-bar__hints {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hint-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ql-text-secondary);

  kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--ql-surface);
    border: 1px solid var(--ql-border);
    border-bottom-width: 1.5px;
    color: var(--ql-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
  }
}
.ctrl-reset {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--ql-border);
  border-radius: 8px;
  background: var(--ql-surface);
  color: var(--ql-text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 160ms ease;

  &:hover {
    border-color: var(--ql-action);
    color: var(--ql-action);
    background: color-mix(in oklch, var(--ql-action) 5%, var(--ql-surface));
  }
}

/* 旧 ctrl-bar__tabs(已废,保留向后兼容兜底) */
.ctrl-bar__tabs {
  display: none;
}

.ctrl-tab {
  cursor: pointer;
  padding: 10px 14px 11px;
  border: 1.5px solid var(--ql-border);
  border-radius: 12px;
  background: var(--ql-surface);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);

  input { position: absolute; opacity: 0; pointer-events: none; }

  &:hover {
    border-color: color-mix(in oklch, var(--ql-action) 30%, var(--ql-border));
    background: color-mix(in oklch, var(--ql-action) 3%, var(--ql-surface));
  }

  &[data-active="true"] {
    border-color: var(--ql-action);
    background: color-mix(in oklch, var(--ql-action) 6%, var(--ql-surface));
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--ql-action) 12%, transparent);
  }
}

.ctrl-tab__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ctrl-tab__badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ql-action);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ctrl-tab__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ql-text);
}
.ctrl-tab__desc {
  font-size: 11.5px;
  color: var(--ql-text-secondary);
  line-height: 1.5;
}

/* ============ stage(舞台) ============ */
.stage {
  position: relative;
  padding: 24px;
  display: flex;
  justify-content: center;
}

/* drawer 收起态 — 只藏 checklist + spotlight + coach,不再依赖 stage[data-state] */
.stage[data-onboarding-open="false"] .checklist--gamified,
.stage[data-onboarding-open="false"] .onboarding-spotlight,
.stage[data-onboarding-open="false"] .spotlight-coach {
  opacity: 0;
  pointer-events: none;
}
.stage[data-onboarding-open="false"] .checklist--gamified {
  transform: translateX(34px) scale(0.98);
}
.stage[data-onboarding-open="false"] .onboarding-target {
  opacity: 1;
}
.stage[data-onboarding-open="false"] .onboarding-target--active {
  border-color: var(--ql-border-light);
  background: var(--ql-surface);
  transform: none;
  box-shadow: none;
}

/* ============ shell(完整应用壳) ============ */
.shell {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 760px;
  background: #EDEDF0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px -8px rgba(0,0,0,0.12),
    0 24px 56px -16px rgba(0,0,0,0.18);
  border: 1px solid color-mix(in oklch, var(--ql-text) 8%, transparent);
  display: grid;
  grid-template-rows: 36px 1fr;
  grid-template-columns: 220px 1fr;
}

/* mac chrome */
.window-chrome {
  grid-column: 1 / 3;
  background: var(--ql-surface);
  border-bottom: 1px solid var(--ql-border-light);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
}
.mac-traffic { display: flex; gap: 7px; }
.mac-light {
  width: 11px; height: 11px; border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.08);
}
.mac-light--close { background: #FF5F57; }
.mac-light--min { background: #FEBC2E; }
.mac-light--max { background: #28C840; }

.window-chrome__tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  align-items: center;
}
.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ql-text);
  background: color-mix(in oklch, var(--ql-text) 5%, transparent);
}
.ws-tab.active {
  background: var(--ql-surface);
  box-shadow: 0 0 0 1px var(--ql-border-light) inset, 0 1px 2px rgba(0,0,0,0.04);
}
.ws-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--ql-action);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* sidebar */
.sidebar {
  background: color-mix(in oklch, var(--ql-surface) 88%, transparent);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--ql-border-light);
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.sidebar-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--ql-primary);
  letter-spacing: -0.02em;

  em {
    font-style: normal;
    color: var(--ql-primary);
  }
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: color-mix(in oklch, var(--ql-text) 4%, transparent);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ql-text-muted);
  cursor: pointer;
}

.sidebar-new-task {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ql-surface);
  border: 1px solid var(--ql-border);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ql-text);
  cursor: pointer;
  font-family: inherit;

  .sidebar-new-task__icon {
    font-size: 14px;
    color: var(--ql-action);
    font-weight: 700;
  }
}

.sidebar-section-label {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ql-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  gap: 1px;

  li {
    padding: 6px 8px;
    font-size: 11.5px;
    color: var(--ql-text-secondary);
    border-radius: 6px;
    cursor: pointer;

    &:hover {
      background: color-mix(in oklch, var(--ql-text) 4%, transparent);
      color: var(--ql-text);
    }
  }

  .empty-project-hint {
    color: var(--ql-text-muted);
    font-style: italic;
    font-size: 11px;
    line-height: 1.5;
    padding: 10px 8px;
    cursor: default;
    &:hover { background: transparent; }
  }
}

/* ============ Checklist Widget ============ */
.checklist {
  margin-top: 8px;
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 收起态(共用 A/C) */
.checklist--collapsed {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;

  &:hover {
    border-color: color-mix(in oklch, var(--ql-action) 30%, var(--ql-border));
    box-shadow: 0 4px 12px -4px color-mix(in oklch, var(--ql-action) 18%, transparent);
  }
}

.cl-ring {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.cl-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.cl-ring-track {
  fill: none;
  stroke: color-mix(in oklch, var(--ql-text) 8%, transparent);
  stroke-width: 3;
}
.cl-ring-bar {
  fill: none;
  stroke: var(--ql-action);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: var(--ring-offset, 56.55);
  transition: stroke-dashoffset 400ms ease-in-out;
}
.cl-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ql-action);
  font-variant-numeric: tabular-nums;
}

.cl-collapsed-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.cl-collapsed-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ql-text);
}
.cl-collapsed-sub {
  font-size: 10.5px;
  color: var(--ql-text-muted);
}
.cl-expand-arrow {
  color: var(--ql-text-muted);
  font-size: 13px;
}

/* 展开态(B) */
.checklist--expanded {
  display: flex !important;
  flex-direction: column;
  padding: 0;
  background: color-mix(in oklch, var(--ql-surface) 92%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid color-mix(in oklch, var(--ql-text) 6%, transparent);
  transform: translateX(0);
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, white 50%, transparent),
    0 8px 20px -6px color-mix(in oklch, var(--ql-action) 18%, transparent),
    0 16px 40px -10px color-mix(in oklch, var(--ql-action) 22%, transparent);
  transition:
    transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 180ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}
/* 还原 — 跟 sidebar normal flex flow 一致,避免横压主区 */
.checklist--gamified {
  margin-top: 8px;
  width: 100%;
}
.cl-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cl-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--ql-border-light);
}
.cl-title {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ql-text);
}
.cl-progress-text {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ql-action);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cl-collapse {
  border: none;
  background: transparent;
  color: var(--ql-text-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;

  &:hover { color: var(--ql-text); }
}
.cl-progress {
  height: 3px;
  background: color-mix(in oklch, var(--ql-text) 6%, transparent);
  position: relative;
}
.cl-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ql-action);
  border-radius: 0 2px 2px 0;
  transition: width 320ms ease;
}
.cl-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cl-item {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;

  &:hover {
    background: color-mix(in oklch, var(--ql-text) 4%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -12px rgba(0,0,0,0.28);
  }
}
.cl-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ql-border);
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 9px;
}
.cl-item--done .cl-check {
  background: color-mix(in oklch, var(--ql-action) 14%, transparent);
  border-color: var(--ql-action);
  color: var(--ql-action);
}
.cl-item--done {
  color: var(--ql-text-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklch, var(--ql-text-muted) 60%, transparent);
}
.cl-item--active {
  background: color-mix(in oklch, var(--ql-action) 6%, transparent);
  box-shadow:
    0 0 0 1.5px color-mix(in oklch, var(--ql-action) 25%, transparent);

  .cl-check {
    background: var(--ql-action);
    border-color: var(--ql-action);
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--ql-action) 18%, transparent);
    animation: pulse 1600ms ease-in-out infinite;
  }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklch, var(--ql-action) 18%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklch, var(--ql-action) 8%, transparent); }
}
.cl-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.cl-item-title {
  color: var(--ql-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}
.cl-item--active .cl-item-title { color: var(--ql-action); font-weight: 700; }
.cl-item-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ql-text-muted);
}
.cl-arrow {
  color: var(--ql-action);
  font-size: 11px;
  align-self: center;
}
.cl-dismiss {
  display: block;
  margin: 4px 8px 8px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--ql-text-muted);
  font-size: 10.5px;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;

  &:hover { background: color-mix(in oklch, var(--ql-text) 4%, transparent); color: var(--ql-text); }
}

/* sidebar footer */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--ql-border-light);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ql-primary-300), var(--ql-primary-500));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ql-text);
}

.help-fab {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ql-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;

  &:hover {
    background: color-mix(in oklch, var(--ql-text) 8%, transparent);
    color: var(--ql-action);
  }
}
.help-fab--first-visit::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in oklch, var(--ql-action) 64%, transparent);
  animation: help-ring-pulse 1500ms ease-in-out infinite;
}
@keyframes help-ring-pulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.18);
  }
}

/* ============ content(主区) ============ */
.content {
  position: relative;
  background: #EDEDF0;
  overflow-y: auto;
  padding: 28px 36px;
  scroll-behavior: smooth;
}

/* ============ Demo banner(主区顶部预填示例提示) ============ */
.view-demo {
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.demo-banner {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.demo-banner__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.demo-banner__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.demo-banner__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ql-text);
}
.demo-banner__sub {
  font-size: 11.5px;
  color: var(--ql-text-secondary);
  line-height: 1.5;
}
.demo-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.demo-banner__sep {
  color: var(--ql-text-muted);
  font-size: 10px;
}

/* A 游戏化 banner:berry 渐变 + 强调 */
.demo-banner--gamified {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--ql-action) 14%, transparent),
    color-mix(in oklch, var(--ql-action) 6%, transparent)
  );
  border: 1px solid color-mix(in oklch, var(--ql-action) 28%, transparent);
  box-shadow: 0 4px 12px -4px color-mix(in oklch, var(--ql-action) 18%, transparent);

  .demo-banner__icon {
    background: var(--ql-action);
    color: #fff;
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--ql-action) 18%, transparent);
  }
}

/* B 去游戏化 banner:中性,克制 */
.demo-banner--neutral {
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  border-left: 3px solid color-mix(in oklch, var(--ql-action) 50%, var(--ql-border));

  .demo-banner__title {
    font-size: 12.5px;
    font-weight: 700;
  }
  .demo-banner__sub {
    font-size: 11px;
    color: var(--ql-text-muted);
  }
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}
.btn-link {
  border: none;
  background: transparent;
  color: var(--ql-action);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
  border-radius: 4px;

  &:hover { background: color-mix(in oklch, var(--ql-action) 8%, transparent); }
}
.btn-link--mute {
  color: var(--ql-text-muted);

  &:hover { color: var(--ql-text-secondary); background: color-mix(in oklch, var(--ql-text) 4%, transparent); }
}

/* ============ Sidebar Project items ============ */
.proj-item {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  color: var(--ql-text-secondary);
  border-radius: 6px;
  cursor: pointer;

  &:hover {
    background: color-mix(in oklch, var(--ql-text) 4%, transparent);
    color: var(--ql-text);
  }
}
.proj-item--active {
  background: color-mix(in oklch, var(--ql-action) 8%, transparent);
  color: var(--ql-action);
  font-weight: 700;

  &:hover { background: color-mix(in oklch, var(--ql-action) 12%, transparent); }
}
.proj-item--demo .proj-mark,
.ws-tab__demo-mark {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: color-mix(in oklch, var(--ql-action) 14%, transparent);
  color: var(--ql-action);
  border: 1px solid color-mix(in oklch, var(--ql-action) 30%, transparent);
}
.ws-tab__demo-mark { margin-right: 2px; }
.proj-empty-hint {
  display: block !important;
  padding: 8px 8px;
  font-size: 10.5px;
  color: var(--ql-text-muted);
  font-style: italic;
  line-height: 1.5;
  cursor: default;
  &:hover { background: transparent !important; }
}

/* ============ B · 去游戏化 Checklist(neutral) ============ */
.checklist--neutral {
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  box-shadow: none;
  backdrop-filter: none;
}
.cl-header--neutral {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ql-border-light);
}
.cl-icon-info {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ql-text) 6%, transparent);
  color: var(--ql-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cl-icon-info--lg {
  width: 22px;
  height: 22px;
  font-size: 13px;
}
.cl-list--neutral {
  padding: 4px 6px;
  gap: 1px;
}
.cl-item--neutral {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: default;

  &:hover { background: color-mix(in oklch, var(--ql-text) 3%, transparent); }
}
.cl-item--neutral .cl-item-title {
  font-size: 11.5px;
  line-height: 1.4;
}
.cl-item--neutral .cl-item-desc {
  font-size: 10px;
  line-height: 1.4;
}
.cl-check-neutral {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ql-text) 25%, transparent);
  flex-shrink: 0;
}
.cl-item--neutral.cl-item--tried {
  color: var(--ql-text-muted);

  .cl-check-neutral {
    background: color-mix(in oklch, var(--ql-text) 18%, transparent);
  }
}
.cl-item--neutral.cl-item--current {
  color: var(--ql-text);

  .cl-check-neutral {
    background: var(--ql-action);
  }
  .cl-item-title {
    font-weight: 700;
    color: var(--ql-text);
  }
}
.cl-item-tag {
  font-size: 9.5px;
  color: var(--ql-text-muted);
  margin-left: auto;
  letter-spacing: 0.04em;
}
.cl-neutral-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid var(--ql-border-light);
}
.cl-neutral-hint {
  font-size: 10.5px;
  color: var(--ql-text-muted);
}
.cl-dismiss-neutral {
  border: none;
  background: transparent;
  color: var(--ql-text-secondary);
  font-size: 10.5px;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
  border-radius: 4px;

  &:hover { background: color-mix(in oklch, var(--ql-text) 4%, transparent); color: var(--ql-text); }
}

/* B 收起态 — 去游戏化形态 */
.checklist--neutral-collapsed {
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  box-shadow: none;
}

/* ============ A · 紧凑 Hero + 空态筛选条件 ============ */
.view-empty {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}
.empty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
  padding: 12px 24px 18px;
}
.empty-hero--compact {
  padding: 4px 24px 14px;
}
.empty-brand {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ql-action);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.empty-brand::before,
.empty-brand::after {
  content: '';
  width: 24px;
  height: 1px;
  background: color-mix(in oklch, var(--ql-action) 40%, transparent);
}
.empty-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ql-text);
  margin: 0 0 6px;
  line-height: 1.2;
}
.empty-sub {
  font-size: 13.5px;
  color: var(--ql-text-secondary);
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 540px;

  em {
    font-style: normal;
    color: var(--ql-action);
    font-weight: 700;
  }
}

.empty-features {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 0;
}
.ef-card {
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  border-radius: 12px;
  padding: 11px 12px 11px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    border-color: color-mix(in oklch, var(--ql-action) 25%, var(--ql-border));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px color-mix(in oklch, var(--ql-action) 14%, transparent);
  }
}
.ef-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ql-action) 10%, transparent);
  color: var(--ql-action);
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ef-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ql-text);
  margin-top: 1px;
}
.ef-desc {
  font-size: 11px;
  color: var(--ql-text-secondary);
  line-height: 1.5;
}

/* 空态筛选条件 — 紧接 hero */
.empty-filter {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}
.empty-filter__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ql-action);
  font-weight: 600;
  margin-bottom: 2px;
  position: relative;
}
.empty-filter__divider::before,
.empty-filter__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklch, var(--ql-action) 25%, transparent), transparent);
  margin: 0 12px;
}

.fr--empty {
  border-style: dashed;
  background: color-mix(in oklch, var(--ql-surface) 70%, transparent);
}
.fg--empty {
  border-style: dashed;
  background: color-mix(in oklch, var(--ql-surface) 70%, transparent);
}
.fr-value--placeholder {
  color: var(--ql-text-muted);
  font-style: italic;
  font-size: 12px;
}
.fr-chev { color: var(--ql-text-muted); margin-left: auto; }
.fg-row--placeholder {
  font-size: 11.5px;
  color: var(--ql-text-muted);
  font-style: italic;
}
.btn-primary[disabled],
.btn-secondary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 12px;
}
.empty-hint {
  font-size: 11.5px;
  color: var(--ql-text-muted);
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.empty-hint::before {
  content: '↙';
  font-size: 13px;
  color: var(--ql-action);
}

/* ============ B · 筛选页 mock ============ */
.view-filter {
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.ai-filter__head { margin-bottom: 6px; }
.ai-filter__brand {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ql-action);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.ai-filter__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ql-text);
  letter-spacing: -0.02em;
  margin: 0;
}
.ai-filter__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ql-text-secondary);

  em { font-style: normal; color: var(--ql-action); font-weight: 700; }
}

.fr {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  border-radius: 10px;
  font-size: 12.5px;
}
.fr-icon { color: var(--ql-text-muted); font-size: 12px; }
.fr-label {
  font-weight: 700;
  color: var(--ql-text);
  font-size: 11.5px;
  min-width: 72px;
}
.fr-value { color: var(--ql-text); flex: 1; }

.fg {
  display: flex !important;
  gap: 10px;
  padding: 11px 14px;
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  border-left: 3px solid var(--ql-primary);
  border-radius: 10px;
  align-items: stretch;
  position: relative;
}
.fg--ours { border-left-color: var(--ql-action); }
.fg--spotlight {
  box-shadow:
    0 0 0 3px color-mix(in oklch, var(--ql-action) 14%, transparent),
    0 8px 22px -6px color-mix(in oklch, var(--ql-action) 22%, transparent);
  border-color: color-mix(in oklch, var(--ql-action) 35%, var(--ql-border-light));
}
.fg-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ql-text-secondary);
  min-width: 64px;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
}
.fg-rows {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ql-text);
  flex: 1;

  b { font-weight: 700; color: var(--ql-action); }
}
.fg-row--muted { color: var(--ql-text-muted); font-size: 11.5px; }
.fg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: color-mix(in oklch, var(--ql-action) 8%, transparent);
  color: var(--ql-action);
  border: 1px solid color-mix(in oklch, var(--ql-action) 30%, transparent);
  align-self: center;
  margin-left: auto;
}
.fg-badge::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ql-action);
}

.filter-sidebar,
.result-list,
.cart-panel,
.export-submit-area,
.completion-state {
  background: color-mix(in oklch, var(--ql-surface) 96%, transparent);
  border: 1px solid var(--ql-border-light);
  border-radius: 10px;
}
.filter-sidebar {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
.onboarding-target {
  position: relative;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    background 300ms ease,
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* 非激活态:轻微淡出,让激活态自然突出(无需全局遮罩) */
.stage[data-onboarding-open="true"] .onboarding-target {
  opacity: 0.62;
}
.stage[data-onboarding-open="true"] .onboarding-target--active {
  opacity: 1;
  border-color: color-mix(in oklch, var(--ql-action) 55%, var(--ql-border-light));
  background: var(--ql-surface);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px color-mix(in oklch, var(--ql-action) 16%, transparent),
    0 8px 24px -8px color-mix(in oklch, var(--ql-action) 28%, transparent),
    0 18px 40px -12px color-mix(in oklch, var(--ql-action) 22%, transparent);
}
.section-head {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ql-text);
}
.section-head span {
  color: var(--ql-text-muted);
  font-size: 11.5px;
}
.result-list,
.cart-panel {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.result-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ql-surface);
  border: 1px solid color-mix(in oklch, var(--ql-text) 5%, transparent);
  border-radius: 8px;
}
.result-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.result-main strong {
  color: var(--ql-text);
  font-size: 13px;
  line-height: 1.35;
}
.result-main span {
  color: var(--ql-text-muted);
  font-size: 11.5px;
  line-height: 1.4;
}
.btn-xs {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11px;
}
.cart-chip-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}
.cart-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--ql-action) 8%, transparent);
  color: var(--ql-action);
  font-size: 12px;
  font-weight: 700;
}
.export-submit-area {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}
.submit-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.submit-copy strong,
.completion-state strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ql-text);
}
.submit-copy span,
.completion-state span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ql-text-muted);
}
.completion-state {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 24px;
}
.completion-state__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--ql-action) 12%, transparent);
  color: var(--ql-action);
  font-weight: 800;
}

/* 全局遮罩已砍 — 重点突出仅靠 .onboarding-target--active 自身的 glow + lift +
   非激活态淡出。spotlight box 仅保留作脉冲光晕装饰,无遮罩。 */
.onboarding-spotlight {
  position: absolute;
  left: var(--spotlight-left, 258px);
  top: var(--spotlight-top, 260px);
  width: var(--spotlight-width, 560px);
  height: var(--spotlight-height, 86px);
  border-radius: 12px;
  pointer-events: none;
  z-index: 28;
  border: 1.5px solid color-mix(in oklch, var(--ql-action) 35%, transparent);
  box-shadow:
    0 0 0 4px color-mix(in oklch, var(--ql-action) 8%, transparent);
  background: transparent;
  animation: spotlight-pulse 2200ms ease-in-out infinite;
  transition:
    left 300ms ease,
    top 300ms ease,
    width 300ms ease,
    height 300ms ease,
    opacity 160ms ease;
}
@keyframes spotlight-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--ql-action) 8%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklch, var(--ql-action) 4%, transparent); }
}
.spotlight-coach {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ql-action);
  color: #fff;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 6px 14px -4px color-mix(in oklch, var(--ql-action) 35%, transparent);
  position: absolute;
  left: var(--coach-left, 270px);
  top: var(--coach-top, 360px);
  z-index: 35;
  max-width: 270px;
  pointer-events: none;
  transition:
    left 300ms ease,
    top 300ms ease,
    opacity 160ms ease;
}
.spotlight-coach::before {
  content: '';
  position: absolute;
  left: 16px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--ql-action);
  transform: rotate(45deg);
}
.spotlight-coach__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.filter-cta {
  display: flex !important;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ============ 通用按钮 ============ */
.btn-primary {
  padding: 9px 18px;
  background: var(--ql-action);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px -2px color-mix(in oklch, var(--ql-action) 35%, transparent);

  &:hover {
    background: color-mix(in oklch, var(--ql-action) 88%, black);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -2px color-mix(in oklch, var(--ql-action) 45%, transparent);
  }
  &:active { transform: translateY(0); }
}
.btn-secondary {
  padding: 9px 18px;
  background: var(--ql-surface);
  color: var(--ql-text);
  border: 1px solid var(--ql-border);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;

  &:hover { background: color-mix(in oklch, var(--ql-text) 4%, var(--ql-surface)); }
}

/* ============ C · 建联清单(收口) ============ */
.view-cart {
  flex-direction: column;
  width: 100%;
  gap: 0;
}
.cart-page__head {
  display: flex !important;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ql-border-light);
  margin-bottom: 12px;
}
.cart-page__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ql-text);
  letter-spacing: -0.02em;
  margin: 0;
}
.cart-page__count {
  font-size: 12px;
  color: var(--ql-text-muted);
}

.cand-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--ql-surface);
  border: 1px solid var(--ql-border-light);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: all 160ms ease;

  &:hover {
    border-color: color-mix(in oklch, var(--ql-action) 20%, var(--ql-border));
    transform: translateX(2px);
  }
}
.cand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;

  &[data-color="pink"]   { background: linear-gradient(135deg, oklch(0.78 0.16 350), oklch(0.62 0.20 350)); }
  &[data-color="purple"] { background: linear-gradient(135deg, oklch(0.78 0.13 320), oklch(0.55 0.16 320)); }
  &[data-color="blue"]   { background: linear-gradient(135deg, oklch(0.78 0.12 240), oklch(0.55 0.16 240)); }
}
.cand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ql-text);
  min-width: 130px;
}
.cand-meta {
  font-size: 11.5px;
  color: var(--ql-text-secondary);
  flex: 1;
}
.cand-meta b { font-weight: 700; color: var(--ql-text); }
.cand-remove {
  border: none;
  background: transparent;
  color: var(--ql-text-muted);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;

  &:hover { background: color-mix(in oklch, var(--ql-error) 12%, transparent); color: var(--ql-error); }
}

.cart-submit-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ql-border-light);
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  position: relative;
}

/* contextual tooltip(一次性) */
.ctx-tooltip {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ql-text);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  max-width: 460px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.25);
  position: relative;
  align-self: flex-end;
  animation: ctx-pop 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ctx-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ctx-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 28px;
  width: 10px;
  height: 10px;
  background: var(--ql-text);
  transform: rotate(45deg);
}
.ctx-tooltip__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.ctx-tooltip__body {
  flex: 1;
  line-height: 1.5;
  font-weight: 500;
}
.ctx-tooltip__close {
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;

  &:hover { background: rgba(255,255,255,0.28); }
}

.cart-submit-btn {
  align-self: flex-end;
}
