/**
 * input: _shared/tokens.css, _shared/components.css
 * output: 6 变体引导 + tooltip + Toast + 候选 mock + 真实 chrome 外壳
 * pos: 配合 飞书评审。定型后引导样式落到 src/renderer/components/onboarding/*
 */

/* ============ 总外壳 ============ */
.proto-shell { display: grid; grid-template-columns: 320px 1fr; height: 100vh; font-family: var(--ql-font-base); color: var(--ql-text); }
body { margin: 0; background: var(--ql-bg); font-family: var(--ql-font-base); }

/* 左侧控制面板（参考 quota-system） */
.ctrl { background: var(--ql-surface); border-right: 1px solid var(--ql-border-light); padding: 24px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.ctrl__header { padding-bottom: 14px; border-bottom: 1px solid var(--ql-border-light); }
.ctrl__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.ctrl__sub { font-size: 12px; color: var(--ql-text-muted); line-height: 1.5; }
.ctrl__group-title { font-size: 11px; font-weight: 600; color: var(--ql-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ctrl__options { display: flex; flex-direction: column; gap: 6px; }
.ctrl__radio { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--ql-border-light); border-radius: 10px; cursor: pointer; transition: all .2s cubic-bezier(0.2,0,0,1); }
.ctrl__radio:hover { border-color: var(--ql-border); background: var(--ql-surface-hover); }
.ctrl__radio[data-active="true"] { border-color: var(--ql-action); background: color-mix(in oklch, var(--ql-action) 4%, transparent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ql-action) 8%, transparent); }
.ctrl__radio input { display: none; }
.ctrl__dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ql-border); background: var(--ql-surface); flex-shrink: 0; margin-top: 2px; position: relative; }
.ctrl__radio[data-active="true"] .ctrl__dot { border-color: var(--ql-action); background: var(--ql-action); }
.ctrl__radio[data-active="true"] .ctrl__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.ctrl__radio-text { flex: 1; min-width: 0; }
.ctrl__radio-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ctrl__radio-desc { font-size: 11px; color: var(--ql-text-muted); line-height: 1.4; }
.ctrl__guide { padding: 14px 16px; background: linear-gradient(135deg, color-mix(in oklch, var(--ql-action) 4%, #fff), color-mix(in oklch, var(--ql-primary) 3%, #fff)); border: 1px solid color-mix(in oklch, var(--ql-action) 15%, transparent); border-radius: 14px; }
.ctrl__guide .ctrl__group-title { margin-bottom: 8px; color: var(--ql-action); }
.guide-rule { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-rule li { position: relative; padding: 0 0 0 14px; font-size: 12px; color: var(--ql-text-secondary); line-height: 1.55; }
.guide-rule li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ql-action); }
.guide-rule li strong { color: var(--ql-action); font-weight: 700; }
.ctrl__scenario { display: flex; flex-direction: column; gap: 6px; }
.ctrl__scenario-item { padding: 10px 12px; background: var(--ql-surface-alt); border-radius: 10px; font-size: 12px; color: var(--ql-text-secondary); line-height: 1.55; border-left: 3px solid var(--ql-action); }
.ctrl__scenario-item strong { color: var(--ql-text); font-weight: 600; }
.ctrl__footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ql-border-light); font-size: 11px; color: var(--ql-text-muted); line-height: 1.7; }
.ctrl__footer code { font-family: var(--ql-font-mono); font-size: 10.5px; background: var(--ql-surface-alt); padding: 1px 5px; border-radius: 4px; color: var(--ql-action); }

