/* 鹿径（教研工作台 / 决策库）样式：全部限定在 .lj 之下，和门户的样式互不影响。
   颜色沿用门户的主题（强调色跟着员工自选的配色走），状态色（好 / 警示 / 信息 / 紫）保持鹿径原来的语义。 */
.lj {
  --ink-soft: var(--ink-2);
  --ink-faint: var(--ink-3);
  --surface-2: var(--wash);
  --line-strong: var(--line-2);
  --accent-soft-line: color-mix(in srgb, var(--accent) 35%, transparent);
  --good: #2f7d5c; --good-soft: #dcefe4;
  --warn: #b5471b; --warn-soft: #f7ded2;
  --info: #2f5d8a; --info-soft: #dde8f1; --info-soft-line: rgba(47,93,138,0.3);
  --violet: #6a4fa0; --violet-soft: #e6def4;
  --shadow: 0 1px 2px rgba(29,33,37,0.05), 0 10px 24px -16px rgba(29,33,37,0.25);
  font-family: var(--ui);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.lj h1, .lj h2, .lj h3, .lj h4, .lj h5 { font-family: var(--disp); }
.lj .mono, .lj .count { font-family: var(--mono); }
.lj * {box-sizing: border-box;}
.lj h1,
.lj h2,
.lj h3,
.lj h4 {font-family: var(--disp); font-weight: 600; margin: 0; text-wrap: balance;}
.lj .mono {font-family: var(--mono); font-variant-numeric: tabular-nums;}
.lj button {font-family: inherit; cursor: pointer; text-align: center;}
.lj ::selection {background: var(--accent-soft);}
.lj .lj-card {background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);}
.lj .card-pad {padding: 20px 22px;}
.lj .queue-cols {display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start;}
@media (max-width: 1180px) {
.lj .queue-cols {grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 640px) {
.lj .queue-cols {grid-template-columns: 1fr;}
}
.lj .queue-col-head {display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 10px;}
.lj .queue-col-head h3 {font-size: 15px;}
.lj .queue-col-head h3 {white-space: nowrap;}
.lj .queue-col-head .col-sel, .lj .col-sel {font-size: 11.5px; font-weight: 600; padding: 3px 4px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); max-width: 92px; text-overflow: ellipsis;}
.lj .queue-col-head .count-sub {white-space: nowrap;}
.lj .queue-cols[data-n="4"] .queue-col-head {gap: 6px;}
.lj .queue-col-head .count {font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);}
.lj .queue-list {display: flex; flex-direction: column; gap: 10px;}
.lj .fam-card {display: flex; flex-direction: column; gap: 8px; padding: 14px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s ease, transform .1s ease; text-align: left; width: 100%;}
.lj .fam-card:hover {border-color: var(--line-strong); transform: translateY(-1px);}
.lj .fam-card:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.lj .fam-del {margin-left: auto; border: none; background: transparent; color: var(--ink-faint); font-size: 11.5px; padding: 1px 6px; border-radius: 6px;}
.lj .fam-del:hover {color: var(--warn); background: var(--warn-soft);}
.lj .fam-actions {margin-left: auto; display: inline-flex; align-items: center; gap: 4px;}
.lj .fam-actions .fam-del {margin-left: 0;}
.lj .fam-decline {border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px;}
.lj .fam-decline:hover {background: var(--accent-soft); color: var(--accent-ink, var(--ink)); border-color: var(--accent);}
.lj .fam-top {display: flex; align-items: center; justify-content: space-between; gap: 8px;}
.lj .fam-name {font-weight: 700; font-size: 14.5px;}
.lj .lj-badge {display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;}
.lj .badge-warn {background: var(--warn-soft); color: var(--warn);}
.lj .badge-info {background: var(--info-soft); color: var(--info);}
.lj .badge-violet {background: var(--violet-soft); color: var(--violet);}
.lj .badge-good {background: var(--good-soft); color: var(--good);}
.lj .badge-accent {background: var(--accent-soft); color: var(--accent-ink);}
.lj .fam-meta {font-size: 12px; color: var(--ink-faint); display: flex; gap: 10px; flex-wrap: wrap;}
.lj .fam-meta .mono {color: var(--ink-soft);}
.lj .empty-note {font-size: 13px; color: var(--ink-faint); padding: 18px 4px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 11px;}
.lj .wizard {display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start;}
@media (max-width: 860px) {
.lj .wizard {grid-template-columns: 1fr;}
}
.lj .sidebar {position: static; display: flex; flex-direction: column; gap: 12px;}
/* 屏幕够高、左栏放得下时才悬浮；放不下就跟着页面一起滚，不要自己卡住或再套一层滚动 */
@media (min-width: 861px) and (min-height: 940px) {
.lj .sidebar {position: sticky; top: calc(var(--rvh, 0px) + 58px + 14px);}
}
@media (max-width: 860px) {
.lj .sidebar {position: static;}
}
.lj .back-link {display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: none; border: none; padding: 4px 0;}
.lj .back-link:hover {color: var(--ink);}
.lj .sys-panel h4 {font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-family: var(--ui); font-weight: 700; margin-bottom: 10px;}
.lj .sys-row {display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;}
.lj .sys-row:last-of-type {border-bottom: none;}
.lj .sys-row .k {color: var(--ink-faint);}
.lj .sys-row .v {font-weight: 600; text-align: right;}
.lj .tag-row {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;}
.lj .tag-chip {font-size: 11px; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-soft);}
.lj .ghost-btn {width: 100%; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between;}
.lj .ghost-btn.clear-btn {width: auto; flex: 0 0 auto; justify-content: center; padding: 4px 12px; font-size: 12px;}
.lj .ghost-btn:hover {color: var(--ink); border-color: var(--ink-faint);}
.lj .step-track {display: flex; gap: 6px; margin-bottom: 4px;}
.lj .step-dot {flex: 1; height: 4px; border-radius: 3px; background: var(--line-strong);}
.lj .step-dot.is-done {background: var(--accent);}
.lj .step-dot.is-current {background: var(--ink);}
.lj .step-label {font-size: 12px; color: var(--ink-faint); margin-bottom: 14px;}
.lj .step-label b {color: var(--ink); font-weight: 700;}
.lj .q-title {font-size: 19px; margin-bottom: 4px;}
.lj .q-help {font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px;}
.lj .opt-grid {display: flex; flex-direction: column; gap: 9px;}
.lj .opt-btn {display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink);}
.lj .opt-btn:hover {border-color: var(--accent); background: var(--accent-soft);}
.lj .opt-btn.is-selected {border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700;}
.lj .opt-btn .arrow {color: var(--ink-faint); flex-shrink: 0;}
.lj .opt-sub {font-size: 12px; color: var(--ink-faint); font-weight: 400; margin-top: 2px;}
.lj .select-row {display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;}
@media (max-width: 600px) {
.lj .select-row {grid-template-columns: 1fr;}
}
.lj .select-field label {display: block; font-size: 12px; font-weight: 700; color: var(--ink-faint); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;}
.lj .select-field select {width: 100%; padding: 10px 11px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13.5px; font-family: inherit;}
.lj .verdict-box {display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px;}
.lj .verdict-pill {font-family: var(--disp); font-size: 22px; font-weight: 700; padding: 7px 16px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; text-align: center;}
.lj .verdict-detail {font-size: 12.5px; color: var(--ink-soft); line-height: 1.55;}
.lj .verdict-detail .mono {color: var(--ink);}
.lj .script-card {background: var(--accent-soft); border: 1px solid var(--accent-soft-line); border-radius: 12px; padding: 16px 18px; margin-top: 10px; position: relative;}
.lj .script-card .label {font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between;}
.lj .script-card .body {font-size: 13.5px; line-height: 1.75; color: var(--ink); white-space: pre-wrap;}
.lj .copy-btn {border: 1px solid var(--accent-soft-line); background: var(--surface); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 7px; flex-shrink: 0;}
.lj .copy-btn:hover {background: var(--accent-soft);}
.lj .copy-btn.is-copied {background: var(--good-soft); color: var(--good); border-color: transparent;}
.lj .tip-box {background: var(--info-soft); border: 1px solid var(--info-soft-line); border-radius: 12px; padding: 14px 16px; margin-top: 10px;}
.lj .tip-box .tip-label {font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--info); margin-bottom: 6px; display: block;}
.lj .tip-box .body {font-size: 13px; line-height: 1.7; color: var(--ink-soft); white-space: pre-wrap;}
.lj .note-box {margin-top: 12px;}
.lj .note-box .note-box-label {font-size: 11px; font-weight: 700; color: var(--ink-faint); margin-bottom: 5px; display: block;}
.lj .check-block {border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface-2); margin-bottom: 14px;}
.lj .check-block .check-num {display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; margin-right: 8px; flex-shrink: 0;}
.lj .check-title {display: flex; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 8px;}
.lj .nav-row {display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px;}
.lj .lj-btn {padding: 11px 20px; border-radius: 9px; font-size: 13.5px; font-weight: 700; border: 1.5px solid transparent;}
.lj .btn-primary {background: var(--ink); color: var(--paper);}
.lj .btn-primary:disabled {opacity: 0.4; cursor: not-allowed;}
.lj .btn-ghost {background: transparent; color: var(--ink-soft); border-color: var(--line-strong);}
.lj .btn-ghost:hover {color: var(--ink);}
.lj .btn-warn {background: var(--warn); color: #fff;}
.lj .anomaly-panel {margin-top: 14px; padding: 14px 16px; border-radius: 11px; border: 1.5px dashed var(--warn); background: var(--warn-soft);}
.lj .anomaly-panel h5 {font-size: 13px; margin-bottom: 8px; color: var(--warn);}
.lj .anomaly-panel select {width: 100%; padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--line-strong); margin-bottom: 10px; font-family: inherit; font-size: 13px; background: var(--surface); color: var(--ink);}
.lj .note-inline {font-size: 12px; color: var(--ink-faint); margin-top: 8px; line-height: 1.6;}
.lj .toggle-row {display: flex; gap: 8px;}
.lj .toggle-row .opt-btn {flex: 1; text-align: center; justify-content: center;}
.lj .day2-summary {display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;}
.lj .streak-row {display: flex; gap: 8px; margin-top: 14px;}
.lj .streak-dot {width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line-strong); color: var(--ink-faint);}
.lj .streak-dot.is-hit {background: var(--good-soft); border-color: var(--good); color: var(--good);}
.lj .streak-dot.is-miss {background: var(--warn-soft); border-color: var(--warn); color: var(--warn);}
.lj .admin-tabs {display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto;}
.lj .admin-tab {padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-faint); border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;}
.lj .admin-tab.is-active {color: var(--ink); border-bottom-color: var(--accent);}
.lj .admin-section-title {font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; max-width: 640px;}
.lj .thresh-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 16px;}
@media (max-width: 640px) {
.lj .thresh-grid {grid-template-columns: 1fr;}
}
.lj .thresh-card {border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface-2);}
.lj .thresh-card h5 {font-size: 13.5px; margin-bottom: 10px;}
.lj .thresh-inline {display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px;}
.lj .thresh-inline input {width: 72px; padding: 7px 9px; border-radius: 7px; border: 1.5px solid var(--line-strong); font-family: var(--mono); font-size: 13px; background: var(--surface); color: var(--ink);}
.lj .thresh-scale {display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin-top: 10px;}
.lj .thresh-scale span {display: block; height: 100%;}
.lj table.decision-table {width: 100%; border-collapse: collapse; font-size: 12.8px;}
.lj .table-scroll {overflow-x: auto; border: 1px solid var(--line); border-radius: 12px;}
.lj .decision-table th {text-align: left; background: var(--surface-2); padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-faint); white-space: nowrap; position: sticky; top: 0;}
.lj .decision-table td {padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top;}
.lj .decision-table tr:hover td {background: var(--surface-2);}
.lj .cond-pill {display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); font-size: 11.5px; margin: 1px 3px 1px 0; white-space: nowrap;}
.lj .edit-textarea {width: 100%; min-width: 260px; min-height: 68px; font-family: inherit; font-size: 12.8px; line-height: 1.55; padding: 8px 9px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); resize: vertical;}
.lj .edit-input {width: 100%; font-family: inherit; font-size: 12.8px; padding: 7px 8px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700;}
.lj .save-hint {font-size: 11px; color: var(--good); font-weight: 600; opacity: 0; transition: opacity .2s;}
.lj .save-hint.show {opacity: 1;}
.lj .tpl-list {display: flex; flex-direction: column; gap: 14px;}
.lj .tpl-card {border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: var(--surface);}
.lj .tpl-card h5 {font-size: 13.5px; margin-bottom: 3px;}
.lj .tpl-card .tpl-sub {font-size: 12px; color: var(--ink-faint); margin-bottom: 10px;}
.lj .anom-item {display: flex; flex-direction: column; gap: 6px; padding: 13px 15px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--warn);}
.lj .anom-top {display: flex; justify-content: space-between; font-size: 13px; font-weight: 700;}
.lj .anom-detail {font-size: 12.5px; color: var(--ink-soft);}
.lj .anom-empty {font-size: 13px; color: var(--ink-faint); text-align: center; padding: 30px;}
.lj .spinner {width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--info-soft-line); border-top-color: var(--info); flex-shrink: 0; animation: spin 0.8s linear infinite;}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
.lj .spinner {animation-duration: 2.4s;}
}
.lj .page-head {display: flex; flex-direction: column; gap: 4px;}
.lj .page-head .eyebrow {font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;}


