:root {
  --ink: #17202c;
  --muted: #6f7b8c;
  --line: #e6eaf0;
  --panel: rgba(255, 255, 255, 0.92);
  --bg: #f4f7fb;
  --blue: #2369e8;
  --blue-soft: #eaf1ff;
  --navy: #111b2d;
  --green: #118a67;
  --green-soft: #e7f7f2;
  --orange: #d87823;
  --orange-soft: #fff2e5;
  --red: #cf4949;
  --red-soft: #fff0ef;
  --purple: #7457d9;
  --shadow: 0 12px 36px rgba(36, 50, 75, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 0%, rgba(126, 162, 232, 0.12), transparent 32%),
    linear-gradient(135deg, #f7f9fc, #f1f5fa 68%, #f6f7fb);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.01em;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 246px;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;              /* 窗口矮时导航可滚动:否则下方工具(智播大屏/切片混剪)被裁掉够不着 */
  overscroll-behavior: contain;  /* 滚到头不把滚动传给右侧内容 */
  color: #dbe5f4;
  background:
    radial-gradient(circle at 20% 0%, rgba(69, 118, 220, 0.22), transparent 35%),
    linear-gradient(180deg, #142035, #101a2b 62%, #0d1726);
  box-shadow: 8px 0 32px rgba(18, 30, 49, 0.08);
}
.brand-row { height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand-row strong { display: block; color: #fff; font-size: 19px; letter-spacing: 0.04em; }
.brand-row small { display: block; color: #8798b2; font-size: 10px; margin-top: 3px; letter-spacing: 0.06em; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 8px; border-radius: 10px; background: linear-gradient(145deg, #4c8bff, #235ed5); box-shadow: 0 7px 18px rgba(40, 99, 220, .35); }
.brand-mark span { display: block; border-radius: 3px; background: white; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .72; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .86; }
.profile-row button { border: 0; background: none; color: #75859d; cursor: pointer; }
.nav-label { padding: 0 12px 9px; color: #64758e; font-size: 9px; letter-spacing: .16em; }
.main-nav { display: grid; gap: 5px; }
.main-nav .nav-item { position: relative; width: 100%; height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 11px; color: #9caac0; background: transparent; cursor: pointer; transition: .2s ease; text-align: left; }
.main-nav .nav-item:hover { color: #e7edf6; background: rgba(255,255,255,.045); }
.main-nav .nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(56, 113, 225, .3), rgba(56,113,225,.08)); box-shadow: inset 3px 0 #4e8bff; }
.main-nav .nav-item > span:nth-child(2) { flex: 1; font-size: 13px; font-weight: 550; }
.main-nav .nav-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; }
.main-nav .nav-item.active .nav-icon { color: #bcd3ff; background: rgba(79, 138, 255, .19); }
.main-nav .nav-icon.sparkle { font-size: 14px; }
.main-nav .nav-item em { min-width: 22px; padding: 2px 6px; border-radius: 10px; color: #8f9eb4; background: rgba(255,255,255,.06); font-size: 9px; font-style: normal; text-align: center; }
.main-nav .nav-item b { padding: 2px 6px; border-radius: 5px; color: #b8ccff; background: rgba(77, 120, 230, .18); font-size: 8px; letter-spacing: .08em; }
.alert-dot { width: 5px; height: 5px; border-radius: 50%; background: #f39a56; box-shadow: 0 0 0 4px rgba(243,154,86,.09); }
.sidebar-bottom { margin-top: auto; }
.source-health { padding: 12px; border: 1px solid rgba(192, 209, 235, .08); background: rgba(255,255,255,.028); border-radius: 13px; }
.source-health-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #a8b5c8; }
.source-health-head span { display: flex; align-items: center; gap: 6px; }
.source-health-head i { width: 6px; height: 6px; border-radius: 50%; background: #36c38f; box-shadow: 0 0 0 4px rgba(54,195,143,.1); }
.source-health-head button { padding: 0; border: 0; color: #71829b; background: none; font-size: 9px; cursor: pointer; }
.source-health-grid { margin-top: 10px; display: grid; gap: 7px; }
.source-health-grid span { display: flex; justify-content: space-between; color: #71819a; font-size: 9px; }
.source-health-grid b { color: #63cba5; font-weight: 500; }
.profile-row { margin-top: 14px; padding: 12px 7px 2px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.06); }
.profile-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, #788aa8, #4f627f); font-size: 11px; }
.profile-row > div:nth-child(2) { flex: 1; }
.profile-row strong, .profile-row span { display: block; }
.profile-row strong { color: #e7edf5; font-size: 11px; }
.profile-row span { color: #75869f; font-size: 9px; margin-top: 3px; }

.workspace { width: calc(100% - 246px); min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(215, 222, 232, .78); background: rgba(248, 250, 253, .82); backdrop-filter: blur(18px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.breadcrumb span { color: #9aa4b2; }
.breadcrumb b { color: #c4cad3; font-weight: 400; }
.breadcrumb strong { font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.demo-pill { height: 25px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid #e9bc8d; border-radius: 20px; color: #b96d29; background: #fff8ef; font-size: 9px; font-weight: 600; }
.demo-pill i { width: 5px; height: 5px; border-radius: 50%; background: #e69343; }
.sync-time { color: #8d97a5; font-size: 9px; }
.icon-button { position: relative; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; color: #778496; background: rgba(255,255,255,.7); cursor: pointer; }
.icon-button i { position: absolute; top: 5px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: #ea6f61; }
.mobile-menu { display: none; }
.content-wrap { max-width: 1720px; margin: 0; padding: 26px 26px 56px; }   /* 靠左对齐:原来 margin:0 auto 在宽屏上把内容推离导航栏(1919屏被推开约86px),不是留白设计是居中副作用 */
.view { display: none; animation: fadeUp .28s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { color: #6e85ac; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.page-heading h1 { margin: 6px 0 6px; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.16; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; }
.button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(35,70,125,.08); }
.button.primary { color: white; background: linear-gradient(135deg, #2e76f3, #1d5ed2); box-shadow: 0 8px 18px rgba(31,99,224,.2); }
.button.ghost { border-color: #dfe5ee; background: rgba(255,255,255,.85); }
.button.danger-soft { color: #b94545; background: var(--red-soft); border-color: #f6d5d2; }
.button.full { width: 100%; }
.metrics-grid { margin-bottom: 18px; display: grid; gap: 13px; }
.metrics-grid.four { grid-template-columns: repeat(4, 1fr); }
.metrics-grid.five { grid-template-columns: repeat(5, 1fr); }
.metric-card { position: relative; min-height: 116px; padding: 18px; overflow: hidden; border: 1px solid rgba(223, 228, 236, .9); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 86px; height: 86px; border-radius: 50%; background: var(--metric-glow, rgba(45,113,237,.07)); }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.metric-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--metric-color, var(--blue)); background: var(--metric-bg, var(--blue-soft)); font-size: 10px; font-weight: 700; }
.metric-value { margin-top: 13px; font-size: 25px; font-weight: 710; letter-spacing: -.04em; }
.metric-value small { margin-left: 3px; color: #8b96a5; font-size: 10px; font-weight: 500; }
.metric-foot { margin-top: 7px; color: #8b95a3; font-size: 9px; }
.metric-foot b { color: var(--green); font-weight: 600; }
.metric-foot b.bad { color: var(--red); }
.panel { border: 1px solid rgba(222, 227, 235, .93); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.table-panel { overflow: hidden; }
.panel-toolbar { min-height: 61px; padding: 11px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f4; }
.search-box { width: 245px; height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid #e2e7ee; border-radius: 9px; background: #f9fafc; }
.search-box span { color: #8d99a9; font-size: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.filter-row { padding: 3px; display: flex; gap: 2px; border-radius: 9px; background: #f3f5f8; }
.filter-button { height: 29px; padding: 0 11px; border: 0; border-radius: 7px; color: #7c8795; background: transparent; font-size: 9px; cursor: pointer; }
.filter-button.active { color: #2e65c9; background: white; box-shadow: 0 2px 7px rgba(40,53,75,.08); font-weight: 600; }
.toolbar-spacer { flex: 1; }
.plain-button, .text-link { border: 0; color: #667990; background: none; font-size: 9px; cursor: pointer; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.data-table th { height: 42px; padding: 0 14px; color: #8a94a3; background: #fafbfc; border-bottom: 1px solid #eceff3; font-size: 9px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { height: 68px; padding: 9px 14px; border-bottom: 1px solid #eef1f4; color: #465365; font-size: 10px; vertical-align: middle; }
.data-table tbody tr { transition: .16s ease; }
.data-table tbody tr:hover { background: #f8faff; }
.product-cell { display: flex; align-items: center; gap: 10px; }
.product-thumb { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--thumb-color, #3f74d5); background: var(--thumb-bg, #eaf1ff); font-weight: 700; }
.product-cell strong, .product-cell span { display: block; }
.product-cell strong { color: #243041; font-size: 11px; }
.product-cell span { margin-top: 3px; color: #9aa4b1; font-size: 8px; }
.sub-stack strong, .sub-stack span { display: block; }
.sub-stack strong { color: #465365; font-size: 10px; font-weight: 600; }
.sub-stack span { margin-top: 4px; color: #9aa4b1; font-size: 8px; }
.margin-cell { min-width: 75px; }
.margin-cell span { display: block; margin-bottom: 5px; color: #385d8f; font-weight: 600; }
.mini-track { width: 58px; height: 4px; overflow: hidden; border-radius: 4px; background: #e9edf3; }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5e91ee, #2c69dc); }
.refund.high { color: var(--red); font-weight: 700; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.platform-tag { padding: 3px 6px; border-radius: 5px; color: #69778a; background: #f0f3f7; font-size: 8px; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 12px; font-size: 8px; }
.status-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.status-tag.normal { color: #177a5b; background: #e9f7f1; }
.status-tag.normal::before { background: #24ae82; }
.status-tag.warning { color: #b84c43; background: #fff0ed; }
.status-tag.warning::before { background: #e16157; }
.table-footer { height: 45px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #97a0ad; font-size: 8px; }
.empty-row { height: 160px !important; color: #929dab !important; text-align: center; }

.voc-hero { position: relative; margin-bottom: 16px; padding: 22px 24px; display: flex; align-items: center; gap: 16px; overflow: hidden; color: white; border-color: rgba(61, 99, 163, .2); background: linear-gradient(120deg, #1c3153, #173157 58%, #244c7d); }
.voc-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: 9%; top: -170px; border-radius: 50%; background: rgba(90, 149, 255, .17); filter: blur(3px); }
.ai-orb, .small-orb { display: grid; place-items: center; color: #cce0ff; background: linear-gradient(145deg, rgba(105,160,255,.4), rgba(73,109,212,.16)); border: 1px solid rgba(198,219,255,.26); box-shadow: 0 0 28px rgba(90,147,255,.23); }
.ai-orb { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; font-size: 20px; }
.voc-hero-copy { position: relative; z-index: 1; flex: 1; }
.voc-hero-copy > span { color: #9bb8e3; font-size: 9px; letter-spacing: .1em; }
.voc-hero h2 { margin: 5px 0 8px; max-width: 850px; font-size: 16px; line-height: 1.55; font-weight: 560; }
.evidence-row { display: flex; align-items: center; gap: 7px; color: #94aaca; font-size: 8px; }
.evidence-row b { color: #b9cdf0; font-weight: 500; }
.voc-hero .text-link { position: relative; z-index: 1; color: #aac2e8; white-space: nowrap; }
.voc-layout { margin-bottom: 22px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 15px; }
.cause-panel, .product-risk-panel { min-height: 310px; padding: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; }
.panel-title span, .panel-title small { display: block; }
.panel-title span { font-size: 12px; font-weight: 650; }
.panel-title small { margin-top: 4px; color: #97a0ae; font-size: 8px; font-weight: 400; }
.panel-title button { padding: 0; border: 0; color: #8d98a7; background: none; font-size: 8px; cursor: pointer; }
.cause-list { margin-top: 19px; display: grid; gap: 14px; }
.cause-row { display: grid; grid-template-columns: 76px 1fr 36px; align-items: center; gap: 10px; }
.cause-row > span { color: #475568; font-size: 9px; }
.cause-bar { height: 9px; overflow: hidden; border-radius: 7px; background: #f0f2f5; }
.cause-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bar-start), var(--bar-end)); }
.cause-row b { text-align: right; color: #44546b; font-size: 9px; }
.risk-row { padding: 13px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid #eef1f4; }
.risk-row:last-child { border-bottom: 0; }
.risk-row > div:first-child { display: flex; align-items: center; gap: 9px; }
.rank-badge { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; color: #738198; background: #f0f3f7; font-size: 8px; font-weight: 700; }
.risk-row:first-child .rank-badge { color: #c5574e; background: #fff0ed; }
.risk-copy strong, .risk-copy span { display: block; }
.risk-copy strong { font-size: 9px; }
.risk-copy span { margin-top: 3px; color: #9aa4b1; font-size: 8px; }
.risk-count { text-align: right; }
.risk-count strong, .risk-count span { display: block; }
.risk-count strong { color: #cc554d; font-size: 12px; }
.risk-count span { margin-top: 2px; color: #9ba5b2; font-size: 7px; }
.section-title-row { margin: 4px 0 12px; display: flex; justify-content: space-between; }
.section-title-row h2 { margin: 0; font-size: 15px; }
.section-title-row p { margin: 5px 0 0; color: #8d98a6; font-size: 9px; }
.action-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.action-card { position: relative; min-height: 144px; padding: 17px; overflow: hidden; border: 1px solid #e1e6ed; border-radius: 15px; background: rgba(255,255,255,.86); box-shadow: 0 8px 26px rgba(39,54,82,.05); }
.action-no { position: absolute; right: 12px; top: 7px; color: #edf0f5; font-size: 37px; font-weight: 750; }
.action-card > span { display: inline-flex; padding: 4px 7px; border-radius: 7px; color: #bc6255; background: #fff1ee; font-size: 8px; }
.action-card h3 { position: relative; margin: 12px 0 6px; font-size: 12px; }
.action-card p { position: relative; margin: 0; color: #778394; font-size: 9px; line-height: 1.65; }
.action-card footer { position: relative; margin-top: 12px; display: flex; justify-content: space-between; color: #9aa4b1; font-size: 8px; }
.action-card footer b { color: #5275ae; font-weight: 550; }
.review-panel { padding: 17px; }
.review-list { margin-top: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.review-row { padding: 12px 0; display: grid; grid-template-columns: 30px 1fr; gap: 9px; border-bottom: 1px solid #eef1f4; }
.review-star { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #ce554b; background: #fff0ed; font-size: 9px; font-weight: 700; }
.review-copy p { margin: 0; color: #4d596a; font-size: 9px; line-height: 1.5; }
.review-copy footer { margin-top: 5px; display: flex; gap: 7px; color: #9aa4b1; font-size: 7px; }
.review-copy footer b { color: #ba6259; font-weight: 500; }

.ad-insight { margin-bottom: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 11px; border-color: #f3ddd7; background: linear-gradient(90deg, #fff8f4, #fffdfc); }
.insight-mark { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #d06250; background: #ffebe6; font-size: 13px; font-weight: 700; }
.ad-insight > div:nth-child(2) { flex: 1; }
.ad-insight strong { display: block; color: #763c35; font-size: 10px; }
.ad-insight p { margin: 4px 0 0; color: #a26d66; font-size: 8px; }
.legend { display: flex; align-items: center; gap: 6px; color: #8792a1; font-size: 8px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; }
.legend i.good { background: var(--green); }
.legend i.warn { background: var(--orange); }
.legend i.bad { background: var(--red); }
.ad-table td { height: 72px; }
.roi-value { font-size: 12px; font-weight: 680; }
.roi-value.good { color: var(--green); }
.roi-value.warn { color: var(--orange); }
.roi-value.bad { color: var(--red); }
.profit-value.negative { color: var(--red); }
.judgment { display: inline-flex; padding: 5px 8px; border-radius: 12px; font-size: 8px; }
.judgment.good { color: var(--green); background: var(--green-soft); }
.judgment.warn { color: #b66a20; background: var(--orange-soft); }
.judgment.bad { color: var(--red); background: var(--red-soft); }
.formula-note { padding: 11px 16px; color: #8b96a5; background: #fafbfc; border-top: 1px solid #edf0f4; font-size: 8px; line-height: 1.6; }

.assistant-heading { align-items: center; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
.assistant-main { min-width: 0; display: grid; gap: 16px; }
.brief-card { position: relative; padding: 24px; overflow: hidden; border-radius: 20px; color: white; background: linear-gradient(135deg, #162746, #15345c 58%, #1c4b79); box-shadow: 0 18px 42px rgba(24,56,99,.18); }
.brief-glow { position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(67, 135, 246, .2); filter: blur(5px); }
.brief-head { position: relative; display: flex; justify-content: space-between; align-items: center; }
.brief-head span { color: #c6d8f5; font-size: 10px; font-weight: 600; }
.brief-head i { margin-right: 7px; color: #7db0ff; font-style: normal; }
.brief-head small { color: #7593b8; font-size: 8px; }
.brief-card h2 { position: relative; max-width: 720px; margin: 20px 0 21px; font-size: clamp(21px, 2.2vw, 31px); line-height: 1.45; letter-spacing: -.035em; font-weight: 520; }
.brief-card h2 em { color: #79adff; font-style: normal; }
.priority-list { position: relative; display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(193,215,246,.1); border-radius: 13px; background: rgba(255,255,255,.05); }
.priority-list article { min-height: 68px; padding: 10px 13px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; background: rgba(12,28,52,.42); }
.priority-list article > b { color: #5278aa; font-size: 12px; }
.priority-list article div span { display: block; color: #e8f0fb; font-size: 10px; font-weight: 600; }
.priority-list article div p { margin: 4px 0 0; color: #829dbe; font-size: 8px; }
.priority-list article button { padding: 6px 8px; border: 1px solid rgba(150,184,231,.17); border-radius: 7px; color: #a8bee0; background: rgba(255,255,255,.04); font-size: 8px; cursor: pointer; }
.chat-panel { padding: 18px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; }
.chat-head > div { display: flex; align-items: center; gap: 8px; }
.small-orb { width: 27px; height: 27px; border-radius: 9px; color: #4b78ce; background: #edf3ff; font-size: 11px; }
.chat-head strong { font-size: 12px; }
.chat-head > span { color: #9aa4b2; font-size: 8px; }
.quick-questions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.quick-questions button { padding: 7px 9px; border: 1px solid #e2e7ef; border-radius: 9px; color: #667589; background: #f8fafc; font-size: 8px; cursor: pointer; }
.quick-questions button:hover { color: #2f66c5; border-color: #cddcf6; background: #f3f7ff; }
.chat-answer { margin: 13px 0; min-height: 75px; padding: 13px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; border-radius: 12px; background: #f7f9fc; }
.answer-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #3e70cc; background: #e8f0ff; font-size: 10px; }
.chat-answer p { margin: 0; color: #4f5d70; font-size: 9px; line-height: 1.7; }
.chat-answer small { display: block; margin-top: 7px; color: #9aa4b1; font-size: 7px; }
.chat-input { height: 42px; padding: 0 5px 0 13px; display: flex; align-items: center; border: 1px solid #dde4ed; border-radius: 11px; background: white; }
.chat-input input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 9px; }
.chat-input button { width: 31px; height: 31px; border: 0; border-radius: 9px; color: white; background: #2769dd; cursor: pointer; }
.assistant-side { display: grid; align-content: start; gap: 16px; }
.pulse-card, .report-card { padding: 18px; }
.pulse-ring { width: 130px; height: 130px; margin: 20px auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#4c87ea 0 76%, #e8edf5 76% 100%); }
.pulse-ring::before { content: ""; position: absolute; width: 105px; height: 105px; border-radius: 50%; background: white; }
.pulse-ring > div { position: relative; z-index: 1; text-align: center; }
.pulse-ring strong, .pulse-ring span { display: block; }
.pulse-ring strong { color: #315f9f; font-size: 27px; }
.pulse-ring span { margin-top: 2px; color: #8c98a7; font-size: 8px; }
.pulse-items { display: grid; gap: 11px; }
.pulse-items div { display: flex; justify-content: space-between; color: #788596; font-size: 9px; }
.pulse-items b { font-size: 8px; }
.pulse-items b.green { color: var(--green); }
.pulse-items b.orange { color: var(--orange); }
.report-channel { margin: 18px 0 14px; padding: 11px; display: flex; align-items: center; gap: 9px; border-radius: 12px; background: #f7f9fc; }
.feishu-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #3b78e5; background: #e8f1ff; font-size: 11px; font-weight: 700; }
.report-channel div { flex: 1; }
.report-channel strong, .report-channel small { display: block; }
.report-channel strong { font-size: 9px; }
.report-channel small { margin-top: 4px; color: #9aa4b1; font-size: 7px; }
.report-channel i { width: 7px; height: 7px; border-radius: 50%; background: #d6a352; }

.dlg-backdrop { position: fixed; inset: 0; z-index: 100; padding: 24px; display: none; align-items: center; justify-content: center; background: rgba(14,24,40,.45); backdrop-filter: blur(6px); }
.dlg-backdrop.show { display: flex; }
.modal-card { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(10,25,50,.25); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.98) translateY(7px); } }
.modal-head { padding: 20px 22px 16px; display: flex; justify-content: space-between; border-bottom: 1px solid #edf0f4; }
.modal-head span { color: #7790b8; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.modal-head h2 { margin: 4px 0 0; font-size: 18px; }
.modal-head button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #778496; background: #f2f4f7; font-size: 18px; cursor: pointer; }
.modal-card form { padding: 19px 22px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid > label { display: grid; gap: 6px; }
.form-grid > label.wide { grid-column: 1 / -1; }
.form-grid > label > span { color: #536174; font-size: 9px; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #dde4ed; border-radius: 9px; outline: 0; background: #fbfcfd; font-size: 10px; }
.form-grid input, .form-grid select { height: 38px; padding: 0 11px; }
.form-grid textarea { padding: 10px 11px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #86aef2; box-shadow: 0 0 0 3px rgba(51,112,223,.08); }
.form-grid small { color: #9aa4b1; font-size: 8px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-row label { padding: 7px 9px; display: flex; align-items: center; gap: 5px; border: 1px solid #e3e7ed; border-radius: 8px; color: #617084; background: #fafbfc; font-size: 9px; }
.checkbox-row input { width: auto; height: auto; }
.form-error { min-height: 18px; padding-top: 8px; color: var(--red); font-size: 9px; }
.modal-actions { padding-top: 15px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid #edf0f4; }
.modal-actions > span { margin-right: auto; color: var(--green); font-size: 9px; }
.report-modal-card { width: min(690px, 100%); }
.report-modal-card pre { margin: 0; padding: 22px; min-height: 330px; white-space: pre-wrap; color: #39485b; background: #fafbfc; font: 11px/1.9 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.report-modal-card .modal-actions { padding: 14px 22px 20px; }
.app-toast { position: fixed; z-index: 2000; left: 50%; bottom: 26px; padding: 10px 14px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; border-radius: 10px; color: white; background: rgba(23,33,48,.94); box-shadow: 0 12px 35px rgba(10,20,35,.2); font-size: 10px; transition: .22s ease; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .metrics-grid.five { grid-template-columns: repeat(3, 1fr); }
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-side { grid-template-columns: repeat(2, 1fr); }
  .pulse-card, .report-card { min-height: 265px; }
}

@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .workspace { width: 100%; margin-left: 0; }
  .mobile-menu { display: inline-grid; width: 30px; height: 30px; place-items: center; margin-right: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .breadcrumb { margin-right: auto; }
  .content-wrap { padding: 28px 22px 50px; }
  .metrics-grid.four, .metrics-grid.five { grid-template-columns: repeat(2, 1fr); }
  .voc-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 15px; }
  .topbar-actions .sync-time, .topbar-actions .icon-button { display: none; }
  .content-wrap { padding: 22px 14px 44px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metrics-grid.four, .metrics-grid.five { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 104px; padding: 14px; }
  .metric-value { font-size: 21px; }
  .panel-toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .action-grid, .review-list, .assistant-side { grid-template-columns: 1fr; }
  .voc-hero { align-items: flex-start; }
  .voc-hero .text-link { display: none; }
  .priority-list article { grid-template-columns: 25px 1fr; }
  .priority-list article button { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > label.wide { grid-column: auto; }
}


/* ── 补充板块（数据驱动通用渲染）── */
.board-mount { display: block; }
.board-panel { margin-top: 16px; }
.board-insight { position: relative; margin: 4px 0 18px; padding: 18px 22px; display: flex; align-items: center; gap: 15px; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, #1c3153, #173157 58%, #244c7d); box-shadow: var(--shadow); }
.board-insight::after { content: ""; position: absolute; width: 260px; height: 260px; right: 8%; top: -160px; border-radius: 50%; background: rgba(90, 149, 255, .17); filter: blur(3px); }
.board-insight > div:last-child { position: relative; z-index: 1; }
.board-insight span { display: block; color: #9fc0ff; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 5px; }
.board-insight p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #eaf1ff; }
.board-list { padding: 8px 6px; }
.board-list-row { padding: 13px 14px; border-bottom: 1px solid #eef1f5; }
.board-list-row:last-child { border-bottom: 0; }
.board-list-row strong { display: block; font-size: 12px; color: var(--ink); margin-bottom: 4px; }
.board-list-row p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.teaching-note { margin-top: 18px; padding: 15px 18px; display: flex; gap: 12px; align-items: flex-start; border: 1px dashed #c7d3e6; border-radius: 14px; background: rgba(238, 243, 250, .6); }
.teaching-note b { flex: 0 0 auto; height: 20px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 20px; background: #eaf1ff; color: #2e70df; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.teaching-note p { margin: 0; font-size: 11.5px; line-height: 1.75; color: #45566b; }

/* ── 驾驶舱图表(自建SVG) ── */
.dash-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.dash-row-2.wide-left { grid-template-columns: 1.9fr 1fr; }
.chart-card { padding: 16px 18px 14px; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.chart-head span { font-size: 13px; font-weight: 600; color: var(--ink); }
.chart-head small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.chart-legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.chart-legend em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.chart-legend em::before { content: ""; width: 9px; height: 3px; border-radius: 2px; }
.chart-legend .lg-gmv::before { background: #2e70df; }
.chart-legend .lg-net::before { background: #168966; }
.trend-box { width: 100%; }
.trend-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tc-hit { cursor: crosshair; }
.chart-tip { position: fixed; z-index: 60; transform: translate(-50%, -100%); pointer-events: none; padding: 8px 11px; border-radius: 10px; background: rgba(23, 32, 44, .94); color: #fff; font-size: 11px; line-height: 1.7; box-shadow: 0 8px 24px rgba(0,0,0,.22); opacity: 0; transition: opacity .12s; white-space: nowrap; }
.chart-tip b { display: block; font-size: 11px; margin-bottom: 3px; color: #cfe0ff; }
.chart-tip span { display: flex; align-items: center; gap: 6px; }
.chart-tip i { width: 8px; height: 8px; border-radius: 50%; }
.donut-wrap { display: flex; align-items: center; gap: 16px; padding: 6px 2px; flex: 1; }
.donut-svg { flex: 0 0 auto; }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.donut-leg-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.donut-leg-row i { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.donut-leg-row span { color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-leg-row b { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-chart { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 84px; align-items: center; gap: 10px; }
.bar-label { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 16px; background: rgba(148,163,184,.12); border-radius: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 3px; border-radius: 8px; }
.bar-val { font-size: 12px; font-weight: 600; text-align: right; color: #168966; font-variant-numeric: tabular-nums; }
.bar-val.neg { color: #cf5550; }
@media (max-width: 900px) { .dash-row-2, .dash-row-2.wide-left { grid-template-columns: 1fr; } }

/* ── AI 场控 工具 ── */
.demo-pill.live-dep { border-color: #cbb6e6; color: #6b46b8; background: #f5efff; }
.demo-pill.live-dep i { background: #8a5fd0; }
.lc-unsupported { margin: 10px 0 16px; padding: 14px 18px; border: 1px solid #f0c9c4; border-radius: 14px; background: #fff3f1; color: #b5443c; font-size: 12.5px; }
.lc-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.lc-main { display: flex; flex-direction: column; gap: 16px; }
.lc-console { padding: 20px 22px; }
.lc-status-row { display: flex; align-items: center; gap: 14px; }
.lc-dot { width: 12px; height: 12px; border-radius: 50%; background: #b9c3d1; flex: 0 0 auto; }
.lc-dot.lc-listen { background: #2fae7d; box-shadow: 0 0 0 0 rgba(47,174,125,.5); animation: lcPulse 1.5s infinite; }
.lc-dot.lc-speak { background: #d77925; box-shadow: 0 0 0 0 rgba(215,121,37,.5); animation: lcPulse .8s infinite; }
@keyframes lcPulse { 0% { box-shadow: 0 0 0 0 rgba(47,174,125,.45); } 70% { box-shadow: 0 0 0 10px rgba(47,174,125,0); } 100% { box-shadow: 0 0 0 0 rgba(47,174,125,0); } }
.lc-status-row > div { flex: 1; min-width: 0; }
.lc-status-row strong { display: block; font-size: 15px; color: var(--ink); }
.lc-status-row small { font-size: 11px; color: var(--muted); }
.lc-power { flex: 0 0 auto; height: 40px; padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #2e70df, #4c8dff); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(46,112,223,.28); }
.lc-power.on { background: linear-gradient(135deg, #cf5550, #e0736c); box-shadow: 0 6px 16px rgba(207,85,80,.28); }
.lc-power:disabled { background: #c3cbd6; box-shadow: none; cursor: not-allowed; }
.lc-heard { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(238,243,250,.7); display: flex; align-items: baseline; gap: 10px; }
.lc-heard span { font-size: 10px; color: var(--muted); flex: 0 0 auto; }
.lc-heard b { font-size: 13px; color: var(--ink); font-weight: 500; }
.lc-log-panel { display: flex; flex-direction: column; min-height: 210px; flex: 1; padding: 18px 20px; }
.lc-log { flex: 1; padding: 6px 8px; overflow-y: auto; }
.lc-log-empty { padding: 40px 20px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.8; }
.lc-log-row { display: flex; align-items: baseline; gap: 9px; padding: 8px 10px; border-bottom: 1px solid #f1f4f8; font-size: 12px; }
.lc-log-t { flex: 0 0 auto; font-size: 10px; color: #9aa7b8; font-variant-numeric: tabular-nums; }
.lc-log-tag { flex: 0 0 auto; height: 18px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 10px; font-weight: 600; }
.lc-heard-row { }
.lc-log-row.lc-heard .lc-log-tag { background: #eef2f7; color: #6f7b8c; }
.lc-log-row.lc-fire .lc-log-tag { background: #fff2e5; color: #d77925; }
.lc-log-row.lc-speak .lc-log-tag { background: #eaf1ff; color: #2e70df; }
.lc-log-row.lc-speak .lc-log-x { color: var(--ink); font-weight: 500; }
.lc-log-x { flex: 1; color: #45566b; line-height: 1.6; }
.lc-lib { padding: 14px 16px; }
.lc-scripts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; max-height: 420px; overflow-y: auto; }
.lc-script { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #eef1f5; border-radius: 12px; background: #fcfdff; }
.lc-script.off { opacity: .5; }
.lc-toggle { flex: 0 0 auto; position: relative; cursor: pointer; }
.lc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.lc-toggle i { display: block; width: 32px; height: 18px; border-radius: 20px; background: #cfd6df; transition: .2s; position: relative; }
.lc-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.lc-toggle input:checked + i { background: #2fae7d; }
.lc-toggle input:checked + i::after { transform: translateX(14px); }
.lc-script-body { flex: 1; min-width: 0; }
.lc-kw { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.lc-kw span { font-size: 10px; padding: 1px 7px; border-radius: 6px; background: #eef2f7; color: #556274; }
.lc-script-body p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink); }
.lc-del { flex: 0 0 auto; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #b9c3d1; font-size: 17px; cursor: pointer; }
.lc-del:hover { background: #fff0ef; color: #cf5550; }
.lc-add { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid #edf0f4; }
.lc-add input, .lc-add textarea { border: 1px solid #dfe4ec; border-radius: 10px; padding: 8px 11px; font-size: 12px; color: var(--ink); font-family: inherit; resize: vertical; }
.lc-add button { height: 34px; border: 0; border-radius: 10px; background: #eaf1ff; color: #2e70df; font-size: 12px; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) { .lc-layout { grid-template-columns: 1fr; } }

/* ── AI 场控 设置栏 + 编辑 + 快回复 ── */
.lc-settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f4; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.lc-set { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.lc-set select { border: 1px solid #dfe4ec; border-radius: 8px; padding: 5px 8px; font-size: 11.5px; color: var(--ink); background: #fff; max-width: 180px; }
.lc-set input[type=range] { width: 78px; accent-color: #2e70df; }
.lc-safe { padding: 5px 9px; border: 1px solid #ccebdc; border-radius: 9px; background: #f2fbf7; color: #168966; }
.lc-safe input { accent-color: #168966; }
.lc-set b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 34px; }
.lc-test { height: 34px; padding: 0 16px; border: 1px solid #cbb6e6; border-radius: 10px; background: #f5efff; color: #6b46b8; font-size: 12.5px; font-weight: 600; cursor: pointer; margin-left: auto; }
.lc-quick-badge { background: #eafaf3 !important; color: #168966 !important; font-weight: 700 !important; }
.lc-script-ops { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.lc-edit { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #b9c3d1; font-size: 12px; cursor: pointer; }
.lc-edit:hover { background: #eaf1ff; color: #2e70df; }
.lc-script.editing { flex-direction: column; align-items: stretch; gap: 8px; border-color: #cbb6e6; background: #faf7ff; }
.lc-edit-kw, .lc-edit-resp { border: 1px solid #dfe4ec; border-radius: 8px; padding: 7px 10px; font-size: 12px; font-family: inherit; color: var(--ink); resize: vertical; }
.lc-edit-mode { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.lc-edit-btns { display: flex; gap: 8px; }
.lc-edit-btns button { flex: 1; height: 30px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.lc-save { background: #2e70df; color: #fff; }
.lc-cancel { background: #eef2f7; color: #556274; }

/* ── 智播大屏 ── */
.lb-demo-toggle { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.lb-topbar { padding: 16px 20px; margin-bottom: 16px; }
.lb-action { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 1px solid #cfdcff; border-radius: 11px; background: #f2f6ff; color: #2e70df; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lb-action.lb-finish { border-color: #d9d2ef; background: #f7f3ff; color: #6847ae; }
.lb-action:disabled { opacity: .42; cursor: not-allowed; }
.lb-boundset { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto auto; gap: 10px; align-items: end; margin-top: 14px; }
.lb-bfield { display: flex; flex-direction: column; gap: 5px; }
.lb-bfield span { font-size: 10.5px; color: var(--muted); }
.lb-bfield input { min-width: 0; height: 36px; padding: 0 11px; border: 1px solid #dfe4ec; border-radius: 10px; background: #fff; color: var(--ink); font-size: 11.5px; }
.lb-crit-btn { height: 38px; padding: 0 14px; border: 1px solid #d9d2ef; border-radius: 10px; background: #f7f3ff; color: #6847ae; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lb-boundset em { align-self: center; min-width: 92px; font-style: normal; font-size: 11px; color: #7f8b9c; }
.lb-boundset em.on { color: #cf5550; font-weight: 700; }
.lb-critbox { margin-top: 9px; padding: 12px; border: 1px solid #ddd8ef; border-radius: 12px; background: #fbf9ff; }
.lb-critbox textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #ded9ec; border-radius: 9px; resize: vertical; color: var(--ink); font: inherit; font-size: 11.5px; line-height: 1.6; }
.lb-critbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.lb-critbtns #lbCriteriaClose { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #eef2f7; color: #556274; cursor: pointer; }
.lb-roundbar { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: linear-gradient(90deg, #f5f7ff, #f7fbff); border: 1px solid #e4e9f7; }
.lb-roundbar > div { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; flex: 1; }
.lb-roundbar span, .lb-roundbar small { font-size: 10.5px; color: var(--muted); }
.lb-roundbar b { font-size: 19px; color: #4f46e5; font-variant-numeric: tabular-nums; }
.lb-roundbar small { grid-column: 1 / -1; }
.lb-roundbar label { display: flex; align-items: center; gap: 8px; }
.lb-roundbar select { padding: 6px 9px; border: 1px solid #dce2ed; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.lb-roundbar em { min-width: 92px; font-style: normal; font-size: 11px; color: #7f8b9c; }
.lb-roundbar em.on { color: #cf5550; font-weight: 700; }
.lb-roundstate { flex: 0 0 auto; font-size: 12px !important; }
.lb-roundstate.idle { color: #78869a; }
.lb-roundstate.recording { color: #cf5550; }
.lb-roundstate.analyzing { color: #6847ae; }
.lb-roundstate.done { color: #168966; }
.lb-roundstate.listening { color: #2f6bd8; }
.lb-roundstate.recording { font-weight: 700; }
/* 整块面板染色:一眼分清「还没开始」和「正在记录」 */
.lb-phase-listening { background: linear-gradient(0deg, rgba(47,107,216,.05), rgba(47,107,216,.05)); border-left: 4px solid #2f6bd8 !important; }
.lb-phase-recording { background: linear-gradient(0deg, rgba(207,85,80,.06), rgba(207,85,80,.06)); border-left: 4px solid #cf5550 !important; animation: lbRecPulse 2s ease-in-out infinite; }
@keyframes lbRecPulse { 0%,100% { border-left-color:#cf5550; } 50% { border-left-color:#f0908c; } }
.lb-heard { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(238,243,250,.7); display: flex; gap: 10px; align-items: baseline; }
.lb-heard span { font-size: 10px; color: var(--muted); flex: 0 0 auto; }
.lb-heard b { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.lb-transcript { margin-top: 8px; padding: 10px 14px; border: 1px solid #edf0f5; border-radius: 10px; background: #fff; }
.lb-transcript span { display: block; margin-bottom: 4px; font-size: 10px; color: var(--muted); }
.lb-transcript p { margin: 0; max-height: 72px; overflow-y: auto; font-size: 12px; line-height: 1.65; color: #45566b; }
.lb-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.lb-left { display: flex; flex-direction: column; gap: 16px; }
.lb-stage-panel { padding: 16px 18px; }
.lb-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.lb-stage { padding: 12px 8px; border-radius: 12px; border: 1px solid #e8ecf2; background: #fbfcfe; text-align: center; transition: .2s; }
.lb-stage i { display: block; font-size: 16px; font-style: normal; color: #b4bece; margin-bottom: 4px; }
.lb-stage span { font-size: 11px; color: var(--muted); }
.lb-stage.active { border-color: #4f46e5; background: linear-gradient(135deg, #eef1ff, #e7ecff); box-shadow: 0 4px 12px rgba(79,70,229,.14); }
.lb-stage.active i { color: #4f46e5; }
.lb-stage.active span { color: #4f46e5; font-weight: 600; }
.lb-metrics-panel { padding: 14px 16px; }
.lb-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lb-chip { padding: 10px 12px; border-radius: 10px; background: #f7f9fc; }
.lb-chip span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.lb-chip b { font-size: 14px; color: var(--ink); font-weight: 600; }
.lb-right { display: flex; flex-direction: column; gap: 16px; }
.lb-screen { border-radius: 16px; padding: 14px; background: linear-gradient(150deg, #10182a, #1b2740); box-shadow: 0 12px 30px rgba(16,24,42,.25); }
.lb-screen-top { display: flex; justify-content: space-between; align-items: center; color: #9fb3d6; font-size: 11px; margin-bottom: 10px; padding: 0 4px; }
.lb-screen-top span { font-weight: 600; color: #dce7fb; }
.lb-advice-hero { min-height: 128px; display: flex; align-items: center; justify-content: center; }
.lb-advice-empty { color: #6f83a6; font-size: 12px; text-align: center; padding: 30px 16px; line-height: 1.8; }
.lb-card { width: 100%; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.05); border-left: 4px solid #888; }
.lb-card-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 6px; margin-bottom: 9px; }
.lb-card strong { display: block; font-size: 17px; color: #fff; margin-bottom: 7px; }
.lb-card p { margin: 0; font-size: 13px; line-height: 1.75; color: #cdd8ea; }
.lb-card.lb-red { border-left-color: #ff5b5b; } .lb-card.lb-red .lb-card-tag { background: rgba(255,91,91,.18); color: #ff9a9a; }
.lb-card.lb-yellow { border-left-color: #ffb64a; } .lb-card.lb-yellow .lb-card-tag { background: rgba(255,182,74,.18); color: #ffcd82; }
.lb-card.lb-green { border-left-color: #2fd48a; } .lb-card.lb-green .lb-card-tag { background: rgba(47,212,138,.18); color: #7ee6b6; }
.lb-card.lb-tip { border-left-color: #6aa0ff; } .lb-card.lb-tip .lb-card-tag { background: rgba(106,160,255,.18); color: #a7c6ff; }
.lb-advice-log-panel { padding: 12px 14px; }
.lb-advice-log { display: flex; flex-direction: column; min-height: 150px; max-height: 300px; overflow-y: auto; }
.lb-log-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #f1f4f8; font-size: 11.5px; }
.lb-log-t { font-size: 10px; color: #9aa7b8; flex: 0 0 auto; }
.lb-log-row b { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.lb-dot-red { background: #cf5550; } .lb-dot-yellow { background: #d77925; } .lb-dot-green { background: #168966; } .lb-dot-tip { background: #4f46e5; }
.lb-log-x { color: #556274; line-height: 1.6; } .lb-log-x em { font-style: normal; font-weight: 600; color: var(--ink); margin-right: 5px; }
.lb-aiops-panel { margin-top: 16px; padding: 18px 20px; border-top: 3px solid #4f46e5; }
.lb-ai-source { padding: 4px 9px; border-radius: 999px; background: #eaf1ff; color: #2e70df; font-size: 10.5px; }
.lb-ai-source.fallback { background: #fff4e5; color: #b76b18; }
.lb-ai-summary { margin: 8px 0 14px; padding: 11px 13px; border-radius: 10px; background: #f5f7ff; color: #34445b; font-size: 12.5px; line-height: 1.65; }
.lb-ai-issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.lb-ai-issue { padding: 12px 13px; border: 1px solid #e6eaf1; border-radius: 12px; background: #fff; }
.lb-ai-issue > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.lb-ai-issue > div span, .lb-ai-issue > div b { padding: 2px 7px; border-radius: 6px; font-size: 10px; }
.lb-ai-issue > div span { background: #eef2ff; color: #4f46e5; }
.lb-ai-issue > div b { background: #f1f5f9; color: #64748b; }
.lb-ai-issue strong { display: block; margin-bottom: 5px; font-size: 13px; color: var(--ink); }
.lb-ai-issue p, .lb-ai-issue em { display: block; margin: 0; font-size: 11.5px; line-height: 1.6; }
.lb-ai-issue p { color: #718096; }
.lb-ai-issue em { margin-top: 6px; font-style: normal; color: #2e70df; }
.lb-ai-empty { padding: 18px; color: var(--muted); font-size: 12px; }
.lb-ai-next { margin-top: 12px; padding: 11px 14px; border-radius: 10px; background: #f2fbf7; color: #2f5f4d; font-size: 12px; }
.lb-ai-next b { color: #168966; }
.lb-ai-next ol { margin: 7px 0 0; padding-left: 20px; line-height: 1.75; }
@media (max-width: 900px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-topbar .lc-status-row { align-items: stretch; flex-wrap: wrap; }
  .lb-topbar .lc-status-row > div { flex-basis: calc(100% - 30px); }
  .lb-action, .lb-topbar .lc-power { flex: 1; }
  .lb-boundset { grid-template-columns: 1fr; }
  .lb-roundbar { align-items: stretch; flex-direction: column; gap: 8px; }
}

/* ===== 切片混剪（视频工作台）===== */
.cs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cs-left, .cs-center { min-height: 520px; }
.cs-left, .cs-center { padding: 16px; }
.cs-h { font-size: 12px; color: #8a97a8; text-transform: uppercase; letter-spacing: .6px; margin: 4px 0 10px; }
.cs-h + .cs-btn, .cs-seglist { margin-top: 0; }
.cs-left .cs-h:not(:first-of-type) { margin-top: 20px; }
.cs-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: #3b82f6; color: #fff; border: none; font-weight: 700; cursor: pointer; font-size: 13.5px; }
.cs-btn.ghost { background: #eef2f8; color: #2a3240; border: 1px solid #dfe5ee; }
.cs-btn.keep { background: #22c55e; }
.cs-btn.block { width: 100%; justify-content: center; margin-bottom: 10px; }
.cs-btn:disabled { opacity: .45; cursor: not-allowed; }
.cs-card { background: #f6f8fc; border: 1px solid #e5e9f0; border-radius: 10px; padding: 12px; margin-bottom: 12px; font-size: 13px; line-height: 1.8; color: #5b6470; }
.cs-card b { color: #1f2937; }
.cs-pvbox { background: #000; border-radius: 12px; height: 50vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cs-pvbox video { max-width: 100%; max-height: 100%; border-radius: 12px; }
.cs-transport { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cs-tc { font-variant-numeric: tabular-nums; font-size: 13px; color: #8a97a8; min-width: 120px; }
.cs-tlwrap { margin-top: 14px; }
.cs-tlhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cs-tllab { font-weight: 700; }
.cs-hint { font-size: 12px; color: #8a97a8; }
.cs-timeline { position: relative; height: 56px; background: #0e1116; border: 1px solid #2a3240; border-radius: 8px; cursor: pointer; overflow: hidden; }
.cs-seg { position: absolute; top: 0; bottom: 0; background: rgba(34,197,94,.3); border: 1px solid #22c55e; border-radius: 4px; }
.cs-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: #f59e0b; }
.cs-playhead { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; box-shadow: 0 0 6px #fff; pointer-events: none; }
.cs-seglist { margin-bottom: 10px; }
.cs-segrow { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f6f8fc; border: 1px solid #e5e9f0; border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.cs-n { width: 20px; height: 20px; border-radius: 50%; background: #22c55e; color: #04210f; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex: none; }
.cs-t { flex: 1; font-variant-numeric: tabular-nums; color: #2a3240; }
.cs-mini { padding: 3px 7px; font-size: 12px; border-radius: 6px; background: #fff; border: 1px solid #dfe5ee; color: #2a3240; cursor: pointer; }
.cs-mini.del { color: #ef4444; }
.cs-empty { color: #8a97a8; font-size: 12.5px; padding: 8px 2px; }
@media (max-width: 900px) { .cs-wrap { grid-template-columns: 1fr; } }

/* ===== 素材混剪 ===== */
.mx-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.mx-lib, .mx-side { padding: 16px; }
.mx-libhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.mx-upload { display: flex; align-items: center; gap: 8px; }
.mx-upload select { padding: 7px 10px; border-radius: 8px; border: 1px solid #dfe5ee; background: #fff; color: #2a3240; font-size: 13px; }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; }
.mx-card { border: 1px solid #e5e9f0; border-radius: 10px; overflow: hidden; background: #fff; }
.mx-thumb { position: relative; aspect-ratio: 9 / 16; background: #0e1116; }
.mx-thumb img, .mx-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-kind { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.mx-cardft { display: flex; align-items: center; gap: 4px; padding: 6px; }
.mx-rolesel { flex: 1; min-width: 0; padding: 4px 6px; border-radius: 6px; border: 1px solid #dfe5ee; background: #f6f8fc; color: #2a3240; font-size: 12px; }
.mx-field { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: #5b6470; }
.mx-field > span { min-width: 78px; flex: none; }
.mx-field select, .mx-field input[type="number"], .mx-field textarea { flex: 1; padding: 7px 10px; border-radius: 8px; border: 1px solid #dfe5ee; background: #fff; color: #2a3240; font-size: 13px; font-family: inherit; }
.mx-field input[type="range"] { flex: 1; }
.mx-field.mx-col { flex-direction: column; align-items: stretch; }
.mx-field.mx-col > span { margin-bottom: 6px; }
.mx-field b { font-variant-numeric: tabular-nums; min-width: 40px; }
.mx-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mx-slot { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #eef4ff; border: 1px solid #d4e2fb; color: #2a3240; font-size: 12px; }
.mx-slot b { background: #3b82f6; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.mx-slot.empty { background: #fff4e6; border-color: #ffd9a8; }
.mx-slot.empty b { background: #f59e0b; }
@media (max-width: 900px) { .mx-wrap { grid-template-columns: 1fr; } }

/* ===== 切片剪辑·引导 ===== */
.cs-guide { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: #eef4ff; border: 1px solid #d4e2fb; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; color: #33415a; line-height: 1.7; }
.cs-guide > b:first-child { color: #2e70df; font-size: 13.5px; }
.cs-keepword { color: #16a34a; }
.cs-coach { margin-top: 10px; padding: 10px 14px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 10px; color: #8a5a00; font-size: 14px; font-weight: 600; }
.cs-btn.step { background: #fff; color: #2e70df; border: 1.5px solid #2e70df; }
.cs-btn.step:hover { background: #eef4ff; }
.cs-btn.cs-ready { animation: cs-pulse 1.1s ease-in-out infinite; }
@keyframes cs-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ===== 切片·AI 挑亮点 ===== */
.cs-btn.ai { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.cs-aistatus { margin: 2px 0 10px; font-size: 13px; padding: 8px 12px; border-radius: 8px; line-height: 1.5; }
.cs-aistatus:empty { display: none; margin: 0; padding: 0; }
.cs-aistatus.running { background: #eef4ff; color: #2e5cb8; border: 1px solid #d4e2fb; }
.cs-aistatus.ok { background: #eafaf0; color: #15803d; border: 1px solid #bbf0cc; }
.cs-aistatus.error { background: #fff0ef; color: #c0392b; border: 1px solid #ffd0cc; }
.cs-recs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.cs-rec { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid #e5e9f0; border-radius: 10px; background: #fff; cursor: pointer; }
.cs-rec:hover { border-color: #93b4f5; background: #fbfdff; }
.cs-rec input { margin-top: 3px; width: 16px; height: 16px; flex: none; cursor: pointer; }
.cs-rec-body { flex: 1; min-width: 0; }
.cs-rec-body b { display: block; font-size: 13.5px; color: #1f2937; }
.cs-rec-time { display: inline-block; font-size: 12px; color: #2e70df; font-variant-numeric: tabular-nums; margin: 2px 0; }
.cs-rec-body p { font-size: 12.5px; color: #5b6470; line-height: 1.5; margin: 2px 0 0; }
.cs-try { flex: none; align-self: center; }
.cs-aitag { background: #7c3aed; color: #fff; font-size: 10px; padding: 0 5px; border-radius: 5px; margin-right: 5px; }
.cs-manual { margin-top: 14px; border-top: 1px dashed #dfe5ee; padding-top: 10px; }
.cs-manual summary { cursor: pointer; font-size: 13px; color: #5b6470; font-weight: 600; list-style-position: inside; }
.cs-manual summary:hover { color: #2e70df; }
.cs-manual[open] summary { margin-bottom: 10px; }

/* ===== 场控·话术录原话 ===== */
.lc-voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.lc-vbadge { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #eef2f8; color: #5b6470; font-weight: 600; }
.lc-vbadge.rec { background: #e7f7ee; color: #15803d; }
.lc-vbtn { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; border: 1px solid #dfe5ee; background: #fff; color: #2a3240; cursor: pointer; }
.lc-vbtn:hover { border-color: #93b4f5; }
.lc-vbtn.rec { color: #c0392b; border-color: #f3c0bc; }
.lc-vbtn.recording { background: #c0392b; color: #fff; border-color: #c0392b; animation: cs-pulse 1s infinite; }

/* ===== 场控·触发方式(独立/并行)选择 ===== */
.lc-modepick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0; font-size: 12.5px; color: #5b6470; }
.lc-modepick > span { color: #8a97a8; }
.lc-modepick label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.lc-modepick label small { color: #9aa7b8; font-size: 11px; margin-left: 2px; }
.lc-modepick input { cursor: pointer; }
.lc-full-badge { background: #eef2f8; color: #5b6470; font-size: 11px; padding: 1px 6px; border-radius: 5px; font-weight: 600; }

/* ===== 切片·AI找亮点控制面板 ===== */
.cs-aipanel { background: #f6f8fc; border: 1px solid #e5e9f0; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.cs-aipanel textarea { width: 100%; padding: 8px 10px; border: 1px solid #dfe5ee; border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; background: #fff; color: #2a3240; box-sizing: border-box; }
.cs-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; }
.cs-focus > span { color: #8a97a8; margin-right: 2px; }
.cs-focus button { padding: 3px 9px; border-radius: 999px; border: 1px solid #dfe5ee; background: #fff; color: #5b6470; cursor: pointer; font-size: 12px; }
.cs-focus button.on { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.cs-params { margin-top: 8px; font-size: 12.5px; color: #5b6470; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cs-params input { width: 52px; padding: 4px 6px; border: 1px solid #dfe5ee; border-radius: 6px; text-align: center; font-size: 12.5px; }

/* ===== 智播大屏·方案保存 ===== */
.lb-presetbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.lb-presetbar > span { color: #8a97a8; }
.lb-presetbar select { padding: 6px 10px; border-radius: 8px; border: 1px solid #dfe5ee; background: #fff; color: #2a3240; font-size: 13px; min-width: 150px; }
.lb-presetbar button { padding: 6px 12px; border-radius: 8px; border: 1px solid #dfe5ee; background: #fff; color: #2a3240; cursor: pointer; font-size: 12.5px; }
.lb-presetbar button:hover { border-color: #93b4f5; }
.lb-presetbar #lbPresetSave { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* 智播大屏·本地识别开关 */
.lb-stt-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #15803d; cursor: pointer; }
.lb-stt-toggle input { cursor: pointer; }

/* ===== 智播大屏·违规预警(敏感词) ===== */
.lb-sens-btn { color: #c0392b; border-color: #f3c0bc; }
.lb-card.lb-violation { border: 2px solid #ef4444; animation: lb-flash 0.9s ease-in-out 4; }
.lb-card.lb-violation .lb-card-tag { background: #ef4444; color: #fff; }
.lb-card.lb-violation strong { color: #ffb4b4; }
@keyframes lb-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
.lb-sensbox textarea { border-color: #f3c0bc !important; }

/* 侧边栏滚动条:深色底配细条,不扎眼 */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
.sidebar::-webkit-scrollbar-track { background: transparent; }

/* 智播大屏·声音来源标识 */
.lb-audiosrc { font-size: 12px; color: #8a97a8; margin-left: 6px; }
.lb-audiosrc.on { color: #15803d; font-weight: 600; }

/* 智播大屏·麦克风收音警告 + 存稿状态 */
.lb-micwarn { margin: 10px 0; padding: 11px 14px; border-radius: 10px; background: #fff7e6; border: 1px solid #ffd9a3; color: #8a5a00; font-size: 13px; line-height: 1.7; }
.lb-micwarn b { color: #b45309; }
.lb-savestate { font-size: 12px; color: #8a97a8; margin-left: 8px; }
.lb-savestate.on { color: #15803d; font-weight: 600; }

/* ===== 广告素材库(内嵌) ===== */
.am-frame-wrap { border: 1px solid #e5e9f0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.am-frame-wrap iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 560px; border: 0; }
.demo-pill.am-ok { background: #e7f7ee; color: #15803d; border-color: #bbf0cc; }
.demo-pill.am-ok i { background: #22c55e; }
.demo-pill.am-bad { background: #fff0ef; color: #c0392b; border-color: #ffd0cc; }
.demo-pill.am-bad i { background: #ef4444; }
.am-down { padding: 20px 22px; border: 1px solid #ffd0cc; background: #fff8f7; border-radius: 14px; }
.am-down b { display: block; font-size: 15px; color: #c0392b; margin-bottom: 6px; }
.am-down p { margin: 0 0 10px; font-size: 13px; color: #5b6470; line-height: 1.7; }
.am-down code { display: block; padding: 10px 12px; background: #0e1116; color: #7dd3a0; border-radius: 8px; font-size: 12.5px; margin-bottom: 12px; overflow-x: auto; }

/* ══ 直播工作台(P1):导航隐藏 + 六阶段 + 计划/准备/事件 ══ */
.nav-off { display: none !important; }
.lw-stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 6px; }
.lw-stage { padding: 12px 8px; border-radius: 12px; border: 1px solid #e8ecf2; background: #fbfcfe; text-align: center; transition: .2s; position: relative; }
.lw-stage i { display: block; font-size: 16px; font-style: normal; color: #b4bece; margin-bottom: 4px; }
.lw-stage span { font-size: 11px; color: var(--muted); }
.lw-stage.done { border-color: rgba(22,137,102,.35); background: #f2fbf5; }
.lw-stage.done i { color: #168966; }
.lw-stage.warn { border-color: #d77925; background: #fff8f0; }
.lw-stage.warn i, .lw-stage.warn span { color: #d77925; font-weight: 600; }
.lw-stage.current { border-color: #4f46e5; background: linear-gradient(135deg, #eef1ff, #e7ecff); box-shadow: 0 4px 12px rgba(79,70,229,.14); }
.lw-stage.current i, .lw-stage.current span { color: #4f46e5; font-weight: 600; }
.lw-badge { position: absolute; top: -6px; right: -4px; background: #d64545; color: #fff; font-size: 10px; font-weight: 600; border-radius: 8px; padding: 1px 6px; }
.lw-badge.todo { background: #d77925; }
.lw-goal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lw-events { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.lw-event { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: #f7f9fc; border: 1px solid #eef1f6; }
.lw-event time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.lw-ev-risk { color: #d64545; font-weight: 600; }
.lw-ev-lvl { margin-left: auto; font-size: 10px; color: var(--muted); border: 1px solid #e2e7ee; border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.lw-pick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e7ee; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; background: #fff; }
.lw-pick select { height: 28px; border: 1px solid #dbe1ea; border-radius: 8px; font-size: 12px; }
/* 状态四色语义(2026-08-25 定死):灰=待办 蓝=进行中 绿=完成 红=风险;任务名永远正常色,状态只在控件/徽标上着色 */
.st-todo { color: var(--muted); } .st-doing { color: #2f6fd6; } .st-done { color: #168966; } .st-risk { color: #d64545; } .st-na { color: var(--muted); }
.prep-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.prep-col { background: var(--tblr-bg-surface, #fff); border: 1px solid #e6e9f0; border-radius: 12px; padding: 10px 12px; }
.prep-col h4 { font-size: 14px; margin: 0 0 2px; display: flex; align-items: baseline; gap: 6px; }
.prep-col h4 .prep-owner-hint { font-size: 12px; color: var(--muted); font-weight: normal; }
.prep-task { border: 1px solid #edf0f5; border-radius: 10px; padding: 8px; margin-top: 8px; }
.prep-task.is-done { opacity: .62; }
.prep-task.is-risk { border-color: #f3b6b6; background: #fff7f7; }
.prep-task .prep-label { font-size: 13px; display: flex; gap: 6px; align-items: baseline; }
.prep-task .prep-label .del { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.prep-task .prep-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.prep-task .prep-ctl input, .prep-task .prep-ctl select { height: 30px; border: 1px solid #dbe1ea; border-radius: 8px; padding: 0 8px; font-size: 12px; min-width: 0; }
.prep-add { display: flex; gap: 6px; margin-top: 10px; }
.prep-add input { flex: 1; height: 30px; border: 1px dashed #cfd6e2; border-radius: 8px; padding: 0 8px; font-size: 12px; min-width: 0; }
.prep-add button { height: 30px; border: 1px solid #dbe1ea; background: #f6f8fb; border-radius: 8px; cursor: pointer; padding: 0 10px; }
.lw-prep-item { display: grid; grid-template-columns: minmax(160px, 1.4fr) 110px 1fr; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed #edf0f5; }
.lw-prep-item:last-child { border-bottom: none; }
.lw-prep-item input, .lw-prep-item select { height: 32px; border: 1px solid #dbe1ea; border-radius: 8px; padding: 0 8px; font-size: 12.5px; }
.lw-prep-auto { font-size: 11.5px; color: var(--muted); }
.lw-empty-pad { padding: 18px; color: var(--muted); font-size: 13px; }
@media (max-width: 920px) { .lw-stages { grid-template-columns: repeat(3, 1fr); } .lw-prep-item { grid-template-columns: 1fr 1fr; } }

/* ══ Tabler 底座接入(2026-08-24 试点):内容区组件走 Tabler,侧栏保留自家深色骨架 ══ */
.view .card { border-radius: 12px; }
.lw-stages { margin-top: 0; }

/* ══ 2026-08-24 用户验货三修(窗口:主) ══ */
/* ② 复盘方案表:下拉给足最小宽度,列挤不下时让 table-responsive 真横滚,不许把字挤没 */
#view-livereview td .form-select { min-width: 104px; }
#view-livereview td .form-select.w-auto { min-width: 0; }
/* ③ 次要文字全局加深:用户实机反馈 #6b7280 太浅看不清 */
:root { --tblr-secondary: #4a5361; --tblr-secondary-rgb: 74, 83, 97; --tblr-secondary-color: #4a5361; --tblr-muted: #4a5361; }
.text-secondary, .card-subtitle, .subheader, .page-pretitle { color: #4a5361 !important; }

/* ══ 商品与SKU 拖拽排序(2026-08-25,窗口:主) ══ */
.drag-handle { width: 34px; text-align: center; color: #b4bece; cursor: grab; user-select: none; font-size: 15px; letter-spacing: -2px; }
.drag-handle:hover { color: #4a5361; }
.drag-handle:active { cursor: grabbing; }
tr.row-dragging { opacity: .45; background: #eef3ff !important; }

/* ══ 常驻录音指示(顶栏):解除「切页自动停麦」的交换条件——任何页面都看得见、点得停 ══ */
.rec-indicator { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px;
  background: rgba(214,69,69,.10); border: 1px solid rgba(214,69,69,.35); font-size: 12.5px; color: #b03636; }
.rec-indicator .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #d64545; display: inline-block;
  animation: recPulse 1.4s ease-in-out infinite; }
.rec-indicator b { font-variant-numeric: tabular-nums; }
@keyframes recPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
#ckRecText em { color: #d64545; font-style: normal; font-weight: 600; }

/* 竞品看播抽屉:比默认 offcanvas 宽得多——里面装的是截图墙和时间轴宽表。
   注意必须改 Tabler 自己的变量,不能直接写 width:Tabler 的规则是 `.offcanvas.offcanvas-end`
   (两个类,权重 0,2,0),单类选择器压不过它,写多少 width 都不生效(2026-08-25 实测踩到)。
   跟框架抢权重不如用它给的变量。 */
.cp-drawer { --tblr-offcanvas-width: min(760px, 92vw); }
.cp-drawer-wide { --tblr-offcanvas-width: min(1180px, 96vw); }
@media (max-width: 820px) { .cp-drawer, .cp-drawer-wide { --tblr-offcanvas-width: 100vw; } }

/* ══ 板块级子页签(2026-08-25 视觉调整第一版,窗口:主) ══
   问题:①面包屑板块名与页内大标题重复 ②子页签埋在卡片头里,不如左侧导航显眼 ③灰字小号没存在感
   解法:板块名交给面包屑,页内标题让位;子页签升到页头位置、做大做实,选中态与左侧导航同色系呼应 */
.sec-head { padding-top: 2px; }
.sec-lede { font-size: 13.5px; line-height: 1.7; }
.sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; border: 0; }
.sec-tabs .nav-item { margin: 0; }
.sec-tabs .nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  border: 1px solid #e2e8f1; background: #fff; color: #47536a;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; transition: .16s ease;
}
.sec-tabs .nav-link:hover { color: #17202c; border-color: #c3d2ea; background: #f6faff; transform: translateY(-1px); }
.sec-tabs .nav-link.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #3372e8, #1f56c4);
  box-shadow: 0 7px 18px rgba(35, 91, 205, .26);
}
@media (max-width: 900px) { .sec-tabs .nav-link { padding: 9px 13px; font-size: 14px; } }

/* 子页签进顶栏:顶栏 68px,页签压缩一档正好;窄屏横向滚动不换行(顶栏不能长高) */
.topbar-tabs { display: flex; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar-tabs::-webkit-scrollbar { display: none; }
.topbar-tabs .sec-tabs { flex-wrap: nowrap; }
.topbar-tabs .sec-tabs .nav-link { padding: 8px 15px; font-size: 14px; border-radius: 10px; }
.topbar-tabs .sec-tabs .nav-link:hover { transform: none; }
.sec-head:empty, .sec-head .row:has(> .col:empty) { margin-bottom: 0; }

/* ══ 作品数据·权重滑杆:左侧填充色代表当前量(引擎同款观感)。背景由 JS 按值刷成双段渐变 ══ */
.wk-range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(to right, #2f6bff 0%, #2f6bff 40%, #e4e8ef 40%, #e4e8ef 100%); outline: none; }
.wk-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: #2f6bff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(31,41,55,.35); cursor: pointer; }
.wk-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #2f6bff;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(31,41,55,.35); cursor: pointer; }

/* 三级页签(内容引流·IP型内容内部):比二级小一号,留在页内不进顶栏 */
/* 三级页签:比二级(顶栏)小一档,但字要黑要有分量——原来 13px + muted 灰,用户反馈「太小、太不明显」 */
.sec-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0 0; }
.sec-row .sec-lede { flex: 1 1 260px; min-width: 0; margin: 0; }
.sec-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }
.sec-subtabs .nav-link {
  padding: 7px 14px; font-size: 13.5px; font-weight: 600; border-radius: 9px;
  color: #3f4a5d; text-decoration: none; transition: .15s ease;
}
.sec-subtabs .nav-link:hover { color: #17202c; background: #f1f5fa; }
.sec-subtabs .nav-link.active { background: #e8f0ff; color: #2358c8; font-weight: 700; box-shadow: inset 0 0 0 1px #cfdffb; }

/* ══ 主播练习室:模拟抖音直播间(手机壳) ══ */
.tr-phone { width: 340px; height: 604px; flex: none; position: relative; border-radius: 24px; overflow: hidden;
  background: #14161c; box-shadow: 0 10px 34px rgba(10,14,24,.35); }
.tr-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-ph-nocam { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #8b93a5; text-align: center; }
.tr-ph-head { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex;
  align-items: center; gap: 8px; }
.tr-ph-avatar { width: 34px; height: 34px; border-radius: 50%; background: #6455a6; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.tr-ph-name { background: rgba(0,0,0,.45); color: #fff; font-size: 11px; line-height: 1.25;
  border-radius: 16px; padding: 4px 10px; }
.tr-ph-name i { font-style: normal; opacity: .75; font-size: 10px; }
.tr-ph-follow { background: #fe2c55; color: #fff; font-size: 12px; border-radius: 14px; padding: 4px 12px; }
.tr-ph-online { margin-left: auto; background: rgba(0,0,0,.45); color: #fff; font-size: 11px;
  border-radius: 12px; padding: 4px 8px; }
.tr-ph-product { position: absolute; left: 10px; bottom: 148px; z-index: 3; width: 128px; background: #fff;
  border-radius: 10px; padding: 6px; font-size: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.tr-ph-product img { width: 100%; height: 74px; object-fit: cover; border-radius: 6px; }
.tr-ph-product .price { color: #fe2c55; font-weight: 700; }
.tr-ph-danmaku { position: absolute; left: 10px; right: 64px; bottom: 12px; z-index: 3; max-height: 128px;
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.tr-dm { background: rgba(0,0,0,.45); color: #fff; font-size: 12px; border-radius: 12px;
  padding: 4px 10px; width: fit-content; max-width: 100%; animation: trDmIn .25s ease; }
.tr-dm b { color: #9fd0ff; font-weight: 500; }
.tr-dm.ask { background: rgba(254,44,85,.78); }
@keyframes trDmIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.tr-ph-hearts { position: absolute; right: 12px; bottom: 60px; width: 40px; height: 220px; z-index: 2; pointer-events: none; }
.tr-heart { position: absolute; bottom: 0; right: 8px; font-size: 18px; animation: trHeart 2.6s ease-in forwards; }
@keyframes trHeart { 0% { transform: translateY(0) scale(.7); opacity: .9; }
  100% { transform: translateY(-190px) translateX(-14px) scale(1.15); opacity: 0; } }
.tr-tag { display: inline-block; font-size: 11px; border-radius: 6px; padding: 1px 7px; margin-right: 6px;
  background: #e8f0ff; color: #3767ba; white-space: nowrap; }
.tr-seg { padding: 6px 4px; border-bottom: 1px dashed #edf0f5; font-size: 13px; line-height: 1.55; }
.tr-seg:last-child { border-bottom: 0; }