/* ============ 右侧 真实应用壳 ============ */
.app-stage { background: #EDEDF0; position: relative; overflow: hidden; }
.main-view { position: absolute; inset: 20px; background: #EDEDF0; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }

/* WindowChrome */
.window-chrome { position: absolute; inset: 0 0 auto 0; height: 40px; z-index: 10; background: transparent; }
.window-chrome__pinned { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.mac-traffic { display: flex; gap: 8px; align-items: center; padding-right: 8px; }
.mac-traffic__light { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }
.mac-traffic__light--close { background: #FF5F57; }
.mac-traffic__light--min { background: #FEBC2E; }
.mac-traffic__light--max { background: #28C840; }
.window-chrome__tab-region { position: absolute; top: 0; left: 272px; right: 0; height: 100%; display: flex; align-items: center; padding: 0 16px; }
.ws-tab-bar--chrome { display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; padding: 7px 4px; }
.ws-tabs-scroll { display: flex; align-items: center; gap: 4px; }
.ws-tab { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 12px; color: var(--ql-text-muted); font-size: 12.5px; cursor: pointer; }
.ws-tab.active { color: var(--ql-text); font-weight: 500; background: color-mix(in srgb, var(--ql-surface) 88%, transparent); box-shadow: 0 1px 2px rgba(15,23,42,.06), inset 0 0 0 1px rgba(255,255,255,.46); }
.ws-tab-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; font-size: 9px; font-weight: 700; background: rgba(0,0,0,.05); color: var(--ql-text-muted); display: inline-flex; align-items: center; justify-content: center; }

/* Sidebar */
.sidebar { position: absolute; top: 6px; left: 6px; bottom: 6px; width: 260px; background: var(--ql-glass-bg); backdrop-filter: var(--ql-glass-blur); -webkit-backdrop-filter: var(--ql-glass-blur); border: 1px solid rgba(0,0,0,.06); border-radius: var(--ql-radius-surface); overflow: hidden; display: flex; flex-direction: column; }
.sidebar-drag-spacer { height: 34px; flex-shrink: 0; }
.sidebar-logo { padding: 0 16px 12px; }
.logo-brand { font-size: 18px; font-weight: 700; color: var(--ql-primary); letter-spacing: -0.02em; }
.logo-brand em { font-style: normal; }
.sidebar-tools { padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.search-bar, .new-task-entry { display: flex; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--ql-text-muted); background: rgba(255,255,255,.4); border: 1px solid rgba(0,0,0,.04); cursor: pointer; }
.new-task-entry { color: var(--ql-action); font-weight: 600; background: color-mix(in oklch, var(--ql-action) 8%, white); }
.section-header { padding: 12px 16px 4px; }
.section-label { font-size: 10.5px; font-weight: 600; color: var(--ql-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.task-section { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.task-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; cursor: pointer; transition: background .15s; }
.task-item:hover { background: rgba(0,0,0,.04); }
.task-item[data-active="true"] { background: rgba(0,0,0,.06); }
.task-item__label { color: var(--ql-text); }
.task-item__meta { font-size: 11px; color: var(--ql-text-muted); font-variant-numeric: tabular-nums; }
.sidebar-footer { margin-top: auto; padding: 10px 12px; border-top: 1px solid rgba(0,0,0,.06); }
.footer-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; width: 100%; background: transparent; border: none; cursor: pointer; border-radius: 8px; }
.footer-user:hover { background: rgba(0,0,0,.04); }
.user-avatar-wrapper { width: 28px; height: 28px; }
.user-avatar { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ql-action); color: #fff; font-size: 13px; font-weight: 600; }
.user-name { font-size: 13px; color: var(--ql-text); font-weight: 500; }

/* ContentArea */
.content-area { position: absolute; top: 40px; left: 272px; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 8px 24px 0; overflow: hidden; }

/* ResultToolbar Tabs */
.rt-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 12px; border-bottom: 1px solid var(--ql-border-light); flex-shrink: 0; }
.rt-tabs { display: flex; align-items: center; gap: 2px; }
.rt-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: transparent; border: none; font-size: 13px; color: var(--ql-text-secondary); cursor: pointer; font-weight: 500; transition: all .15s; }
.rt-tab:hover { background: var(--ql-surface-hover); color: var(--ql-text); }
.rt-tab.active { background: var(--ql-surface); color: var(--ql-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.rt-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--ql-surface-alt); color: var(--ql-text-muted); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-count--cart { background: color-mix(in oklch, var(--ql-action) 12%, white); color: var(--ql-action); }
.rt-count--pass { background: color-mix(in oklch, var(--ql-success) 14%, white); color: var(--ql-success); }
.rt-count.bump { animation: ql-count-bump .55s cubic-bezier(.2,1.6,.35,1); }
@keyframes ql-count-bump { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
.rt-actions { display: flex; align-items: center; gap: 6px; }
.rt-btn { padding: 6px 12px; border: 1px solid var(--ql-border-light); border-radius: 8px; background: var(--ql-surface); font-size: 12px; color: var(--ql-text-secondary); cursor: pointer; }
.rt-btn:hover { background: var(--ql-surface-hover); color: var(--ql-text); }
.rt-btn--ghost { background: transparent; border: none; }
.rt-btn--icon { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ql-text-muted); border: 1px solid var(--ql-border-light); border-radius: 50%; }
.rt-btn--icon:hover { color: var(--ql-action); border-color: var(--ql-action); }

/* 候选列表 mock */
.cand-list { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.cand-row { display: grid; grid-template-columns: 38px 1fr 100px 120px 100px 188px; gap: 12px; align-items: center; padding: 12px 12px; border-bottom: 1px solid var(--ql-border-light); transition: background .15s; }
.cand-row:hover { background: var(--ql-surface-hover); }
.cand-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; }
.cand-avatar[data-color="pink"] { background: linear-gradient(135deg, var(--ql-avatar-pink-from), var(--ql-avatar-pink-to)); }
.cand-avatar[data-color="purple"] { background: linear-gradient(135deg, var(--ql-avatar-purple-from), var(--ql-avatar-purple-to)); }
.cand-avatar[data-color="blue"] { background: linear-gradient(135deg, var(--ql-avatar-blue-from), var(--ql-avatar-blue-to)); }
.cand-avatar[data-color="green"] { background: linear-gradient(135deg, var(--ql-avatar-green-from), var(--ql-avatar-green-to)); }
.cand-avatar[data-color="amber"] { background: linear-gradient(135deg, var(--ql-avatar-amber-from), var(--ql-avatar-amber-to)); }
.cand-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cand-name__primary { font-size: 14px; font-weight: 600; color: var(--ql-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-name__sec { font-size: 11px; color: var(--ql-text-muted); }
.cand-stat { font-size: 13px; color: var(--ql-text); font-variant-numeric: tabular-nums; }
.cand-stat__label { display: block; font-size: 10.5px; color: var(--ql-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.cand-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; position: relative; }

/* 三按钮样式 */
.act-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--ql-border); background: var(--ql-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; position: relative; }
.act-btn:hover { transform: translateY(-1px); }
.act-btn--pass { color: var(--ql-success); }
.act-btn--pass:hover { border-color: var(--ql-success); background: var(--ql-success-bg); }
.act-btn--pend { color: var(--ql-warning); }
.act-btn--pend:hover { border-color: var(--ql-warning); background: var(--ql-warning-bg); }
.act-btn--rej { color: var(--ql-text-muted); }
.act-btn--rej:hover { border-color: var(--ql-error); color: var(--ql-error); background: var(--ql-error-bg); }

/* 已标注状态 chip */
.act-st { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.act-st--pass { background: var(--ql-success-bg); color: var(--ql-success); }
.act-st--pend { background: var(--ql-warning-bg); color: var(--ql-warning); }
.act-st--rej { background: var(--ql-error-bg); color: var(--ql-error); }

/* ============ 共享: tooltip 微浮窗 (所有变体可用) ============ */
.act-btn[data-tip]::before, .act-btn[data-tip]::after { opacity: 0; pointer-events: none; transition: opacity .15s ease .25s; }
.act-btn[data-tip]:hover::before, .act-btn[data-tip]:hover::after { opacity: 1; }
.act-btn[data-tip]::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 5px 9px; background: oklch(.18 .02 270); color: #fff; font-size: 11.5px; font-weight: 500; border-radius: 5px; white-space: nowrap; }
.act-btn[data-tip]::after { content: ''; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: oklch(.18 .02 270); }

/* ============ 变体 A · 现状 baseline (默认即可,无额外引导) ============ */
/* 仅 hover tooltip,无 banner 无 coach 无 tour 无 inline-label */

/* ============ 变体 B · Linear 顶部 Banner ============ */
.case-b-banner { display: none; margin: 0 0 12px; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 10px; }
.main-view[data-state="B"] .case-b-banner { display: flex; }
.main-view[data-state="B"] .case-b-banner.dismissed { display: none; }
.ql-banner__icon { width: 18px; height: 18px; border-radius: 50%; background: var(--ql-action); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.ql-banner__content { flex: 1; font-size: 12.5px; line-height: 1.55; color: var(--ql-text-secondary); }
.ql-banner__content strong { color: var(--ql-text); font-weight: 600; }
.ql-banner--info { background: color-mix(in oklch, var(--ql-action) 5%, white); border: 1px solid color-mix(in oklch, var(--ql-action) 15%, transparent); }
.ql-banner__close { width: 22px; height: 22px; border: none; background: transparent; color: var(--ql-text-muted); font-size: 18px; cursor: pointer; border-radius: 4px; }
.ql-banner__close:hover { background: rgba(0,0,0,.05); color: var(--ql-text); }

/* ============ 变体 C · Notion 浮气泡 Coach Mark ============ */
.ql-coach { position: absolute; right: 220px; top: 14px; width: 304px; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--ql-border-light); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.04); z-index: 30; display: none; }
.main-view[data-state="C"] .ql-coach { display: block; }
.main-view[data-state="C"] .ql-coach.dismissed { display: none; }
.ql-coach__close { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border: none; background: transparent; font-size: 16px; color: var(--ql-text-muted); cursor: pointer; border-radius: 4px; }
.ql-coach__close:hover { background: rgba(0,0,0,.05); }
.ql-coach__title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; color: var(--ql-text); }
.ql-coach__body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ql-coach__row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ql-text-secondary); line-height: 1.5; }
.ql-coach__row strong { color: var(--ql-text); font-weight: 600; }
.ql-coach__icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ql-coach__icon--pass { background: var(--ql-success-bg); color: var(--ql-success); }
.ql-coach__icon--pend { background: var(--ql-warning-bg); color: var(--ql-warning); }
.ql-coach__icon--rej { background: var(--ql-error-bg); color: var(--ql-error); }
.ql-coach__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--ql-border-light); }
.ql-coach__hint { font-size: 11px; color: var(--ql-text-muted); }
.ql-coach__cta { padding: 6px 14px; background: var(--ql-action); color: #fff; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ql-coach__cta:hover { background: color-mix(in oklch, var(--ql-action) 90%, black); }
.ql-coach__arrow { position: absolute; top: 24px; right: -6px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--ql-border-light); border-top: 1px solid var(--ql-border-light); transform: rotate(45deg); }

/* 高亮锚定（C, E 共用） */
.cand-row.highlighted { box-shadow: inset 4px 0 0 var(--ql-action); background: color-mix(in oklch, var(--ql-action) 4%, transparent); position: relative; z-index: 25; }
.cand-row.highlighted .cand-actions::before { content: ''; position: absolute; inset: -8px -8px -8px -8px; border-radius: 12px; box-shadow: 0 0 0 2px var(--ql-action), 0 8px 24px rgba(0,0,0,.12); pointer-events: none; }

/* ============ 变体 D · 持续 inline Label ============ */
.main-view[data-state="D"] .act-btn { width: auto; padding: 0 14px; gap: 6px; height: 32px; min-width: 70px; font-size: 12px; font-weight: 600; }
.main-view[data-state="D"] .act-btn::after { content: attr(data-label); }
.main-view[data-state="D"] .act-btn--pass { background: color-mix(in oklch, var(--ql-success) 8%, white); border-color: color-mix(in oklch, var(--ql-success) 25%, transparent); }
.main-view[data-state="D"] .act-btn--pend { background: color-mix(in oklch, var(--ql-warning) 8%, white); border-color: color-mix(in oklch, var(--ql-warning) 25%, transparent); }
.main-view[data-state="D"] .act-btn--rej { background: var(--ql-surface); border-color: var(--ql-border); color: var(--ql-text-secondary); }
/* D 模式 hover tip 关掉 (不需要,已有 inline label) */
.main-view[data-state="D"] .act-btn[data-tip]::before, .main-view[data-state="D"] .act-btn[data-tip]::after { display: none; }

/* ============ 变体 E · VSCode 多步 Tour ============ */
.ql-tour { position: absolute; padding: 16px; width: 320px; background: #fff; border: 1px solid var(--ql-border-light); border-radius: 14px; box-shadow: 0 16px 48px -12px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.05); z-index: 40; display: none; }
.main-view[data-state="E"] .ql-tour.active { display: block; }
.ql-tour__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ql-tour__step { font-size: 11px; color: var(--ql-text-muted); font-variant-numeric: tabular-nums; }
.ql-tour__step .cur, .ql-tour__step .total { font-weight: 700; color: var(--ql-action); }
.ql-tour__skip { background: transparent; border: none; font-size: 11px; color: var(--ql-text-muted); cursor: pointer; }
.ql-tour__skip:hover { color: var(--ql-action); }
.ql-tour__title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ql-tour__body { font-size: 12.5px; line-height: 1.55; color: var(--ql-text-secondary); margin-bottom: 14px; }
.ql-tour__body strong { color: var(--ql-text); font-weight: 600; }
.ql-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ql-tour__back, .ql-tour__next { padding: 7px 14px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ql-tour__back { background: transparent; border: 1px solid var(--ql-border); color: var(--ql-text-secondary); }
.ql-tour__back:hover { border-color: var(--ql-action); color: var(--ql-action); }
.ql-tour__back[disabled] { opacity: .4; cursor: not-allowed; }
.ql-tour__next { background: var(--ql-action); border: none; color: #fff; }
.ql-tour__next:hover { background: color-mix(in oklch, var(--ql-action) 90%, black); }
.ql-tour__arrow { position: absolute; width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--ql-border-light); border-bottom: 1px solid var(--ql-border-light); transform: rotate(-45deg); }

/* Tour 半透明 spotlight 罩 */
.ql-tour-veil { position: absolute; inset: 0; background: oklch(.10 .01 270 / .25); z-index: 35; display: none; pointer-events: none; }
.main-view[data-state="E"] .ql-tour-veil.active { display: block; }

/* ============ 变体 F · Help 召唤 + 双层 tooltip (来自 ⓘ 触发) ============ */
.ql-help-pop { position: absolute; right: 12px; top: 56px; width: 320px; padding: 14px 14px 12px; background: #fff; border: 1px solid var(--ql-border-light); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.18); z-index: 30; display: none; }
.main-view[data-state="F"] .ql-help-pop.active { display: block; }
.ql-help-pop__title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; padding-right: 24px; }
.ql-help-pop__body { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ql-text-secondary); }
.ql-help-pop__sep { height: 1px; background: var(--ql-border-light); margin: 4px 0; }
.ql-help-pop__tip { font-size: 11px; color: var(--ql-text-muted); padding: 6px 10px; background: var(--ql-surface-alt); border-radius: 6px; line-height: 1.5; }
.main-view[data-state="F"] .rt-btn--icon { color: var(--ql-action); border-color: var(--ql-action); animation: ql-help-pulse 2.4s ease-in-out infinite; }
@keyframes ql-help-pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ql-action) 30%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--ql-action) 0%, transparent); } }

