* { box-sizing: border-box; }
:root {
  --primary: #2f7cff;
  --primary-weak: #eaf2ff;
  --sidebar: #10233f;
  --sidebar-deep: #0b172c;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #e6ebf3;
  --text: #172033;
  --muted: #7a8799;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
  color: #dbe8ff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .22s ease;
}
.brand { height: 72px; padding: 16px 12px 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; flex-shrink: 0; }
.brand-text { min-width: 0; flex: 1; }
.brand-title { font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand-subtitle { margin-top: 3px; color: #8fa8ce; font-size: 12px; white-space: nowrap; }
.collapse-btn { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(255,255,255,.08); color: #dbe8ff; cursor: pointer; flex-shrink: 0; }
.collapse-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.menu { padding: 12px 10px; flex: 1; overflow: auto; }
.menu-group { margin-bottom: 6px; }
.menu-group-title { width: 100%; border: 0; background: transparent; color: #c6d6f2; padding: 11px 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; text-align: left; }
.menu-group-title:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-group-title.open { color: #fff; background: rgba(255,255,255,.07); }
.menu-icon { width: 18px; text-align: center; flex-shrink: 0; }
.menu-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-arrow { color: #7890b5; transition: transform .18s ease; }
.menu-group-title.open .menu-arrow { transform: rotate(90deg); color: #dbe8ff; }
.submenu { display: none; padding: 3px 0 5px 34px; }
.menu-group.open .submenu { display: block; }
.submenu-item { width: 100%; border: 0; background: transparent; color: #9fb3d4; padding: 9px 10px; border-radius: 8px; display: block; cursor: pointer; font-size: 13px; text-align: left; margin: 2px 0; }
.submenu-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.submenu-item.active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(47,124,255,.22); }
.sidebar-footer { padding: 14px 18px; color: #7890b5; font-size: 12px; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.8; }
.app-shell.sidebar-collapsed .sidebar { width: 72px; }
.app-shell.sidebar-collapsed .brand { padding: 16px 10px; justify-content: center; gap: 0; flex-wrap: wrap; height: 86px; }
.app-shell.sidebar-collapsed .brand-text,
.app-shell.sidebar-collapsed .menu-text,
.app-shell.sidebar-collapsed .menu-arrow,
.app-shell.sidebar-collapsed .submenu,
.app-shell.sidebar-collapsed .sidebar-footer { display: none !important; }
.app-shell.sidebar-collapsed .collapse-btn { width: 38px; margin-top: 6px; }
.app-shell.sidebar-collapsed .menu { padding: 12px 8px; overflow: visible; }
.app-shell.sidebar-collapsed .menu-group-title { justify-content: center; padding: 12px 0; }
.app-shell.sidebar-collapsed .menu-icon { width: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 72px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.page-title { font-size: 18px; font-weight: 700; }
.page-desc { margin-top: 4px; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; gap: 10px; }
.ghost-btn, .primary-btn { border-radius: 9px; padding: 9px 14px; font-size: 13px; cursor: pointer; }
.ghost-btn { background: #fff; border: 1px solid #dce3ee; color: #46566f; }
.primary-btn { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.tabs { height: 43px; display: flex; align-items: flex-end; gap: 6px; padding: 0 18px; background: #f8fafe; border-bottom: 1px solid #e2e8f2; overflow-x: auto; }
.tab { height: 34px; min-width: 98px; padding: 0 10px 0 13px; border: 1px solid #dce3ee; border-bottom: 0; border-radius: 10px 10px 0 0; background: #edf2f9; color: #5a687d; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 13px; user-select: none; }
.tab:hover { background: #f6f9fe; color: var(--text); }
.tab.active { background: #fff; color: var(--text); font-weight: 650; }
.tab-close { border: 0; background: transparent; color: #8c98aa; cursor: pointer; font-size: 15px; }
.content { padding: 22px; flex: 1; overflow: auto; }
.page-path { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 22px rgba(24,39,75,.04); }
.card + .card, .two-col + .card { margin-top: 16px; }
.card-title { font-size: 16px; font-weight: 750; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric { padding: 16px; border-radius: 14px; background: #f7faff; border: 1px solid #e7eefb; }
.metric-label { color: #77869a; font-size: 13px; }
.metric-value { margin-top: 8px; font-size: 24px; font-weight: 800; }
.metric-trend { margin-top: 7px; font-size: 12px; color: #64748b; }
.metric-trend.up { color: var(--green); }
.metric-trend.warn { color: var(--orange); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filter-card { margin-bottom: 16px; padding: 16px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)) auto; gap: 12px; align-items: end; }
.filter-grid label, .form-inline label { display: grid; gap: 6px; color: #64748b; font-size: 12px; }
input, select, textarea { border: 1px solid #dce3ee; border-radius: 9px; padding: 0 12px; background: #fff; color: var(--text); }
input, select { height: 36px; }
textarea { min-height: 72px; padding: 10px 12px; resize: vertical; }
.filter-actions, .modal-actions { display: flex; gap: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid #edf1f7; text-align: left; vertical-align: top; }
th { color: #69778d; background: #f8fafc; font-weight: 650; white-space: nowrap; }
.wide-cell { min-width: 260px; color: #475569; }
.url-cell { max-width: 360px; word-break: break-all; color: #2563eb; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--primary-weak); color: var(--primary); font-size: 12px; line-height: 1; white-space: nowrap; }
.badge.green { background: #e9f8ef; color: var(--green); }
.badge.orange { background: #fff7e6; color: var(--orange); }
.badge.red { background: #fff0f0; color: var(--red); }
.badge.gray { background: #f0f2f5; color: #6b7788; }
.empty-note { color: var(--muted); line-height: 1.8; }
.todo-list { margin: 0; padding-left: 18px; color: #536176; line-height: 1.9; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 16px; align-items: start; }
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.funnel div { position: relative; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #eef5ff, #fff); border: 1px solid #dce9ff; }
.funnel div:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 800; }
.funnel b { display:block; font-size:22px; }
.funnel span { color: var(--muted); font-size: 12px; }
.steps { display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.step { padding: 10px 14px; border-radius: 999px; background: #edf2f9; color: #64748b; font-size: 13px; }
.step.active { background: var(--primary); color: #fff; }
.preview-url { border: 1px dashed #9bc0ff; border-radius: 12px; background: #f7fbff; padding: 14px; color: #1d4ed8; word-break: break-all; }
.upload-box { border: 1px dashed #9bc0ff; border-radius: 16px; background: #f8fbff; padding: 28px; display: grid; place-items: center; gap: 10px; text-align: center; color: #64748b; }
.upload-box b { color: var(--text); }
.result-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-grid div { padding: 16px; border-radius: 14px; background: #f8fafc; display:flex; justify-content:space-between; align-items:center; }
.detail-row { display:flex; justify-content:space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf1f7; color: #64748b; }
.detail-row strong { color: var(--text); text-align:right; }
.timeline { margin: 0; padding-left: 18px; color: #536176; line-height: 2; }
.status-tabs { display:flex; gap: 8px; margin-bottom: 16px; }
.status-tabs button { border:1px solid #dce3ee; background:#fff; color:#536176; border-radius:999px; padding:8px 14px; cursor:pointer; }
.status-tabs button.active { background: var(--primary); color:#fff; border-color: var(--primary); }
.row-actions { display:flex; gap: 6px; flex-wrap:wrap; }
.link-btn, .icon-btn { border: 0; background: transparent; color: var(--primary); cursor: pointer; padding: 0 2px; }
.icon-btn { font-size: 13px; }
.pagination { display:flex; align-items:center; justify-content:flex-end; gap: 8px; margin-top: 14px; color: var(--muted); }
.pagination button { height: 30px; min-width: 30px; border:1px solid #dce3ee; border-radius:8px; background:#fff; color:#536176; cursor:pointer; }
.pagination button.active { background: var(--primary); border-color: var(--primary); color:#fff; }
.form-inline { display:grid; grid-template-columns: repeat(3, minmax(160px,1fr)) auto; gap: 12px; align-items: end; }
.modal-mock, .drawer-mock, .popover-mock { margin-top: 16px; border: 1px dashed #bfd2ee; border-radius: 16px; background: #fbfdff; padding: 16px; }
.modal-title, .drawer-title { font-weight: 750; margin-bottom: 12px; }
.form-row { display:grid; grid-template-columns: 120px minmax(0,1fr); gap: 10px; align-items:center; margin-bottom: 10px; color:#64748b; }
.drawer-mock { max-width: 480px; margin-left: auto; }
.popover-mock { max-width: 520px; display:grid; gap: 10px; }
@media (max-width: 1100px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .visit-filter-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .two-col, .funnel, .grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { width: 208px; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  .filter-grid, .two-col, .funnel, .grid, .form-inline { grid-template-columns: 1fr; }
  .toolbar, .topbar { align-items: flex-start; flex-direction: column; height: auto; padding-top: 14px; padding-bottom: 14px; }
}

/* H5 页面列表：真正弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .46);
}
.h5-modal-open #h5PageModal,
.match-modal-open #matchModal,
.knowledge-main-modal-open #productKnowledgeMainModal,
.knowledge-edit-modal-open #knowledgeEditModal,
.knowledge-import-modal-open #knowledgeImportModal,
.support-modal-open #supportModal,
.lead-detail-modal-open #leadDetailModal,
.lead-chat-modal-open #leadChatModal,
.batch-detail-modal-open #batchDetailModal,
.product-modal-open #productModal,
.channel-modal-open #channelModal,
.wecom-modal-open #wecomLinkModal { display: flex; }
.wecom-attribution-modal-open #wecomAttributionModal { display: flex; }
.summary-detail-modal-open #h5SummaryDetailModal { display: flex; }
.modal-panel {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal-close { border: 0; background: #f1f5f9; color: #64748b; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 20px; line-height: 1; }
.modal-close:hover { background: #e2e8f0; color: var(--text); }
.product-modal-panel { width: min(680px, 96vw); }
.channel-modal-panel { width: min(620px, 96vw); }
.wecom-modal-panel { width: min(680px, 96vw); }
.product-modal-panel .modal-actions,
.channel-modal-panel .modal-actions,
.wecom-modal-panel .modal-actions { justify-content: flex-end; margin-top: 18px; }
.form-row input[readonly] { background: #f8fafc; color: #64748b; cursor: not-allowed; }
.form-row-top { align-items: start; }
.form-row-top > span { padding-top: 10px; }
.form-row em { color: var(--red); font-style: normal; }
.field-tip { margin-top: 5px; color: var(--muted); font-size: 12px; }
.tracker-note { margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid #bfdbfe; background: #eff6ff; color: #334155; line-height: 1.8; }
.tracker-note b { display: block; margin-bottom: 6px; color: #1d4ed8; }
.tracker-note ul { margin: 0; padding-left: 18px; }
.tracker-note code { background: #fff; border: 1px solid #dbeafe; border-radius: 6px; padding: 2px 6px; color: #1e40af; word-break: break-all; }
.visit-modal-open .visit-modal { display: flex; }
.visit-modal-panel { width: min(860px, 96vw); }
.radio-segment { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-segment label { min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; background: #fff; color: var(--muted); cursor: pointer; font-size: 13px; }
.radio-segment label.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 700; }
.radio-segment input { accent-color: var(--primary); }
.summary-filter { display: flex; flex-direction: column; gap: 16px; }
.summary-radio-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.summary-radio-row > span { font-size: 13px; color: var(--muted); font-weight: 700; min-width: 64px; }
.summary-filter .radio-segment { flex-wrap: nowrap; }
.summary-filter .radio-segment label { min-width: 160px; }
.summary-condition-row { border-top: 1px dashed var(--line); padding-top: 14px; }

/* 已添加企微客户：客户线索与只读详情 */
.lead-filter-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(290px, 1.4fr) auto; }
.multi-select { position: relative; }
.multi-select-trigger { width: 100%; height: 36px; border: 1px solid #dce3ee; border-radius: 9px; padding: 0 11px; background: #fff; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
.multi-select-trigger span { color: var(--text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multi-select-trigger b { color: var(--muted); font-size: 12px; }
.multi-select.open .multi-select-trigger { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47,124,255,.12); }
.multi-select-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: none; width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.16); }
.multi-select.open .multi-select-panel { display: block; }
.multi-select-panel label { grid-template-columns: 18px 1fr; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.multi-select-panel label:hover { background: #f5f8fd; }
.multi-select-panel input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.multi-select-panel label span { color: var(--text); font-size: 13px; }
.multi-select-tools { display: flex; justify-content: flex-end; gap: 6px; padding: 2px 4px 7px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.multi-select-tools button { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; padding: 3px 5px; }
.lead-time-filter { grid-column: span 2; }
.time-range { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr); gap: 8px; }
.visit-filter-grid { display:grid; grid-template-columns:minmax(210px,1fr) minmax(180px,1fr) minmax(180px,1fr) minmax(235px,1.15fr) auto; gap:12px; align-items:end; }
.visit-filter-grid label { display:grid; gap:6px; color:#64748b; font-size:12px; }
.visit-time-stack { display:grid; grid-template-columns:1fr; gap:7px; }
.visit-filter-actions { align-self:end; padding-bottom:1px; }
.h5-visit-table { min-width:1250px; }
.h5-visit-pagination { margin-top:16px; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; }
.h5-visit-pagination > span:first-child { margin-right:auto; color:#64748b; }
.h5-visit-pagination button { min-width:36px; height:36px; border:1px solid #e2e8f0; border-radius:7px; background:#fff; color:#475569; cursor:pointer; }
.h5-visit-pagination button.active { background:#0f9f95; border-color:#0f9f95; color:#fff; font-weight:700; }
.h5-visit-pagination button:disabled { opacity:.45; cursor:not-allowed; }
.h5-visit-pagination .ghost-btn { width:auto; padding:0 12px; }
.h5-visit-jump { display:inline-flex; grid-template-columns:none; align-items:center; gap:7px; color:#64748b; font-size:14px; }
.h5-visit-jump input { width:64px; height:36px; padding:0 8px; text-align:center; }
.visit-modal-panel .detail-row strong { max-width:68%; word-break:break-all; }
.table-scroll { overflow-x: auto; }
.lead-table { min-width: 1450px; }
.lead-table th, .lead-table td { vertical-align: middle; }
.wechat-person { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wechat-person > img { width: 30px; height: 30px; max-width: 30px; max-height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 30px; }
.wechat-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #e8f7ee; color: #16803c; font-weight: 750; }
.lead-status-cell { display: grid; justify-items: start; gap: 5px; }
.lead-status-cell small, .lead-advice-cell small, .subtle-text { color: var(--muted); font-size: 11px; }
.lead-summary-cell { min-width: 190px; max-width: 250px; color: #475569; line-height: 1.55; }
.lead-advice-cell { min-width: 210px; max-width: 280px; line-height: 1.55; }
.lead-advice-cell small { display: block; margin-top: 4px; color: #2563eb; }
.lead-actions { flex-wrap: nowrap; white-space: nowrap; }
.lead-modal-panel { width: min(920px, 96vw); }
.lead-modal-panel > .modal-actions { justify-content: flex-end; margin-top: 18px; }
.lead-detail-grid, .chat-summary-grid, .ai-analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-detail-grid > div, .chat-summary-grid > div, .ai-analysis-grid > div { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.lead-detail-grid span, .chat-summary-grid span, .ai-analysis-grid span { color: var(--muted); font-size: 12px; }
.lead-detail-grid strong, .chat-summary-grid strong, .ai-analysis-grid strong { color: var(--text); line-height: 1.55; }
.lead-detail-grid small, .chat-summary-grid small, .ai-analysis-grid small { color: #2563eb; }
.lead-readonly-section { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.lead-readonly-section h4 { margin: 0 0 8px; }
.lead-readonly-section p { margin: 0; color: #475569; line-height: 1.7; }
.lead-readonly-section small { display: block; margin-top: 8px; color: var(--muted); }
.lead-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lead-tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eef5ff; color: #2563eb; font-size: 12px; }
.chat-summary-grid .wide, .ai-analysis-grid .wide { grid-column: 1 / -1; }
.chat-list { margin: 16px 0; padding: 16px; border-radius: 14px; background: #f8fafc; display: grid; gap: 12px; }
.chat-message { max-width: 76%; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.chat-message.customer { justify-self: start; }
.chat-message.service { justify-self: end; background: #eaf2ff; border-color: #cfe0ff; }
.chat-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.chat-meta b { color: var(--text); }
.chat-message p { margin: 6px 0 0; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.archive-status { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.archive-status span { padding:5px 9px; border-radius:999px; background:#eef4ff; color:#315b91; font-size:12px; }
.lead-evidence { padding: 13px 15px; border-radius: 12px; background: #fff7e6; border: 1px solid #fde3a7; color: #92400e; }
.lead-evidence ul { margin: 7px 0 0; padding-left: 20px; line-height: 1.7; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title-row .card-title { margin: 0; }
.ai-example-badge { padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 12px; }

/* 客服/产品、产品/渠道线索统计 */
.statistics-filter-grid { grid-template-columns: minmax(360px, 1.5fr) repeat(2, minmax(180px, 1fr)) auto; }
.statistics-time-filter { grid-column: auto; }
.statistics-table { min-width: 1120px; }
.statistics-primary { color: #1d4ed8; white-space: nowrap; }
.statistics-note { margin-top: 14px; padding: 12px 15px; border: 1px solid #dbeafe; border-radius: 12px; background: #f7fbff; color: #64748b; font-size: 12px; line-height: 1.7; }
.statistics-note b { color: #1d4ed8; }

/* 支撑模块 */
.support-form-grid, .support-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.support-form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.support-modal-panel .modal-actions { justify-content: flex-end; margin-top: 18px; }
.support-modal-panel { width: min(920px, 96vw); }
.support-filter-grid { grid-template-columns: repeat(4,minmax(165px,1fr)) auto; }
.support-time-filter { grid-column: span 2; }
.support-table { min-width: 1180px; }
.support-table.very-wide { min-width: 1650px; }
.prototype-banner, .rule-banner { margin-bottom: 16px; padding: 12px 15px; border-radius: 12px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e40af; line-height: 1.6; }
.rule-banner { background: #fff7e6; border-color: #fde3a7; color: #92400e; }
.support-form-grid .wide, .support-detail-grid .wide { grid-column: 1/-1; }
.support-detail-grid > div { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.support-detail-grid span { color: var(--muted); font-size: 12px; }
.prototype-result { margin-top: 14px; padding: 13px 15px; border: 1px dashed #9bc0ff; border-radius: 12px; background: #f7fbff; display: grid; gap: 6px; color: #334155; }
.evaluation-test { display: grid; gap: 14px; }
.evaluation-test > label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.placeholder-page { text-align: center; padding: 40px; }
.placeholder-icon { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: #eef5ff; color: var(--primary); font-size: 28px; }
.placeholder-page h3 { margin: 0 0 8px; }
.placeholder-page p { color: var(--muted); }
.future-list { max-width: 560px; margin: 20px auto 0; padding: 16px 20px; border-radius: 14px; background: #f8fafc; text-align: left; line-height: 1.8; }
.future-list ul { margin-bottom: 0; }
.compact-form { display: grid; grid-template-columns: repeat(2,minmax(180px,1fr)); gap: 14px; align-items: end; }
.compact-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }

/* 产品知识库 */
.product-knowledge-main-panel { width: min(1180px, 96vw); }
.product-knowledge-main-panel > .modal-actions { justify-content: flex-end; margin-top: 16px; }
.knowledge-main-footer { border-top: 1px solid var(--line); padding-top: 16px; }
.product-knowledge-main-panel .rag-flow-card { box-shadow: none; }
.knowledge-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.knowledge-head > div > span { color: var(--muted); font-size: 12px; }
.knowledge-head h3 { margin: 5px 0 0; font-size: 20px; }
.knowledge-head h3 small { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.knowledge-metrics { grid-template-columns: repeat(3,minmax(180px,1fr)); }
.compact-value { font-size: 17px; }
.knowledge-template-note { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.upload-trigger { display: inline-flex; align-items: center; border: 1px solid #dce3ee; border-radius: 9px; padding: 9px 14px; background: #fff; color: #46566f; cursor: pointer; font-size: 13px; }
.upload-trigger input { display: none; }
.knowledge-table { table-layout: fixed; }
.knowledge-table th:nth-child(1), .knowledge-table td:nth-child(1) { width: 80px; text-align: center; }
.knowledge-table th:nth-child(2), .knowledge-table td:nth-child(2) { width: 300px; }
.knowledge-index { color: var(--muted); font-variant-numeric: tabular-nums; }
.knowledge-filter-grid { grid-template-columns: minmax(260px, 1fr) auto; }
.knowledge-content-cell { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; line-height: 1.65; }
.knowledge-row-actions { flex-shrink: 0; white-space: nowrap; }
.danger-link { color: var(--red); }
.knowledge-edit-panel { width: min(720px,96vw); }
.knowledge-edit-panel form { display: grid; gap: 13px; }
.knowledge-edit-panel form > label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.knowledge-edit-panel textarea { min-height: 150px; }
.knowledge-edit-panel .modal-actions, .knowledge-import-panel .modal-actions { justify-content: flex-end; margin-top: 16px; }
.knowledge-import-panel { width: min(900px,96vw); }
.import-summary { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.import-summary > div { display: grid; gap: 5px; padding: 12px; background: #f8fafc; border-radius: 10px; }
.import-summary span { color: var(--muted); font-size: 12px; }
.rag-flow-card { margin-top: 16px; }
.rag-flow { display: grid; grid-template-columns: repeat(6,minmax(120px,1fr)); gap: 8px; margin: 14px 0; }
.rag-flow span { position: relative; padding: 11px 9px; border-radius: 10px; background: #eef5ff; color: #1d4ed8; text-align: center; font-size: 12px; }
.rag-flow-card li { margin: 7px 0; color: #475569; }

@media (max-width: 1100px) {
  .lead-filter-grid { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .statistics-filter-grid, .support-filter-grid { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .statistics-time-filter, .support-time-filter { grid-column: span 2; }
}
@media (max-width: 760px) {
  .summary-filter .radio-segment { flex-wrap: wrap; }
  .lead-filter-grid, .lead-detail-grid, .chat-summary-grid, .ai-analysis-grid, .statistics-filter-grid, .support-filter-grid, .support-form-grid, .support-detail-grid, .compact-form, .knowledge-metrics, .import-summary, .rag-flow { grid-template-columns: 1fr; }
  .lead-time-filter, .statistics-time-filter, .support-time-filter, .support-form-grid .wide, .support-detail-grid .wide, .chat-summary-grid .wide, .ai-analysis-grid .wide { grid-column: auto; }
  .time-range { grid-template-columns: 1fr; }
  .visit-filter-grid { grid-template-columns: 1fr; }
  .chat-message { max-width: 92%; }
}

/* 2026-09-12: AI task/review live detail JSON */
.ai-json-block { margin:8px 0 0; max-height:360px; overflow:auto; white-space:pre-wrap; word-break:break-word; padding:12px; border-radius:10px; background:#0f172a; color:#e2e8f0; font-size:12px; line-height:1.6; }
.support-detail-grid p { margin:6px 0 0; line-height:1.6; word-break:break-word; }


/* 2026-09-12: 每日运营日报 V1 页面（匿名演示数据） */
.daily-demo-banner { border-color:#c7d2fe; background:linear-gradient(135deg,#eef2ff,#f8fafc); color:#3730a3; }
.daily-filter-grid { grid-template-columns:minmax(360px,1.5fr) minmax(160px,.7fr) minmax(160px,.7fr) auto; }
.daily-list-metrics { grid-template-columns:repeat(4,minmax(150px,1fr)); }
.daily-headline-cell { min-width:280px; max-width:440px; line-height:1.55; color:#334155; }
.daily-report-table { min-width:1180px; }
.daily-report-table td:first-child { white-space:nowrap; }
.daily-report-table td:first-child small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.daily-card-desc { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.danger-value { color:#dc2626; }
.daily-detail-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.daily-detail-toolbar > div { display:flex; gap:10px; }
.daily-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:28px; margin-bottom:18px; padding:24px 26px; border:1px solid #dbeafe; border-radius:18px; background:linear-gradient(135deg,#0f3d91,#2563eb); color:#fff; box-shadow:0 12px 30px rgba(37,99,235,.18); }
.daily-eyebrow { margin-bottom:8px; color:#bfdbfe; font-size:12px; font-weight:750; letter-spacing:.08em; }
.daily-hero h2 { margin:0; max-width:760px; font-size:25px; line-height:1.42; }
.daily-hero p { margin:12px 0 0; color:#dbeafe; line-height:1.65; }
.daily-hero-status { min-width:130px; display:grid; justify-items:end; gap:10px; }
.daily-hero-status span:last-child { color:#dbeafe; font-size:12px; white-space:nowrap; }
.daily-kpi-grid { display:grid; grid-template-columns:repeat(6,minmax(130px,1fr)); gap:12px; margin-bottom:16px; }
.daily-kpi-card { padding:17px; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.04); }
.daily-kpi-card.up { border-top:3px solid #2563eb; }
.daily-kpi-card.warn { border-top:3px solid #f59e0b; }
.daily-kpi-label { color:var(--muted); font-size:12px; }
.daily-kpi-value { margin:7px 0 9px; color:#0f172a; font-size:29px; font-weight:800; }
.daily-kpi-compare { display:grid; gap:3px; color:#64748b; font-size:11px; }
.daily-kpi-compare b { color:#2563eb; font-size:12px; }
.daily-kpi-card.warn .daily-kpi-compare b { color:#d97706; }
.daily-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.daily-section { margin-bottom:16px; }
.daily-bars { display:grid; gap:14px; margin-top:20px; }
.daily-bar-row { display:grid; grid-template-columns:70px 1fr 84px; align-items:center; gap:12px; font-size:12px; }
.daily-bar-row > div { height:9px; overflow:hidden; border-radius:999px; background:#eef2f7; }
.daily-bar-row i { display:block; height:100%; border-radius:inherit; }
.daily-bar-row b { text-align:right; color:#334155; }
.daily-stage-grid { display:grid; grid-template-columns:repeat(4,minmax(80px,1fr)); gap:10px; margin-top:17px; }
.daily-stage-grid > div { display:grid; gap:6px; padding:13px; border-radius:12px; background:#f8fafc; text-align:center; }
.daily-stage-grid span { color:#64748b; font-size:11px; }
.daily-stage-grid b { color:#0f172a; font-size:21px; }
.daily-rank-list,.daily-risk-list { display:grid; gap:9px; margin-top:17px; }
.daily-rank-list > div,.daily-risk-list > div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 13px; border-radius:11px; background:#f8fafc; }
.daily-rank-list span { display:flex; align-items:center; gap:10px; }
.daily-rank-list i { width:23px; height:23px; display:grid; place-items:center; border-radius:7px; background:#e2e8f0; color:#475569; font-size:11px; font-style:normal; }
.daily-risk-list > div { border-left:3px solid #94a3b8; }
.daily-risk-list > div.high { border-color:#dc2626; background:#fef2f2; }
.daily-risk-list > div.medium { border-color:#f59e0b; background:#fffbeb; }
.daily-risk-list small { display:block; margin-top:4px; color:#64748b; font-size:11px; }
.daily-risk-list b { font-size:20px; }
.daily-findings { display:grid; gap:11px; margin:16px 0 0; padding-left:22px; }
.daily-findings li { padding-left:7px; color:#334155; line-height:1.7; }
.daily-actions-table { min-width:760px; }
.daily-trend { height:220px; display:flex; align-items:flex-end; gap:14px; margin-top:18px; padding:18px 12px 0; border-bottom:1px solid var(--line); background:linear-gradient(to top,#f8fafc,transparent); }
.daily-trend > div { height:100%; flex:1; display:grid; grid-template-rows:1fr 28px; gap:6px; text-align:center; }
.daily-trend > div > span { position:relative; display:flex; align-items:flex-end; justify-content:center; }
.daily-trend i { width:min(38px,70%); display:block; border-radius:8px 8px 2px 2px; background:linear-gradient(#60a5fa,#2563eb); }
.daily-trend b { position:absolute; bottom:calc(100% + 5px); color:#334155; font-size:11px; }
.daily-trend small { color:#64748b; font-size:10px; }
.daily-quality-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.daily-quality-grid > div { display:grid; gap:5px; padding:12px; border-radius:11px; background:#f8fafc; }
.daily-quality-grid span { color:#64748b; font-size:11px; }
.daily-quality-grid b { word-break:break-word; font-size:13px; }
.daily-note { width:100%; min-height:142px; margin-top:16px; resize:vertical; }
.daily-note-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }
.daily-note-actions span { color:var(--muted); font-size:11px; }
@media (max-width:1200px){.daily-kpi-grid{grid-template-columns:repeat(3,minmax(140px,1fr));}.daily-filter-grid{grid-template-columns:repeat(2,minmax(180px,1fr));}.daily-filter-grid .filter-actions{grid-column:1/-1;}.daily-list-metrics{grid-template-columns:repeat(2,minmax(150px,1fr));}}
@media (max-width:760px){.daily-filter-grid,.daily-list-metrics,.daily-kpi-grid,.daily-two-col,.daily-quality-grid{grid-template-columns:1fr;}.daily-filter-grid .filter-actions{grid-column:auto;}.daily-detail-toolbar,.daily-hero{flex-direction:column;}.daily-detail-toolbar>div{width:100%;flex-wrap:wrap;}.daily-hero-status{justify-items:start;}.daily-hero h2{font-size:20px;}.daily-stage-grid{grid-template-columns:repeat(2,1fr);}.daily-bar-row{grid-template-columns:62px 1fr 70px;}.daily-trend{gap:5px;padding-left:2px;padding-right:2px;}}

/* 2026-09-13: 合作方购买配置与订购/退订静态原型 */
.purchase-config-filter{grid-template-columns:minmax(240px,1fr) minmax(160px,.7fr) minmax(160px,.7fr) auto}.purchase-record-filter{grid-template-columns:minmax(350px,1.35fr) minmax(180px,.8fr) minmax(150px,.65fr) minmax(150px,.65fr) auto}.purchase-config-table{min-width:1100px;table-layout:fixed}.purchase-config-table th,.purchase-config-table td{padding-left:8px;padding-right:8px}.purchase-config-table th:nth-child(1),.purchase-config-table td:nth-child(1){width:120px}.purchase-config-table th:nth-child(2),.purchase-config-table td:nth-child(2){width:140px}.purchase-config-table th:nth-child(3),.purchase-config-table td:nth-child(3){width:125px}.purchase-config-table th:nth-child(4),.purchase-config-table td:nth-child(4){width:75px;white-space:nowrap}.purchase-config-table th:nth-child(5),.purchase-config-table td:nth-child(5){width:220px}.purchase-config-table th:nth-child(6),.purchase-config-table td:nth-child(6),.purchase-config-table th:nth-child(7),.purchase-config-table td:nth-child(7){width:85px}.purchase-config-table th:nth-child(8),.purchase-config-table td:nth-child(8){width:95px}.purchase-config-table th:nth-child(9),.purchase-config-table td:nth-child(9){width:65px}.purchase-config-table th:nth-child(10),.purchase-config-table td:nth-child(10){width:90px}.purchase-config-table td:nth-child(3),.purchase-config-table td:nth-child(6),.purchase-config-table td:nth-child(7),.purchase-config-table td:nth-child(8),.purchase-config-table td:nth-child(9),.purchase-config-table td:nth-child(10){white-space:nowrap}.purchase-config-table .row-actions{flex-wrap:nowrap;white-space:nowrap}.purchase-record-table{min-width:1180px}.purchase-config-table td small,.purchase-record-table td small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.purchase-url-cell{max-width:300px;word-break:break-all;color:#2563eb}.purchase-card-desc{margin:5px 0 0;color:var(--muted);font-size:12px}.purchase-prototype-modal{width:min(900px,96vw)}.purchase-prototype-modal>.modal-actions{justify-content:flex-end;margin-top:18px}.purchase-lead-section .card-title-row{margin-bottom:12px}.purchase-lead-section h4{margin:0 0 5px}.purchase-lead-grid,.purchase-link-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.purchase-lead-grid>div,.purchase-link-summary>div{display:grid;gap:5px;padding:11px 12px;border-radius:10px;background:#f8fafc}.purchase-lead-grid span,.purchase-link-summary span,.purchase-link-box>span{color:var(--muted);font-size:12px}.purchase-link-box{display:grid;gap:7px;margin-top:16px}.purchase-link-box textarea{min-height:92px;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.purchase-metrics{grid-template-columns:repeat(4,minmax(150px,1fr))}@media(max-width:1100px){.purchase-config-filter,.purchase-record-filter{grid-template-columns:repeat(2,minmax(170px,1fr))}.purchase-config-filter .filter-actions,.purchase-record-filter .filter-actions{grid-column:1/-1}}@media(max-width:760px){.purchase-config-filter,.purchase-record-filter,.purchase-lead-grid,.purchase-link-summary,.purchase-metrics{grid-template-columns:1fr}.purchase-config-filter .filter-actions,.purchase-record-filter .filter-actions{grid-column:auto}.purchase-lead-section .card-title-row{align-items:flex-start;flex-direction:column}}
.purchase-link-controls{display:grid;grid-template-columns:minmax(260px,1fr) minmax(150px,.45fr) auto;gap:10px;margin-bottom:12px}.purchase-link-controls select,.purchase-link-controls input{height:38px}@media(max-width:760px){.purchase-link-controls{grid-template-columns:1fr}}

.purchase-form-actions{justify-content:flex-end;margin-top:18px}

.partner-code-hint{display:block;color:#dc2626;font-size:12px;font-weight:600;line-height:1.5}

/* 2026-09-17: live WeCom integration and sync pages */
.integration-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.integration-status-card .detail-row strong{max-width:62%;word-break:break-word}.integration-filter{margin:14px 0}.integration-error{max-width:320px;white-space:normal;word-break:break-word}.integration-chat-modal-open #integrationChatModal{display:flex}@media(max-width:760px){.integration-status-grid{grid-template-columns:1fr}}


/* AI标签与画像管理 */
.taxonomy-tabs{margin:16px 0 12px}.taxonomy-filter{grid-template-columns:minmax(170px,.7fr) minmax(140px,.6fr) minmax(240px,1fr) auto}.taxonomy-table{min-width:1680px}.taxonomy-table td small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.taxonomy-rule-cell{min-width:230px;max-width:320px;white-space:normal;line-height:1.55}.taxonomy-form textarea{min-height:82px}@media(max-width:900px){.taxonomy-filter{grid-template-columns:1fr 1fr}.taxonomy-filter .filter-actions{grid-column:1/-1}}@media(max-width:620px){.taxonomy-filter{grid-template-columns:1fr}.taxonomy-filter .filter-actions{grid-column:auto}}

/* 真实会话 → 手工AI分析入口 */
.conversation-analysis-entry{margin:14px 0;padding:14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.conversation-analysis-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.conversation-analysis-head p{margin:5px 0 0;color:var(--muted);line-height:1.6}.conversation-analysis-actions{display:flex;gap:8px;white-space:nowrap}.conversation-analysis-entry>label{display:grid;gap:6px;max-width:520px}.conversation-analysis-entry select{width:100%}.selectable-chat-list{display:grid;gap:8px}.chat-select-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:flex-start;cursor:pointer}.chat-select-row>input{margin-top:18px}.chat-select-row .chat-message{margin:0}.conversation-analysis-submit{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.conversation-analysis-status{margin-top:10px}.analysis-created{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:10px 12px;border:1px solid #86efac;border-radius:8px;background:#f0fdf4;color:#166534}.form-error{display:block;padding:8px 10px;border-radius:6px;background:#fef2f2;color:#b91c1c}@media(max-width:720px){.conversation-analysis-head,.conversation-analysis-submit{align-items:stretch;flex-direction:column}.conversation-analysis-actions{white-space:normal}}

/* 2026-09-18: tenant Step-2A management */
.tenant-modal-open #tenantModal{display:flex}.tenant-modal-panel{width:min(720px,96vw)}.tenant-modal-panel .modal-actions{justify-content:flex-end;margin-top:18px}.tenant-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.tenant-table{min-width:1120px}.tenant-code-note{display:block;margin-top:5px;color:var(--muted);font-size:11px}.tenant-protected{color:#92400e;font-size:11px}.tenant-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tenant-detail-grid>div{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.tenant-detail-grid span{color:var(--muted);font-size:12px}.tenant-detail-grid .wide{grid-column:1/-1}@media(max-width:760px){.tenant-toolbar{align-items:flex-start;flex-direction:column}.tenant-detail-grid{grid-template-columns:1fr}.tenant-detail-grid .wide{grid-column:auto}}

/* 2026-09-22: tenant Step-2A 企业微信配置详情/编辑 */
.tenant-wecom-modal-open #tenantWecomModal{display:flex}
.tenant-wecom-panel{width:min(960px,96vw);max-height:92vh;overflow:auto}
.tenant-wecom-panel .modal-actions{justify-content:flex-end;margin-top:18px}
.wecom-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:8px}
.wecom-config-card{background:#fbfdff}
.wecom-config-card-wide{grid-column:1/-1}
.wecom-config-card .detail-row strong{max-width:65%;word-break:break-word;text-align:right}
.wecom-secret-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.wecom-secret-grid .detail-row{padding:8px 0;border-bottom:none}
.wecom-error-cell{color:#b91c1c;font-size:12px;line-height:1.4;max-width:65%;word-break:break-word}
.wecom-banner{margin:0 0 14px;padding:10px 12px;border:1px solid #fde68a;background:#fffbeb;border-radius:10px;color:#92400e;font-size:12px}
.wecom-form-hint{grid-column:1/-1;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.4}
.tenant-table .row-actions .link-btn[data-tenant-wecom-config]{color:#2563eb}
@media(max-width:900px){.wecom-config-grid{grid-template-columns:1fr}.wecom-secret-grid{grid-template-columns:1fr}}

/* CRM administrator authentication */
.auth-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:rgba(10,20,35,.72);backdrop-filter:blur(5px);padding:20px}.auth-overlay[hidden]{display:none}.auth-card{width:min(420px,100%);background:#fff;border-radius:16px;box-shadow:0 22px 60px rgba(0,0,0,.28);padding:28px;display:grid;gap:16px}.auth-card h1{margin:0;font-size:24px}.auth-card p{margin:0;color:#64748b}.auth-card label{display:grid;gap:7px;font-weight:600}.auth-card input{height:44px;border:1px solid #cbd5e1;border-radius:8px;padding:0 12px;font:inherit}.auth-card input:focus{outline:2px solid #2563eb;border-color:transparent}.auth-error{min-height:20px;color:#b91c1c;font-size:14px}

.wecom-secret-label{color:#111827;font-weight:600}.wecom-secret-label.is-primary{color:#dc2626;font-weight:700}

.wecom-secret-location{display:block;color:#4b5563;font-size:11px;font-weight:400;line-height:1.5}


/* 2026-09-23: customer contact credential source card */
.wecom-customer-secret-card{display:grid;gap:16px;padding:18px;border:1px solid #dbe4f0;border-radius:14px;background:#fff}
.wecom-customer-secret-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:13px;border-bottom:1px solid #e5e7eb}
.wecom-customer-secret-head>div{display:grid;gap:5px}.wecom-customer-secret-head small{color:#64748b;font-size:12px;line-height:1.5}
.wecom-customer-prerequisite{display:grid;gap:6px;padding:12px 14px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;color:#991b1b}
.wecom-customer-prerequisite b{font-size:13px}.wecom-customer-prerequisite span{font-size:12px;line-height:1.7;word-break:break-word}
.wecom-customer-step-title{color:#334155;font-size:13px;font-weight:700}
.wecom-secret-choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.support-form-grid .wecom-secret-choice-card{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:flex-start;gap:10px;padding:14px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.support-form-grid .wecom-secret-choice-card:hover{border-color:#93c5fd;background:#f8fbff}
.support-form-grid .wecom-secret-choice-card.is-selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb}
.support-form-grid .wecom-secret-choice-card>input{width:16px;height:16px;margin:2px 0 0;accent-color:#2563eb}
.wecom-secret-choice-card>span{display:grid;gap:6px}.wecom-secret-choice-card b{color:#0f172a;font-size:13px}.wecom-secret-choice-card em{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-style:normal;font-weight:700}.wecom-secret-choice-card small{color:#64748b;font-size:11px;line-height:1.5}
.wecom-customer-other{padding:14px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.wecom-customer-other[hidden]{display:none}.wecom-customer-other label{display:grid;gap:7px}.wecom-customer-other label>span{color:#334155;font-size:12px;font-weight:700}
.wecom-secret-clear-link{justify-self:start;border:0;background:transparent;color:#b91c1c;padding:0;font-size:12px;cursor:pointer}.wecom-secret-clear-link:hover{text-decoration:underline}.wecom-secret-clear-link.is-armed{font-weight:700}
@media(max-width:760px){.wecom-secret-choice-cards{grid-template-columns:1fr}.wecom-customer-secret-head{align-items:flex-start}.wecom-customer-prerequisite span{line-height:1.8}}

.wecom-callback-guide{display:grid;gap:5px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.wecom-callback-guide b{color:#1e3a8a;font-size:12px}.wecom-callback-guide span{color:#1e40af;font-size:12px}.wecom-callback-guide small{color:#475569;font-size:11px;line-height:1.6}
.wecom-callback-url-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.wecom-callback-url-row>div{display:grid;gap:4px}.wecom-callback-url-row span{color:#334155;font-size:12px;font-weight:700}.wecom-callback-url-row small{color:#64748b;font-size:11px}.wecom-callback-url-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.wecom-callback-url-result[hidden]{display:none}.wecom-callback-url-result input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.wecom-callback-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wecom-callback-fields>label{display:grid;gap:7px;padding:14px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.wecom-callback-fields>label>span{color:#334155;font-size:12px;font-weight:700}.wecom-callback-fields label small label{display:flex;align-items:center;gap:6px}.wecom-callback-fields label small input[type=checkbox]{width:14px;height:14px}
@media(max-width:760px){.wecom-callback-fields{grid-template-columns:1fr}.wecom-callback-url-row{align-items:stretch;flex-direction:column}.wecom-callback-url-result{grid-template-columns:1fr}.wecom-callback-url-result button{width:100%}}


/* 2026-09-23: tenant archive environment auto allocation */
.wecom-archive-environment{display:grid;gap:15px}.wecom-archive-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.wecom-archive-head>div{display:grid;gap:5px}.wecom-archive-head small{color:#64748b;font-size:12px;line-height:1.5}.wecom-archive-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.wecom-archive-status-grid>div{display:grid;gap:7px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.wecom-archive-status-grid span{color:#64748b;font-size:11px}.wecom-archive-status-grid strong{color:#0f172a;font-size:13px}.wecom-archive-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wecom-archive-actions small{color:#64748b;font-size:11px;line-height:1.5}.wecom-archive-public{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.wecom-archive-public[hidden]{display:none}.wecom-archive-public textarea{min-height:130px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.5}.wecom-archive-edit-note{display:grid;gap:5px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.wecom-archive-edit-note b{color:#1e3a8a;font-size:12px}.wecom-archive-edit-note span{color:#475569;font-size:11px;line-height:1.6}@media(max-width:760px){.wecom-archive-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wecom-archive-public{grid-template-columns:1fr}.wecom-archive-public button{width:100%}}@media(max-width:480px){.wecom-archive-status-grid{grid-template-columns:1fr}}


/* 2026-09-23: system-managed default toolbar card cover */
.wecom-card-cover-preview{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;margin-top:10px;padding:10px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.wecom-card-cover-preview img{width:72px;height:54px;object-fit:cover;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.wecom-card-cover-preview div{display:grid;gap:5px;min-width:0}.wecom-card-cover-preview small{color:#64748b;font-size:11px}.wecom-card-cover-preview code{overflow-wrap:anywhere;color:#334155;font-size:11px}.wecom-system-managed-note{display:grid;gap:5px;padding:12px 14px;border:1px solid #bbf7d0;border-radius:10px;background:#f0fdf4}.wecom-system-managed-note b{color:#166534;font-size:12px}.wecom-system-managed-note span{overflow-wrap:anywhere;color:#475569;font-size:11px;line-height:1.6}@media(max-width:520px){.wecom-card-cover-preview{grid-template-columns:1fr}.wecom-card-cover-preview img{width:100%;height:100px}}

/* WeCom link type and staff sync emphasis */
.wecom-modal-panel .wecom-secret-choice-cards{gap:16px}
.wecom-modal-panel .wecom-secret-choice-card{border:2px solid #bfdbfe!important;background:#f0f7ff!important;min-height:92px;padding:18px!important}
.wecom-modal-panel .wecom-secret-choice-card.is-selected{border-color:#2563eb!important;background:#dbeafe!important;box-shadow:0 0 0 2px rgba(37,99,235,.12)!important}
.wecom-inline-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.wecom-sync-staff-btn{white-space:nowrap;font-weight:700;box-shadow:0 4px 10px rgba(37,99,235,.2)}
@media(max-width:760px){.wecom-inline-control{grid-template-columns:1fr}.wecom-sync-staff-btn{width:100%}}

.wecom-kf-bundle-note{display:grid;gap:4px;margin:8px 0 12px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.wecom-kf-bundle-note b{color:#1e3a8a;font-size:13px}.wecom-kf-bundle-note span{color:#475569;font-size:12px;line-height:1.6}.wecom-kf-bundle{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px;padding:16px;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff}.wecom-kf-bundle-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:12px;border-bottom:1px solid #dbeafe}.wecom-kf-bundle-head>div{display:grid;gap:5px}.wecom-kf-bundle-head b{color:#1e3a8a;font-size:14px}.wecom-kf-bundle-head small,.wecom-kf-bundle>label>small{color:#64748b;font-size:11px;line-height:1.5}.wecom-kf-bundle>label{display:grid;gap:7px}.wecom-kf-bundle>label:first-of-type{grid-column:1/-1}.wecom-kf-bundle>label>span{color:#334155;font-size:12px;font-weight:700}@media(max-width:760px){.wecom-kf-bundle{grid-template-columns:1fr}.wecom-kf-bundle>label:first-of-type{grid-column:auto}.wecom-kf-bundle-head{align-items:flex-start}}

/* 2026-09-26: light human duty schedule */
.wecom-duty-card{margin-top:16px}.wecom-duty-current{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.wecom-duty-metric{padding:15px;border:1px solid #e7eefb;border-radius:14px;background:#f7faff}.wecom-duty-metric span{display:block;color:var(--muted);font-size:12px}.wecom-duty-metric b{display:block;margin-top:7px;font-size:18px}.wecom-duty-metric b.small{font-size:14px}.wecom-duty-table{min-width:900px}.wecom-duty-modal-open #wecomDutyModal{display:flex}.wecom-duty-modal-panel{width:min(720px,96vw)}.wecom-duty-modal-panel .modal-actions{justify-content:flex-end;margin-top:18px}.wecom-duty-week{display:flex;gap:7px;flex-wrap:wrap}.wecom-duty-week label{display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #dce3ee;border-radius:9px;color:#46566f}.wecom-duty-week input{width:15px;height:15px;margin:0}.wecom-duty-time{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;gap:8px}.wecom-duty-link-preview{padding:10px 12px;border:1px solid #e7eefb;border-radius:10px;background:#f8fafc;color:#475569}.danger-link{color:var(--red)}@media(max-width:760px){.wecom-duty-current{grid-template-columns:1fr}.wecom-duty-time{grid-template-columns:1fr}.wecom-duty-time span{display:none}}

/* 微信客服会话质检 V1 */
.kf-quality-question{min-width:260px;max-width:420px;white-space:normal;line-height:1.55}.kf-quality-modal{max-width:860px}.kf-quality-timeline{display:grid;gap:12px;max-height:62vh;overflow:auto;padding:4px}.kf-quality-message{border:1px solid #e5e9f2;border-radius:12px;padding:12px;background:#f8fafc}.kf-quality-message.customer{background:#eef6ff;border-color:#cfe3ff}.kf-quality-message.ai{background:#eefaf2;border-color:#cdebd7}.kf-quality-message.system{background:#fff8e8;border-color:#f5deb0}.kf-quality-meta{display:flex;align-items:center;gap:10px;color:#667085;font-size:12px;margin-bottom:8px}.kf-quality-meta b{color:#172033;font-size:14px}.kf-quality-meta span{margin-left:auto}.kf-quality-content{line-height:1.75;word-break:break-word}.modal-open{overflow:hidden}

.kf-customer-cell{display:flex;align-items:center;gap:9px;min-width:150px}.kf-customer-cell img,.kf-avatar-fallback{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#e8f1ff;display:grid;place-items:center;color:#2f6fed}.kf-customer-cell div{display:grid;gap:2px}.kf-customer-cell small{color:#98a2b3;font-size:11px}.kf-quality-modal{width:min(960px,94vw);max-width:960px;max-height:90vh}.kf-quality-modal #kfQualityDetail{min-height:260px}.kf-quality-modal .kf-quality-timeline{max-height:65vh}

/* 员工企微私聊质检 V1 */
.staff-quality-products{display:flex;flex-wrap:wrap;gap:5px;min-width:150px}.staff-quality-modal{width:min(960px,94vw);max-width:960px;max-height:90vh}.staff-quality-chat{display:grid;gap:12px;max-height:65vh;overflow:auto;padding:5px}.staff-chat-message{width:min(78%,680px);border:1px solid #e5e9f2;border-radius:13px;padding:12px;background:#fff}.staff-chat-message.customer{justify-self:start;background:#eef6ff;border-color:#cfe3ff}.staff-chat-message.staff{justify-self:end;background:#eaf8ee;border-color:#c6e7d0}.staff-chat-message .kf-quality-meta span{margin-left:auto}

/* 修复 微信客服会话质检 / 员工企微私聊质检 "查看对话" 按钮无反应 (2026-09-30) */
body.modal-open #kfQualityModal,
body.modal-open #staffQualityModal { display: flex; }

/* 2026-09-30: compact columns for WeCom quality list */
#kfQualityBody .kf-quality-customer, .support-table th.kf-quality-customer{width:128px;min-width:128px;max-width:128px}
#kfQualityBody .kf-customer-cell{min-width:0}
#kfQualityBody .kf-customer-cell>div{min-width:0}
#kfQualityBody .kf-customer-cell strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kfQualityBody .kf-quality-question, .support-table th.kf-quality-question{width:230px;min-width:230px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 2026-09-30: keep WeCom quality actions visible without horizontal scrolling */
.kf-quality-table{width:100%;min-width:1040px;table-layout:fixed}
.kf-quality-table th,.kf-quality-table td{padding-left:8px;padding-right:8px}
.kf-quality-table .kf-quality-customer{width:120px;min-width:120px;max-width:120px}
.kf-quality-table .kf-quality-time{width:124px}
.kf-quality-table .kf-quality-count{width:58px;text-align:center}
.kf-quality-table .kf-quality-flag{width:58px;text-align:center}
.kf-quality-table .kf-quality-state{width:70px}
.kf-quality-table .kf-quality-question{width:180px;min-width:180px;max-width:180px}
.kf-quality-table .kf-quality-review{width:74px;white-space:nowrap}
.kf-quality-table .kf-quality-actions{position:sticky;right:0;z-index:2;width:136px;min-width:136px;max-width:136px;background:#fff;white-space:nowrap;box-shadow:-8px 0 12px -12px rgba(15,23,42,.5)}
.kf-quality-table thead .kf-quality-actions{z-index:3;background:#f8fafc}
.kf-quality-table .kf-quality-actions .link-btn{margin-right:8px}
.kf-quality-table .kf-quality-actions .link-btn:last-child{margin-right:0}

/* 2026-09-30: readable grouped AI quality result */
.quality-score-card{display:grid;gap:10px;padding:14px 16px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc}
.quality-score-card>div{display:flex;align-items:center;gap:10px}.quality-score-card>div>b{font-size:20px}.quality-score-card p{margin:0;line-height:1.7}
.quality-result-section{display:grid;gap:10px;margin-top:18px}.quality-result-section>h3{margin:0;padding-bottom:8px;border-bottom:1px solid #e5e7eb;font-size:16px;color:#172033}
.quality-result-item{display:grid;gap:8px;padding:14px;border:1px solid #e5e9f2;border-radius:10px;background:#fff}.quality-result-item h4,.quality-result-item p{margin:0;line-height:1.65}
.quality-result-item.danger{border-color:#fecaca;background:#fff7f7}.quality-result-item.knowledge-gap{border-color:#fde3a7;background:#fffcf3}
.quality-evidence{padding:9px 11px;border-left:3px solid #8fb5ef;background:#f5f8fd;line-height:1.6}.quality-suggestion{color:#344054}
#kfQualityAnalyzeButton[hidden]{display:none}

/* 2026-10-01: incremental and batch quality review */
.quality-bulk{display:flex;align-items:center;gap:14px;margin-bottom:12px}.quality-bulk span{color:#667085;font-size:13px}.kf-quality-table .kf-quality-select{width:38px;min-width:38px;max-width:38px;text-align:center}.kf-quality-review small{display:block;margin-top:4px}.quality-new{color:#b54708}.quality-current{color:#667085}

/* 2026-10-01: compact staff quality list and keep actions visible */
.staff-quality-table{width:100%;min-width:1050px;table-layout:fixed}
.staff-quality-table th,.staff-quality-table td{padding-left:8px;padding-right:8px}
.staff-quality-table .staff-quality-customer{width:132px}.staff-quality-table .staff-quality-customer .kf-customer-cell{min-width:0}.staff-quality-table .staff-quality-customer .kf-customer-cell>div{min-width:0}.staff-quality-table .staff-quality-customer strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-quality-table .staff-quality-owner{width:88px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-quality-table .staff-quality-product{width:140px}.staff-quality-table .staff-quality-products{min-width:0;gap:3px}.staff-quality-table .staff-quality-products .status-badge{max-width:126px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-quality-table .staff-quality-time{width:126px}.staff-quality-table .staff-quality-count{width:58px;text-align:center}.staff-quality-table .staff-quality-direction{width:62px;text-align:center}.staff-quality-table .staff-quality-review{width:76px;white-space:nowrap}
.staff-quality-table .staff-quality-actions{position:sticky;right:0;z-index:2;width:136px;min-width:136px;max-width:136px;background:#fff;white-space:nowrap;box-shadow:-8px 0 12px -12px rgba(15,23,42,.5)}
.staff-quality-table thead .staff-quality-actions{z-index:3;background:#f8fafc}.staff-quality-table .staff-quality-actions .link-btn{margin-right:8px}.staff-quality-table .staff-quality-actions .link-btn:last-child{margin-right:0}

/* 2026-10-01: staff multi-product quality */
.staff-product-picker{display:grid;gap:10px;padding:14px}.staff-product-picker label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:9px}.staff-product-review{display:grid;gap:10px;margin-top:16px}.staff-product-review>h3{margin:0;padding-bottom:8px;border-bottom:1px solid #e5e7eb}

/* 2026-10-01: employee AI suggestion feedback modal */
.staff-quality-table .staff-quality-actions{width:220px;min-width:220px;max-width:220px}
.staff-suggestion-list{display:grid;gap:14px;margin-top:14px}.staff-suggestion-item{padding:15px;border:1px solid #dbe4f0;border-radius:12px;background:#fff}.staff-suggestion-head,.staff-suggestion-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.staff-suggestion-head{justify-content:space-between}.staff-suggestion-meta{margin:8px 0 12px;color:#64748b;font-size:12px}.staff-suggestion-item label{display:block;margin-top:10px;font-size:12px;font-weight:700;color:#475569}.staff-suggestion-item p{margin:5px 0 0;padding:10px 12px;border-radius:8px;background:#f8fafc;white-space:pre-wrap;line-height:1.65}

.permission-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.permission-people{display:grid;gap:8px;align-content:start}.permission-person{border:1px solid #dbe4f0;background:#fff;border-radius:10px;padding:12px;text-align:left;display:grid;gap:4px;cursor:pointer}.permission-person.active{border-color:#2563eb;background:#eff6ff}.permission-person span{font-size:12px;color:#64748b}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.permission-card{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:14px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;cursor:pointer}.permission-card input{margin-top:3px;accent-color:#2563eb}.permission-card span{display:grid;gap:5px}.permission-card small{color:#64748b}@media(max-width:760px){.permission-layout,.permission-grid{grid-template-columns:1fr}}

#personModal[aria-hidden="false"]{display:flex!important}

.person-password-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.person-password-field .ghost-btn{white-space:nowrap}.person-form-error{min-height:22px;color:#b91c1c;font-size:14px;font-weight:600}

.page-permission-list{display:grid;gap:12px;margin-top:16px}.page-permission-group{border:1px solid #dbe4f0;border-radius:12px;overflow:hidden;background:#fff}.page-permission-module{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:14px;background:#f4f7fb;cursor:pointer}.page-permission-module input,.page-permission-children input{accent-color:#2563eb}.page-permission-module span{display:flex;justify-content:space-between;gap:10px}.page-permission-module small{color:#64748b}.page-permission-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid #e5eaf1}.page-permission-children label{display:flex;align-items:center;gap:9px;padding:12px 14px;border-right:1px solid #eef2f7;border-bottom:1px solid #eef2f7;cursor:pointer}@media(max-width:760px){.page-permission-children{grid-template-columns:1fr}}

/* 2026-10-09: partner interface key management */
.purchase-config-table{min-width:1260px}.purchase-config-table th:nth-child(10),.purchase-config-table td:nth-child(10){width:118px}.purchase-config-table th:nth-child(11),.purchase-config-table td:nth-child(11){width:170px}.interface-key-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.interface-key-status>div{display:grid;gap:6px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.interface-key-status span,.revealed-key-list span{color:var(--muted);font-size:12px}.interface-key-status .wide{grid-column:1/-1}.interface-key-actions{display:flex;gap:8px;flex-wrap:wrap}.security-warning{margin-bottom:14px;padding:12px 14px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;color:#92400e;line-height:1.65}.security-warning.danger{margin-top:16px;border-color:#fecaca;background:#fef2f2;color:#991b1b}.interface-key-form input,.revealed-key-list input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.revealed-key-list{display:grid;gap:12px;margin-top:12px}.revealed-key-list label{display:grid;gap:6px}.revealed-key-list label>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.revealed-key-list input{min-width:0}.interface-key-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.interface-key-status{grid-template-columns:1fr}.interface-key-status .wide{grid-column:auto}.revealed-key-list label>div{grid-template-columns:1fr}}

/* 2026-10-09: partner business endpoint details */
.interface-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}.interface-info>div{display:grid;gap:6px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.interface-info span{color:var(--muted);font-size:12px}.interface-info .wide{grid-column:1/-1}.interface-url-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.interface-url-copy code{overflow:auto;padding:9px;border-radius:7px;background:#eef2f7;color:#1e40af}.pending-text{color:#b45309}@media(max-width:760px){.interface-info{grid-template-columns:1fr}.interface-info .wide{grid-column:auto}.interface-url-copy{grid-template-columns:1fr}}

/* 2026-10-09: per-product supported event selector */
.supported-events-field{margin:2px 0;padding:14px;border:1px solid var(--line);border-radius:10px}.supported-events-field legend{padding:0 6px;color:#334155;font-weight:700}.supported-events-field p{margin:0 0 10px;color:var(--muted);font-size:12px}.supported-events-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.supported-events-grid label{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;color:#334155}.supported-events-grid input{width:16px;height:16px;margin:0;accent-color:#2563eb}@media(max-width:760px){.supported-events-grid{grid-template-columns:1fr}}