/* 页面顶部品牌头 */
.lj .lj-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; flex-wrap: wrap; }
.lj .lj-mascot { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.lj .lj-brand h1 { font: 600 20px/1.2 var(--disp); letter-spacing: 0.01em; margin: 0; }
.lj .lj-brand .sub { font-size: 12px; color: var(--ink-faint); margin-top: 1px; }

/* 顶部切换标签（原来的「教研工作台 / 决策库管理」那种样式） */
.lj .lj-tabs { margin-left: auto; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: var(--surface); gap: 2px; }
.lj .lj-tabs a { padding: 8px 16px; min-width: 112px; text-align: center; white-space: nowrap; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.lj .lj-tabs a:hover { color: var(--ink); }
.lj .lj-tabs a.is-active { background: var(--ink); color: var(--paper); }

/* 右上角工具栏：搜索手机号 + 按日期导出 */
.lj .lj-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lj .lj-tool-group { display: inline-flex; align-items: center; gap: 8px; }
.lj .lj-tool-group > input#phone-search { width: 250px; font-weight: 400; cursor: text; }
.lj .lj-tool-label { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.lj .lj-date { width: auto; padding: 7px 9px; font-size: 12.5px; font-weight: 400; cursor: text; }
.lj .lj-sep { width: 1px; height: 26px; background: var(--line-strong); margin: 0 4px; }
@media (max-width: 1100px) { .lj .lj-sep { display: none; } }
/* 换页时的淡入 */
@keyframes lj-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.lj.lj-enter > *:not(.lj-brand) { animation: lj-fade .2s ease-out both; }
@media (prefers-reduced-motion: reduce) { .lj.lj-enter > * { animation: none; } }

/* ======== 手机 / 竖屏平板：向导的重排 ========
   桌面是「左侧信息栏 + 右侧题目」。窄屏上信息栏如果整块叠在题目上面，第一道题要滚大半屏才看得到，
   所以把侧栏拆开重排：返回 → 系统数据 → 题目 → 其余次要卡片（手机号、删除、撤销/退回）。 */
@media (max-width: 860px) {
  .lj .wizard { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lj .wizard > .sidebar { display: contents; }
  .lj .wizard > .sidebar > * { order: 3; }
  .lj .wizard > .sidebar > :nth-child(1) { order: 0; }
  .lj .wizard > .sidebar > :nth-child(2) { order: 1; }
  .lj .wizard > div:not(.sidebar) { order: 2; min-width: 0; }
}

/* ======== 手机端 ======== */
.lj .queue-tabs { display: none; }
.lj .lj-export-toggle { display: none; }
@media (max-width: 640px) {
  /* 品牌头：吉祥物 + 标题一行，「今日待处理 / 预警总览」切换占满下一行 */
  .lj .lj-brand { gap: 10px; margin-bottom: 14px; }
  .lj .lj-tabs { margin-left: 0; width: 100%; }
  .lj .lj-tabs a { flex: 1; text-align: center; padding: 10px 6px; min-width: 0; font-size: 12.5px; }

  /* 工作台：队列用分段标签一次看一个，不再把四列竖着叠成一条长龙 */
  .lj .queue-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: auto; overflow-x: auto; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--surface-2); border-radius: 12px; position: sticky; top: 56px; z-index: 5; }
  .lj .queue-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 2px; border-radius: 9px; border: none; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
  .lj .queue-tabs button .count { font-size: 12px; font-weight: 500; color: var(--ink-faint); }
  .lj .queue-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(29,33,37,.12); }
  .lj .queue-cols > [data-col] { display: none; }
  .lj .queue-cols[data-active="day1"] > [data-col="day1"],
  .lj .queue-cols[data-active="day2"] > [data-col="day2"],
  .lj .queue-cols[data-active="revisit"] > [data-col="revisit"],
  .lj .queue-cols[data-active="declined"] > [data-col="declined"],
  .lj .queue-cols[data-active="returned"] > [data-col="returned"] { display: block; }

  /* 搜索 + 导出：两行，全宽，导出按钮不再掉到屏幕外 */
  .lj .lj-ph-title { display: none; }
  .lj .lj-toolbar { width: 100%; gap: 12px; justify-content: stretch; }
  .lj .lj-sep { display: none; }
  .lj .lj-tool-group { width: 100%; }
  .lj .lj-tool-group > input#phone-search { flex: 1; width: auto; min-width: 0; }
  .lj .lj-tool-group:last-child { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
  .lj .lj-export-toggle { display: flex; grid-column: 1 / -1; width: 100%; justify-content: space-between; align-items: center; }
  .lj .lj-export:not(.is-open) > :not(.lj-export-toggle) { display: none; }
  .lj .lj-tool-group:last-child > .lj-tool-label:nth-child(2) { grid-column: 1 / -1; }
  .lj .lj-tool-group:last-child > .lj-date { width: 100%; min-width: 0; }
  .lj .lj-tool-group:last-child > [data-export-excel] { grid-column: 1 / -1; width: 100%; }

  /* Day1 系统数据：一行一项太长，手机上改两列，每格「小标题 + 数值」 */
  .lj .sys-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
  .lj .sys-grid > h4, .lj .sys-grid > .tag-row, .lj .sys-grid > div:last-child { grid-column: 1 / -1; }
  .lj .sys-grid .sys-row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; }
  .lj .sys-grid .sys-row .v { text-align: left; }

  /* 触屏：按钮至少 44px 高；输入框 16px，iOS 才不会在聚焦时自动放大页面 */
  .lj .lj-btn { min-height: 44px; }
  .lj .edit-input, .lj .edit-textarea, .lj select, .lj .select-field select, .lj .anomaly-panel select, .lj .thresh-inline input, .lj .lj-date { font-size: 16px; }
  .lj .edit-input, .lj .lj-date { padding: 11px 12px; }
  .lj .opt-btn { min-height: 48px; padding: 13px 14px; }
  .lj .copy-btn { min-height: 36px; padding: 8px 12px; }
  .lj .ghost-btn { min-height: 44px; }
  .lj .back-link { min-height: 40px; }
  .lj .fam-del { padding: 8px 12px; margin: -8px -6px -8px auto; font-size: 12.5px; }
  .lj .admin-tab { padding: 12px 14px; }
}

/* ---------- Day2 新口径：待补选、是否成功使用、退货标、导入弹窗 ---------- */
.lj .streak-dot.is-pending {background: #fff3cf; border: 1.5px dashed #c99700; color: #8a6400;}
.lj .badge-pending {background: #fff3cf; color: #8a6400; font-weight: 700;}
.lj .badge-danger {background: #fbe0e0; color: #a12626; font-weight: 700;}
.lj .fam-flags {display: flex; flex-wrap: wrap; gap: 6px;}
.lj .pending-card {border: 1.5px solid #e2b93b; background: #fffaf0; margin-bottom: 14px;}
.lj .pending-day {margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2c97a;}
.lj .pd-head {font-weight: 700; font-size: 14px; margin-bottom: 4px;}
.lj .pd-note {font-size: 12.5px; color: var(--ink-soft); white-space: pre-wrap; margin-bottom: 8px;}
.lj .pd-btns {display: grid; grid-template-columns: 2fr 1fr; gap: 8px;}
.lj .sop-hint {margin: 16px 0 8px; font-size: 12.5px; color: var(--ink-faint);}
.lj .used-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px;}
.lj .used-grid .opt-btn {justify-content: center; font-size: 15px; padding: 14px 16px;}
.lj .used-grid .used-yes.is-selected {border-color: var(--good); background: var(--good-soft); color: var(--good);}
.lj .used-grid .used-no.is-selected {border-color: var(--warn); background: var(--warn-soft); color: var(--warn);}

.lj .lj-modal-back {position: fixed; inset: 0; z-index: 200; background: rgba(20, 20, 30, .45); display: flex; align-items: center; justify-content: center; padding: 16px;}
.lj .lj-modal {background: var(--surface); border-radius: 14px; width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);}
.lj .lj-modal-head {display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;}
.lj .lj-modal-head h3 {font-size: 17px;}
.lj .lj-modal-x {border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-faint); padding: 4px 8px; cursor: pointer;}
.lj .rm-summary {font-size: 14px; padding: 10px 12px; background: var(--accent-soft); border-radius: 10px; margin-bottom: 8px;}
.lj .rm-sec {margin-top: 14px;}
.lj .rm-title {font-weight: 700; font-size: 14px;}
.lj .rm-hint {font-size: 12.5px; color: var(--ink-soft); margin-top: 2px;}
.lj .rm-list {margin-top: 6px; max-height: 160px; overflow: auto; font-size: 13px; line-height: 1.8; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;}
.lj .rm-sn {color: var(--ink-faint); font-size: 12px;}
.lj .rm-error {color: var(--warn); font-size: 13px; margin-top: 8px;}
.lj .rm-actions {display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap;}

@media (max-width: 640px) {
  .lj .lj-modal-back {align-items: flex-end; padding: 0;}
  .lj .lj-modal {max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; padding: 16px 16px 24px;}
  .lj .pd-btns {grid-template-columns: 1fr;}
  .lj .rm-actions .lj-btn {flex: 1;}
}

/* ---------- 已申请退货退款：从四列里摘出来，单独成一块 ---------- */
.lj .queue-cols > [data-col="returned"] {grid-column: 1 / -1; margin-top: 8px; padding: 16px 18px 18px; border: 1px solid #efc9c9; background: linear-gradient(180deg, #fff6f5 0%, #fffafa 100%); border-radius: 16px;}
.lj [data-col="returned"] .queue-col-head h3 {color: #a12626;}
.lj [data-col="returned"] .queue-col-head h3::before {content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c93b3b; margin-right: 8px; vertical-align: 1px;}
.lj [data-col="returned"] .queue-list {display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start;}
.lj [data-col="returned"] .ghost-btn {grid-column: 1 / -1;}
.lj [data-col="returned"] .fam-card {border-color: #efd6d6;}
.lj [data-col="returned"] .empty-note {grid-column: 1 / -1;}
.lj .ret-banner {border: 1.5px solid #efc9c9; background: #fff6f5; color: #7a2020; font-size: 13.5px; line-height: 1.7; margin-bottom: 14px;}
@media (min-width: 641px) {
  .lj .queue-cols > [data-col="returned"][data-empty="1"] {display: none;}
}
@media (max-width: 640px) {
  .lj .queue-cols > [data-col="returned"] {padding: 0; border: 0; background: none; margin-top: 0;}
  .lj [data-col="returned"] .queue-list {display: flex; flex-direction: column; gap: 10px;}
}
@media (max-width: 640px) {
  .lj .queue-tabs button {white-space: nowrap; padding-left: 6px; padding-right: 6px; font-size: 12.5px;}
}

/* ---------- 2026-10-17 新口径：卡片时间线、回访、筛选 ---------- */
.lj .fam-times {display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-faint); padding-top: 6px; border-top: 1px dashed var(--line);}
.lj .tl-item {display: inline-flex; gap: 5px; align-items: baseline; white-space: nowrap;}
.lj .tl-item i {font-style: normal; color: var(--ink-faint);}
.lj .tl-item b {font-weight: 600; color: var(--ink-soft); font-size: 11.5px;}
.lj .tl-ago {font-size: 11.5px; color: var(--ink-faint); font-weight: 400;}
.lj .badge-revisited {background: var(--good-soft); color: var(--good); font-weight: 700;}
.lj .badge-due {background: #fde8e6; color: #b3261e; font-weight: 700;}
.lj .rv-due {color: #b3261e;}
.lj .lj-filters {display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;}
.lj .rv-list {margin: 16px auto 0; max-width: 520px; display: flex; flex-direction: column; gap: 8px; text-align: left;}
.lj .rv-item {padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);}
.lj .rv-head {font-size: 12.5px; color: var(--ink-soft);}
.lj .rv-note {font-size: 12.5px; color: var(--ink); margin-top: 4px; white-space: pre-wrap;}
.lj .btn-primary[disabled] {opacity: .5; cursor: not-allowed;}

/* ---------- 今日推送（抽签与人手） ---------- */
.lj .lot-card {padding: 12px 16px; margin-bottom: 14px;}
.lj .lot-head {display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 13px;}
.lj .lot-head > b {font-size: 14px; margin-right: 4px;}
.lj .lot-chip {padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px;}
.lj .lot-chip.is-treat {background: var(--good-soft); border-color: transparent; color: var(--good);}
.lj .lot-chip b {font-weight: 700;}
.lj .lot-quota {margin-left: auto; font-size: 12px; color: var(--ink-faint);}
.lj .lot-quota b {color: var(--ink); font-size: 13px;}
.lj .lot-head .ghost-btn {width: auto; gap: 6px;}
.lj .lot-body {margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px;}
.lj .lot-row {display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--ink-soft);}
.lj .lot-num {padding: 6px 8px; text-align: center; font-family: var(--mono);}
.lj .lot-note {font-size: 12px; color: var(--ink-faint); line-height: 1.6;}
.lj .return-remind {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: rgba(217,119,6,.14); font-size: 13px; line-height: 1.55;}
@media (max-width: 640px) { .lj .return-remind {flex-direction: column; align-items: flex-start;} }
.lj .lot-tips {margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.08); display: grid; gap: 6px;}
.lj .lot-tips-h {font-size: 12px; font-weight: 600;}
.lj .lot-tip {display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 12px; line-height: 1.55; color: var(--ink-faint); padding: 4px 6px; border-radius: 6px;}
.lj .lot-tip b {font-weight: 600;}
.lj .lot-tip.is-on {background: rgba(217,119,6,.14); color: inherit;}
@media (max-width: 640px) { .lj .lot-tip {grid-template-columns: 1fr; gap: 2px;} }
.lj .lot-sep {height: 1px; background: var(--line);}
.lj .lot-ok {font-size: 12.5px; color: var(--good); font-weight: 600;}
.lj .lot-table {width: 100%; border-collapse: collapse; font-size: 12px; color: var(--ink-soft);}
.lj .lot-table th {text-align: left; font-weight: 600; color: var(--ink-faint); padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line);}
.lj .lot-table td {padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line);}
@media (max-width: 640px) {
  .lj .lot-quota {margin-left: 0; width: 100%;}
  .lj .lot-num {font-size: 16px;}
}

/* ---------- 顶部标签：今日待处理 / 退货退款 / 镜像鹿径 ---------- */
.lj .returns-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start;}

/* ---------- 实验观测台（data.js）---------- */
.lj { --series-1: #2a78d6; --series-2: #eb6834; } /* 触达 = 蓝，对照 = 橙：分类色前两格，色盲友好 */
.lj .dv-page { display: flex; flex-direction: column; gap: 16px; }
.lj .dv-card { padding: 18px 22px 20px; }
.lj .dv-card-head { margin-bottom: 12px; }
.lj .dv-card-head h3 { font-size: 16px; }
.lj .dv-sub { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.lj .dv-top { margin-bottom: 0; }
.lj .dv-ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; }
.lj .dv-ctrl-l { font-size: 12px; color: var(--ink-faint); }
.lj .dv-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px; background: var(--surface); gap: 2px; }
.lj .dv-seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.lj .dv-seg button.is-on { background: var(--ink); color: var(--paper); }
.lj .dv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.lj .dv-tile { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lj .dv-tile.is-treat { border-left: 4px solid var(--series-1); }
.lj .dv-tile.is-control { border-left: 4px solid var(--series-2); }
.lj .dv-tile.is-warn { border-color: #efc9c9; background: #fff6f5; }
.lj .dv-tile-k { font-size: 12px; color: var(--ink-faint); }
.lj .dv-tile-v { font-size: 26px; font-weight: 700; margin: 2px 0; color: var(--ink); }
.lj .dv-tile-n { font-size: 11.5px; color: var(--ink-faint); }
.lj .dv-meter { margin: 4px 0 10px; }
.lj .dv-meter-bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.lj .dv-meter-bar i { display: block; height: 100%; background: var(--ink-soft); border-radius: 999px; }
.lj .dv-meter-t { font-size: 12px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.lj .dv-callout { padding: 10px 14px; border-radius: 10px; background: var(--info-soft); color: var(--ink); font-size: 13px; line-height: 1.7; margin: 8px 0; }
.lj .dv-callout.is-warn { background: #fff3cf; }
.lj .dv-callout.is-ok { background: var(--good-soft); }
.lj .dv-note { font-size: 12px; color: var(--ink-faint); line-height: 1.7; margin-top: 10px; }
.lj .dv-note b { color: var(--ink-soft); }
.lj .dv-h4 { font-size: 13.5px; margin: 18px 0 8px; }
.lj .dv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 10px; }
.lj .dv-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lj .dv-key.is-treat { background: var(--series-1); }
.lj .dv-key.is-control { background: var(--series-2); }
.lj .dv-frow { display: grid; grid-template-columns: 220px 1fr 200px; align-items: center; gap: 12px; padding: 5px 0; }
.lj .dv-flabel { font-size: 13px; color: var(--ink-soft); }
.lj .dv-flabel small { display: block; font-size: 11px; color: var(--ink-faint); line-height: 1.4; }
.lj .dv-frow.is-key .dv-flabel { color: var(--ink); font-weight: 700; }
.lj .dv-frow.is-key .dv-ftrack i { background: #E8A317; }
.lj .dv-fnum span { white-space: nowrap; }
.lj .dv-ftrack, .lj .dv-btrack { position: relative; height: 16px; background: var(--surface-2); border-radius: 4px; }
.lj .dv-ftrack i { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.lj .dv-fnum { text-align: right; font-size: 13px; } .lj .dv-fnum b { font-size: 15px; } .lj .dv-fnum span { margin-left: 8px; color: var(--ink-faint); font-size: 12px; }
.lj .dv-brow { display: grid; grid-template-columns: 90px 1fr 120px; align-items: center; gap: 12px; padding: 6px 0; }
.lj .dv-blabel { font-size: 13px; color: var(--ink-soft); }
.lj .dv-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.lj .dv-bar.is-treat { background: var(--series-1); } .lj .dv-bar.is-control { background: var(--series-2); }
.lj .dv-bar.is-soft { opacity: .42; }
.lj .dv-ci { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); opacity: .75; }
.lj .dv-ci::before, .lj .dv-ci::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: var(--ink); }
.lj .dv-ci::before { left: 0; } .lj .dv-ci::after { right: 0; }
.lj .dv-bnum { text-align: right; font-size: 13px; } .lj .dv-bnum b { font-size: 15px; display: block; } .lj .dv-bnum span { color: var(--ink-faint); font-size: 12px; }
.lj .dv-empty { position: absolute; left: 10px; top: 0; line-height: 16px; font-size: 11.5px; color: var(--ink-faint); }
.lj .dv-empty-block { padding: 14px; text-align: center; color: var(--ink-faint); font-size: 13px; }
.lj .dv-spair { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; padding: 8px 0; }
.lj .dv-spair .dv-blabel { grid-row: span 2; align-self: center; }
.lj .dv-sbar { display: grid; grid-template-columns: 48px 1fr 120px; align-items: center; gap: 8px; font-size: 12px; }
.lj .dv-sl { color: var(--ink-faint); } .lj .dv-sn { text-align: right; color: var(--ink-soft); } .lj .dv-sn em { font-style: normal; color: var(--ink-faint); margin-left: 6px; }
.lj .dv-headline { display: flex; align-items: center; gap: 16px; margin: 4px 0 6px; }
.lj .dv-hero { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.lj .dv-hero.is-good { color: var(--good); }
.lj .dv-hero-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.lj .dv-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; }
.lj .dv-chart { position: relative; }
.lj .dv-chart svg { width: 100%; height: auto; display: block; }
.lj .dv-grid { stroke: var(--line); stroke-width: 1; }
.lj .dv-ax { fill: var(--ink-faint); font-size: 11px; font-family: var(--mono); }
.lj .dv-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lj .dv-line.is-treat { stroke: var(--series-1); } .lj .dv-line.is-control { stroke: var(--series-2); }
.lj .dv-dot { stroke: var(--surface); stroke-width: 2; }
.lj .dv-dot.is-treat { fill: var(--series-1); } .lj .dv-dot.is-control { fill: var(--series-2); }
.lj .dv-dl { fill: var(--ink); font-size: 12px; font-weight: 600; }
.lj .dv-cross { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 3 3; }
.lj .dv-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 30px; font-size: 13px; color: var(--ink-faint); background: rgba(255,255,255,.55); }
.lj .dv-tip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.6; max-width: 320px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.lj .dv-chart .dv-tip { position: absolute; min-width: 170px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.lj .dv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.lj .dv-table th { text-align: left; font-weight: 600; color: var(--ink-faint); padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); }
.lj .dv-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.lj .dv-details { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.lj .dv-details summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.lj .dv-notes { padding: 4px 4px 0; } .lj .dv-notes ul { margin: 8px 0 0 18px; line-height: 1.9; }
@media (max-width: 640px) {
  .lj .dv-card { padding: 14px 14px 16px; }
  .lj .dv-frow { grid-template-columns: 1fr; gap: 4px; }
  .lj .dv-fnum { text-align: left; }
  .lj .dv-brow { grid-template-columns: 64px 1fr 92px; gap: 8px; }
  .lj .dv-spair { grid-template-columns: 1fr; }
  .lj .dv-spair .dv-blabel { grid-row: auto; }
  .lj .dv-sbar { grid-template-columns: 44px 1fr 96px; }
  .lj .dv-hero { font-size: 32px; }
}
.lj .dv-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; margin-bottom: 10px; }
.lj .dv-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-faint); }
.lj .dv-inp { display: flex; align-items: center; gap: 6px; }
.lj .dv-inp input { width: 100%; padding: 7px 9px; font-size: 14px; }
.lj .dv-inp em { font-style: normal; font-size: 11px; white-space: nowrap; }
@media (max-width: 640px) { .lj .dv-inp input { font-size: 16px; } }

/* 批次：上一轮遗留的记录 */
.lj .badge-legacy {background: var(--surface-2); color: var(--ink-faint); border: 1px solid var(--line); font-weight: 600;}
.lj .count-sub {margin-left: 4px; font-size: 11px; color: var(--ink-faint); font-family: inherit;}

/* 实验工作台四列并排：待跟进 / 正在跟进 / 待回访 / 联系了未参与（仍属触达组）。镜像鹿径是三列 */
.lj .queue-cols[data-n="4"] {grid-template-columns: repeat(4, 1fr);}
@media (max-width: 1360px) { .lj .queue-cols[data-n="4"] {grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px) { .lj .queue-cols[data-n="4"] {grid-template-columns: 1fr;} }

/* ---------- 对话时间线（public/js/lujing/conversation.js） ---------- */
.lj .cv { --m-chat: var(--accent); --m-agent: var(--violet); --m-card: #8a929a; --m-other: var(--line-strong); }
.lj .cv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lj .cv-head h4 { font-size: 15px; }
.lj .cv-btn { padding: 4px 10px; font-size: 12.5px; }
.lj .cv-range { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lj .cv-range button { border: 0; background: transparent; padding: 3px 12px; font-size: 12.5px; color: var(--ink-soft); }
.lj .cv-range button.is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.lj .cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lj .cv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); }
.lj .cv-chip i, .lj .cv-seg { background: var(--c); }
.lj .cv-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lj .m-chat { --c: var(--m-chat); } .lj .m-agent { --c: var(--m-agent); } .lj .m-card { --c: var(--m-card); } .lj .m-other { --c: var(--m-other); }
.lj .cv-note { font-size: 12px; color: var(--ink-faint); line-height: 1.6; margin: 4px 0 8px; }
.lj .cv-note.warn { color: var(--warn); }
.lj .cv-axis { display: grid; grid-template-columns: 62px 1fr 150px; gap: 10px; font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }
.lj .cv-axis > div { position: relative; height: 12px; }
.lj .cv-axis i { position: absolute; transform: translateX(-50%); font-style: normal; font-family: var(--mono); }
.lj .cv-axis i:first-child { transform: none; } .lj .cv-axis i:last-child { transform: translateX(-100%); }
.lj .cv-day { display: grid; grid-template-columns: 62px 1fr 150px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.lj .cv-day:first-child { border-top: 0; }
.lj .cv-date { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; color: var(--ink-faint); }
.lj .cv-date b { font-size: 13px; color: var(--ink); }
.lj .cv-track { position: relative; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.lj .cv-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.lj .cv-seg { position: absolute; top: 3px; bottom: 3px; border: 0; padding: 0; border-radius: 4px; min-width: 6px; opacity: .88; transition: transform .12s, opacity .12s; }
.lj .cv-seg:hover { opacity: 1; transform: scaleY(1.25); }
.lj .cv-stats { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.35; }
.lj .cv-stat::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.lj .cv-silent { color: var(--ink-faint); }
.lj .cv-day.is-silent .cv-track { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.lj .cv-trans { grid-column: 1 / -1; margin: 6px 0 4px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; background: var(--surface); }
.lj .cv-trans.cv-new { animation: cv-in .18s ease-out; }
@keyframes cv-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lj .cv-trans-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; font-size: 12.5px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.lj .cv-trans-head b { color: var(--c); }
.lj .cv-x { margin-left: auto; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--ink-faint); }
.lj .cv-msgs { max-height: 360px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.lj .cv-msg { display: flex; flex-direction: column; max-width: 82%; }
.lj .cv-msg.user { align-self: flex-end; align-items: flex-end; }
.lj .cv-msg.assistant { align-self: flex-start; }
.lj .cv-bubble { padding: 7px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border: 1px solid var(--line); }
.lj .cv-msg.user .cv-bubble { background: var(--accent-soft); border-color: var(--accent-soft-line); border-bottom-right-radius: 4px; }
.lj .cv-msg.assistant .cv-bubble { border-bottom-left-radius: 4px; }
.lj .cv-msg.is-confusion .cv-bubble { background: var(--warn-soft); border-color: transparent; }
.lj .cv-meta { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }
.lj .cv-tag { font-style: normal; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lj .cv-tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.lj .cv-tag.faint { opacity: .75; }
.lj .cv-empty { color: var(--ink-faint); }
@media (max-width: 640px) {
  .lj .cv-day, .lj .cv-axis { grid-template-columns: 44px 1fr; }
  .lj .cv-axis > span:last-child { display: none; }
  .lj .cv-stats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; }
  .lj .cv-msg { max-width: 94%; }
}

/* ---------- Day1 工单：按需话术抽屉、锁定的方案卡 ---------- */
.lj .lock-card { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 11px); border-style: dashed; }
.lj .qref-body { padding: 10px 4px 4px; }

/* ---------- AI 话术助手（public/js/lujing/copilot.js） ---------- */
.lj .wizard.has-ai { grid-template-columns: 280px minmax(0, 1fr) 380px; }
.lj .ai-dock { position: sticky; top: calc(var(--rvh, 0px) + 58px + 14px); height: calc(100vh - var(--rvh, 0px) - 58px - 28px); min-height: 460px; }
.lj .ai-panel { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.lj .ai-fab { display: none; }
.lj .ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border-bottom: 1px solid var(--line); }
.lj .ai-ava { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 8px -2px rgba(0,0,0,.25); }
.lj .ai-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.lj .ai-title b { font-family: var(--disp); font-size: 15px; }
.lj .ai-title span { font-size: 11.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lj .ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); flex: none; }
.lj .ai-dot.off { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.lj .ai-model { max-width: 118px; font-size: 11.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); }
.lj .ai-x { display: none; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-faint); }
.lj .ai-body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); scroll-behavior: smooth; }
.lj .ai-empty { margin: auto; text-align: center; color: var(--ink-soft); font-size: 13px; line-height: 1.7; padding: 10px 18px; }
.lj .ai-empty img { width: 84px; height: 84px; object-fit: cover; border-radius: 24px; margin-bottom: 8px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.35); animation: ai-float 3.6s ease-in-out infinite; }
.lj .ai-empty p { margin: 0 0 6px; } .lj .ai-empty .sub { font-size: 12px; color: var(--ink-faint); }
.lj .ai-empty.warn { color: var(--warn); }
@keyframes ai-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.lj .ai-row { display: flex; flex-direction: column; }
.lj .ai-row.ai-new { animation: ai-in .22s ease-out; }
.lj .ai-row.me { align-items: flex-end; }
@keyframes ai-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lj .ai-bub { max-width: 88%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #fff; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.lj .ai-bub b { display: block; font-size: 10.5px; font-weight: 600; opacity: .8; margin-bottom: 1px; letter-spacing: .04em; }
.lj .ai-bub.quick { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-soft-line); font-weight: 600; font-size: 12.5px; }
.lj .ai-bub.quick em { display: block; font-style: normal; font-weight: 400; opacity: .85; margin-top: 2px; }
.lj .ai-meta { font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; }
.lj .ai-card { width: 96%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 22px -16px rgba(0,0,0,.3); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.lj .ai-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lj .ai-card.is-edited { border-left: 3px solid var(--accent); }
.lj .ai-draft { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; padding: 11px 13px 4px; font: inherit; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.lj .ai-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 8px 13px; }
.lj .ai-card-foot .ai-meta { margin: 0; } .lj .ai-card-foot .ai-meta b { color: var(--accent-ink); }
.lj .ai-acts { display: flex; align-items: center; gap: 4px; }
.lj .ai-link { border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; padding: 4px 8px; border-radius: 8px; }
.lj .ai-link:hover { background: var(--surface-2); color: var(--ink); }
.lj .ai-copy { border: 0; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px; transition: transform .1s, filter .15s; }
.lj .ai-copy:hover { filter: brightness(1.08); } .lj .ai-copy:active { transform: scale(.95); }
.lj .ai-card.live { border-style: dashed; }
.lj .ai-live { padding: 11px 13px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; min-height: 24px; }
.lj .ai-caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--accent); border-radius: 2px; animation: ai-blink 1s steps(2, start) infinite; }
@keyframes ai-blink { to { visibility: hidden; } }
.lj .ai-dots { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.lj .ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .35; animation: ai-bounce 1.1s infinite ease-in-out; }
.lj .ai-dots i:nth-child(2) { animation-delay: .15s; } .lj .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-bounce { 0%,80%,100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
.lj .ai-err { font-size: 12.5px; color: var(--warn); background: var(--warn-soft); padding: 7px 11px; border-radius: 10px; }
.lj .ai-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 0; background: var(--surface); }
.lj .ai-chip { border: 1px solid var(--accent-soft-line); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.lj .ai-chip:hover:not(:disabled) { filter: brightness(.96); } .lj .ai-chip:disabled { opacity: .5; }
.lj .ai-hint { font-size: 11px; color: var(--ink-faint); }
.lj .ai-input { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: end; padding: 8px 12px 12px; background: var(--surface); }
.lj .ai-seg { grid-column: 1 / -1; display: inline-flex; width: fit-content; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lj .ai-seg button { border: 0; background: transparent; font-size: 11.5px; padding: 3px 11px; color: var(--ink-soft); }
.lj .ai-seg button.is-on { background: var(--ink); color: var(--surface); }
.lj .ai-input textarea { resize: none; border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 11px; font: inherit; font-size: 13.5px; line-height: 1.5; background: var(--surface-2); outline: 0; min-height: 40px; max-height: 120px; }
.lj .ai-input textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.lj .ai-send { border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 12px; }
.lj .ai-send.stop { background: var(--warn); }
@media (max-width: 1360px) {
  .lj .wizard.has-ai { grid-template-columns: 280px minmax(0, 1fr); }
  .lj .ai-dock { position: fixed; top: calc(var(--rvh, 0px) + 58px + 8px); right: 0; bottom: 0; z-index: 9; width: min(420px, 100vw); height: auto; padding: 0 12px 12px; transform: translateX(110%); transition: transform .25s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
  .lj .ai-dock.is-open { transform: none; pointer-events: auto; }
  .lj .ai-dock .ai-panel { box-shadow: 0 20px 60px -12px rgba(0,0,0,.45); }
  .lj .ai-fab { display: inline-flex; position: fixed; right: 18px; bottom: 18px; z-index: 55; align-items: center; gap: 6px; border: 0; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--accent); box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); }
  .lj .ai-dock.is-open ~ .ai-fab { display: none; }
  .lj .ai-x { display: block; }
}
@media (max-width: 860px) {
  .lj .wizard.has-ai { grid-template-columns: minmax(0, 1fr); }
  .lj .ai-dock { top: auto; left: 0; width: 100vw; height: 82vh; padding: 0; transform: translateY(110%); }
  .lj .ai-dock .ai-panel { border-radius: 20px 20px 0 0; }
}

/* 话术速查：页面最上面的两个按钮，点开在下面展开 */
.lj .qref-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lj .qref-label { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: 13.5px; margin-right: 4px; }
.lj .qref-label i { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--ink-faint); }
.lj .qref-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font-size: 13px; padding: 7px 13px; border-radius: 999px; }
.lj .qref-chip:hover { border-color: var(--accent); }
.lj .qref-chip.is-open { border-color: var(--accent-soft-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.lj .qref-chip span { font-size: 12px; opacity: .7; }
.lj .cv-fixed { font-size: 12px; color: var(--ink-faint); }

.lj .cv-date small { font-weight: 400; color: var(--ink-faint); }
.lj .cv-bind { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 0 6px; }
.lj .cv-day.is-run { padding: 4px 0; }
.lj .cv-run { height: 10px; opacity: .8; }

/* 对话录音：听这一句 */
.lj .cv-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 12px; font-size: 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lj .cv-rec.ok { color: var(--good); background: var(--good-soft); }
.lj .cv-rec.warn { color: var(--warn); }
.lj .cv-play { border: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; line-height: 1; padding: 0; }
.lj .cv-play.is-on { background: var(--accent); color: #fff; }

.lj .cv-date .cv-bind { display: block; width: fit-content; margin-top: 2px; white-space: nowrap; }

.lj .cv-msg.is-now .cv-bubble { box-shadow: 0 0 0 2px var(--accent); }
.lj .cv-msg.assistant.is-now .cv-bubble { box-shadow: 0 0 0 2px var(--accent-soft-line); }