/* 其他状态下隐藏 ⓘ 按钮 visual emphasis (避免误导) */
.main-view:not([data-state="F"]) .rt-btn--icon { animation: none; }

/* ============ 变体 G · Hotspot 脉冲点 (Hotjar A/B 冠军) ============ */
/* 首行 ✓ 按钮上叠加微小脉冲点 + 自适应 hover-tooltip */
.main-view[data-state="G"] .cand-row.first .act-btn--pass::before { display: none; }  /* G 模式覆盖默认 hover tip 提前 */
.main-view[data-state="G"] .cand-row.first .act-btn--pass {
  position: relative;
  border-color: var(--ql-action);
  background: color-mix(in oklch, var(--ql-action) 6%, white);
  color: var(--ql-action);
}
.main-view[data-state="G"] .cand-row.first .act-btn--pass::after {
  content: '';
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ql-action);
  border: 2px solid #fff;
  animation: ql-hotspot-pulse 1.6s ease-out infinite;
  z-index: 5;
}
@keyframes ql-hotspot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ql-action) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--ql-action) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ql-action) 0%, transparent); }
}
.main-view[data-state="G"] .cand-row.first .act-btn--pass.consumed::after { display: none; }
/* G 模式 hover label 加强：变成"加入建联清单（提示）" */
.main-view[data-state="G"] .cand-row.first .act-btn--pass[data-tip]::before {
  content: '👉 ' attr(data-tip) ' · 试试看';
  background: var(--ql-action);
  font-weight: 600;
  padding: 6px 10px;
}
.main-view[data-state="G"] .cand-row.first .act-btn--pass[data-tip]::after {
  border-top-color: var(--ql-action);
}

/* ============ 变体 H · Claude 风格 onboarding hero + 任务卡 (Ghost +1000% 转化) ============ */
.ql-checklist { position: fixed; right: 24px; bottom: 24px; width: 380px; max-height: calc(100vh - 80px); background: #fff; border: 1px solid var(--ql-border-light); border-radius: 18px; box-shadow: 0 24px 56px -16px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.06); z-index: 90; display: none; overflow: hidden; }
body[data-checklist-active="true"] .ql-checklist { display: block; animation: ql-cl-in .42s cubic-bezier(.2,1,.3,1); }
@keyframes ql-cl-in { from { transform: translate(0, 16px); opacity: 0; } to { transform: translate(0, 0); opacity: 1; } }
.ql-checklist.collapsed { width: 200px; }
.ql-checklist.collapsed .ql-checklist__hero .ql-checklist__lede, .ql-checklist.collapsed .ql-checklist__progress, .ql-checklist.collapsed .ql-checklist__tasks, .ql-checklist.collapsed .ql-checklist__foot { display: none; }
.ql-checklist__hero { padding: 18px 18px 12px; position: relative; background: linear-gradient(180deg, color-mix(in oklch, var(--ql-action) 5%, white), white); border-bottom: 1px solid var(--ql-border-light); }
.ql-checklist__toggle { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border: none; background: rgba(0,0,0,.05); border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ql-text-secondary); }
.ql-checklist__toggle:hover { background: rgba(0,0,0,.08); }
.ql-checklist__greet { font-size: 19px; font-weight: 600; color: var(--ql-text); letter-spacing: -0.01em; margin-bottom: 4px; line-height: 1.25; padding-right: 36px; }
.ql-checklist__greet em { font-style: normal; color: var(--ql-action); }
.ql-checklist__lede { font-size: 12.5px; color: var(--ql-text-secondary); line-height: 1.55; }
.ql-checklist__progress { height: 3px; background: var(--ql-surface-alt); }
.ql-checklist__bar { height: 100%; background: linear-gradient(90deg, var(--ql-action), color-mix(in oklch, var(--ql-action) 60%, var(--ql-primary))); transition: width .42s cubic-bezier(.2,1,.3,1); }
.ql-checklist__tasks { list-style: none; padding: 12px 12px 6px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ql-task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 12px; cursor: pointer; transition: all .18s cubic-bezier(.2,1,.3,1); border: 1px solid transparent; }
.ql-task:hover { background: var(--ql-surface-hover); border-color: var(--ql-border-light); transform: translateY(-1px); }
.ql-task.active { background: color-mix(in oklch, var(--ql-action) 5%, white); border-color: color-mix(in oklch, var(--ql-action) 30%, transparent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ql-action) 8%, transparent); }
.ql-task.done { opacity: .65; pointer-events: none; }
.ql-task__pic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.ql-task__pic--pass { background: var(--ql-success-bg); color: var(--ql-success); }
.ql-task__pic--cart { background: color-mix(in oklch, var(--ql-action) 10%, white); color: var(--ql-action); font-size: 16px; }
.ql-task__pic--undo { background: var(--ql-surface-alt); color: var(--ql-text-secondary); font-size: 16px; }
.ql-task__txt { flex: 1; min-width: 0; }
.ql-task__title { font-size: 13.5px; font-weight: 600; color: var(--ql-text); margin-bottom: 3px; line-height: 1.35; }
.ql-task__sub { font-size: 11.5px; color: var(--ql-text-muted); line-height: 1.45; }
.ql-task__check { width: 18px; height: 18px; flex-shrink: 0; margin-top: 7px; border: 1.5px solid var(--ql-border); border-radius: 50%; position: relative; transition: all .18s; }
.ql-task.done .ql-task__check { background: var(--ql-action); border-color: var(--ql-action); }
.ql-task.done .ql-task__check::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ql-task.done .ql-task__title { text-decoration: line-through; color: var(--ql-text-muted); }
.ql-checklist__foot { padding: 8px 16px 12px; display: flex; justify-content: flex-end; }
.ql-checklist__close { background: transparent; border: none; font-size: 12px; color: var(--ql-text-muted); cursor: pointer; padding: 4px 0; }
.ql-checklist__close:hover { color: var(--ql-action); }

/* ===== H 模式：spotlight 高亮目标元素 ===== */
.guide-spot { position: relative; z-index: 50; box-shadow: 0 0 0 3px var(--ql-action), 0 12px 32px -6px color-mix(in oklch, var(--ql-action) 35%, transparent), 0 0 0 8px color-mix(in oklch, var(--ql-action) 12%, transparent); border-radius: 10px; transition: box-shadow .35s; animation: ql-guide-pulse 1.8s ease-in-out infinite; }
@keyframes ql-guide-pulse { 0%,100% { box-shadow: 0 0 0 3px var(--ql-action), 0 12px 32px -6px color-mix(in oklch, var(--ql-action) 35%, transparent), 0 0 0 8px color-mix(in oklch, var(--ql-action) 12%, transparent); } 50% { box-shadow: 0 0 0 3px var(--ql-action), 0 12px 32px -6px color-mix(in oklch, var(--ql-action) 35%, transparent), 0 0 0 16px color-mix(in oklch, var(--ql-action) 0%, transparent); } }

/* ===== 点击任务后弹出的指引气泡 (mini coach) ===== */
.guide-coach { position: absolute; width: 260px; padding: 12px 14px 10px; background: oklch(.18 .02 270); color: #fff; border-radius: 10px; box-shadow: 0 12px 28px -6px rgba(0,0,0,.32); z-index: 70; font-size: 12.5px; line-height: 1.55; }
.guide-coach__close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: none; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; font-size: 16px; border-radius: 4px; }
.guide-coach__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.guide-coach__body { padding-right: 22px; }
.guide-coach__body strong { color: #fff; font-weight: 600; }
.guide-coach__arrow { position: absolute; width: 12px; height: 12px; background: oklch(.18 .02 270); transform: rotate(45deg); }
.guide-coach[data-place="left"] .guide-coach__arrow { right: -5px; top: 16px; }
.guide-coach[data-place="bottom"] .guide-coach__arrow { left: 24px; top: -5px; }
.guide-coach[data-place="top"] .guide-coach__arrow { left: 24px; bottom: -5px; }

.ctrl__research { padding: 12px 14px; background: var(--ql-surface-alt); border-radius: 10px; border-left: 3px solid var(--ql-primary); }
.ctrl__research .ctrl__group-title { color: var(--ql-primary); margin-bottom: 8px; }

/* ============ Toast 系统 ============ */
.ql-toast-stack { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.ql-toast { pointer-events: auto; min-width: 280px; max-width: 360px; padding: 12px 14px; background: #fff; border: 1px solid var(--ql-border-light); border-radius: 10px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.04); display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; transform: translateX(120%); transition: transform .35s cubic-bezier(.2,1,.3,1), opacity .25s; opacity: 0; }
.ql-toast.in { transform: translateX(0); opacity: 1; }
.ql-toast.out { transform: translateX(120%); opacity: 0; }
.ql-toast__icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.ql-toast--pass .ql-toast__icon { background: var(--ql-success); }
.ql-toast--pend .ql-toast__icon { background: var(--ql-warning); }
.ql-toast--rej .ql-toast__icon { background: var(--ql-text-muted); }
.ql-toast__body { flex: 1; line-height: 1.5; color: var(--ql-text); }
.ql-toast__body strong { font-weight: 700; }
.ql-toast__cta { background: transparent; border: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--ql-action); cursor: pointer; margin-top: 4px; display: inline-block; }
.ql-toast__cta:hover { text-decoration: underline; }
.ql-toast__close { background: transparent; border: none; font-size: 14px; color: var(--ql-text-muted); cursor: pointer; padding: 0 4px; }

/* 重置按钮 (FAB) */
.reset-fab { position: fixed; right: 24px; bottom: 100px; padding: 8px 14px; background: #fff; border: 1px solid var(--ql-border); border-radius: 999px; font-size: 11px; color: var(--ql-text-secondary); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 99; }
.reset-fab:hover { color: var(--ql-action); border-color: var(--ql-action); }
