/* AI委案智决双对象治理 + 执行回传闭环 v22。 */
.realtime-table { min-width: 1780px; }
.realtime-table th:nth-child(1) { width: 122px; }
.realtime-table th:nth-child(2) { width: 100px; }
.realtime-table th:nth-child(3) { width: 230px; }
.realtime-table th:nth-child(4) { width: 152px; }
.realtime-table th:nth-child(5) { width: 160px; }
.realtime-table th:nth-child(6) { width: 108px; }
.realtime-table th:nth-child(7) { width: 110px; }
.realtime-table th:nth-child(8) { width: 245px; }
.realtime-table th:nth-child(9) { width: 260px; }
.realtime-table th:nth-child(10) { width: 70px; }
.realtime-table th:nth-child(11) { width: 92px; }
.realtime-table th:nth-child(12) { width: 86px; }
.realtime-table { min-width: 1870px; }
.realtime-table th:nth-child(7) { width: 190px; }
.realtime-table th:nth-child(8) { width: 145px; }
.realtime-table th:nth-child(9) { width: 260px; }
.realtime-table th:nth-child(10) { width: 180px; }
.realtime-evidence-cell { padding: 8px 10px !important; }

body[data-view="realtime"] .realtime-intent-cell { min-width: 152px; padding: 8px !important; }
body[data-view="realtime"] .realtime-intent-meter { min-width: 136px; padding: 8px 9px; }
.realtime-intent-meter.tone-decisive { --intent-color: #c95d68; --intent-track: #fae7e9; }
.realtime-intent-meter.tone-high { --intent-color: #197c6b; --intent-track: #def1ec; }
.realtime-intent-meter.tone-clear { --intent-color: #2a9d8f; --intent-track: #def3ef; }
.realtime-intent-meter.tone-consult { --intent-color: #4f86c6; --intent-track: #e4eef9; }
.realtime-intent-meter.tone-information,
.realtime-intent-meter.tone-low,
.realtime-intent-meter.tone-empty { --intent-color: #78909c; --intent-track: #e8eef0; }
.realtime-intent-meter.tone-reject { --intent-color: #b85d68; --intent-track: #f8e8ea; }
body[data-view="realtime"] .realtime-intent-head { justify-content: center; min-height: 14px; margin-bottom: 5px; }
body[data-view="realtime"] .realtime-intent-head span { font-size: 9px !important; }
.realtime-intent-track { position: relative; height: 24px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--intent-color) 24%, transparent); border-radius: 999px; background: var(--intent-track); box-shadow: inset 0 1px 2px rgba(32,75,80,.12),0 1px 0 rgba(255,255,255,.72); }
.realtime-intent-track::after { content: ""; position: absolute; inset: 1px auto 1px 1px; width: 34%; border-radius: inherit; background: linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent); opacity: 0; transform: translateX(-140%); pointer-events: none; }
.tone-decisive .realtime-intent-track::after { animation: ai-command-shimmer .62s .18s ease-out both; }
.realtime-intent-track i { display: block; width: var(--intent-level); height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg,color-mix(in srgb,var(--intent-color) 82%,#fff),var(--intent-color)); box-shadow: 0 0 8px color-mix(in srgb,var(--intent-color) 32%,transparent); transform-origin: left center; animation: ai-command-rise .42s cubic-bezier(.2,.78,.25,1) both; }
.realtime-intent-track > strong { position: absolute; z-index: 2; inset: 2px 50% auto; display: grid !important; place-items: center; width: max-content; min-width: 38px; height: 18px; margin: 0 !important; padding: 0 5px; transform: translateX(-50%); border-radius: 999px; background: rgba(255,255,255,.84); color: #183d43 !important; font: 800 12px/1 Consolas,monospace !important; pointer-events: none; }
body[data-view="realtime"] .realtime-intent-meter .realtime-intent-operation { margin-top: 5px !important; color: #809194 !important; font-size: 8px !important; }
.realtime-intent-operation.action-positive { color: #197c6b !important; }
.realtime-intent-operation.action-warning { color: #9a741d !important; }
.realtime-intent-operation.action-danger { color: #b85d68 !important; }
@keyframes ai-command-rise { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ai-command-shimmer { from { opacity: 0; transform: translateX(-140%); } 35% { opacity: .76; } to { opacity: 0; transform: translateX(350%); } }

.realtime-action-cell { padding: 9px !important; }
.realtime-action-button { display: grid; width: 100%; min-height: 64px; align-content: center; gap: 4px; padding: 8px 9px; border: 1px solid #d5e4e1; border-radius: 7px; background: #f3faf8; color: #176f62; font: inherit; text-align: left; cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.realtime-action-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #79b9ae; box-shadow: 0 5px 14px rgba(38,100,91,.12); }
.realtime-action-button:focus-visible { outline: 2px solid #35a18e; outline-offset: 2px; }
.realtime-action-button > span,.realtime-action-button > strong,.realtime-action-button > small { display: block; margin: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realtime-action-button > span { color: #167b6c !important; font-size: 10px !important; font-weight: 800; }
.realtime-action-button > strong { color: #3d6465 !important; font-size: 9px !important; }
.realtime-action-button > small { color: #789091 !important; font-size: 8px !important; }
.realtime-action-button.tone-warning { border-color: #eadcbf; background: #fffaf0; }
.realtime-action-button.tone-warning > span { color: #946d1d !important; }
.realtime-action-button.tone-danger { border-color: #efd6d9; background: #fff7f8; }
.realtime-action-button.tone-danger > span { color: #ad5360 !important; }
.realtime-action-button.executed { border-color: #badfd5; background: #edf8f4; opacity: .9; cursor: default; }
.realtime-action-button.executed > strong { color: #167765 !important; }
.realtime-action-button.failed { border-color: #e8b9bf; box-shadow: inset 3px 0 #b85d68; }
.realtime-action-button:disabled:not(.executed) { opacity: .58; cursor: not-allowed; }

/* The action column now explains polarity; evidence remains the gate, not a dead label. */
.realtime-table th:nth-child(6) { width: 190px; }
.realtime-table th:nth-child(7) { width: 260px; }
.realtime-action-button { min-height: 82px; }
.realtime-action-button > strong { white-space: normal; overflow-wrap: anywhere; }
.realtime-action-button > small { white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
.realtime-evidence-cell > strong { color: #a96f1e !important; font-size: 11px !important; }
.realtime-evidence-cell.tone-positive > strong { color: #237c63 !important; }
.realtime-evidence-cell.tone-danger > strong { color: #a95857 !important; }
.realtime-action-static { display: grid; min-height: 82px; align-content: center; gap: 4px; padding: 8px 9px; border: 1px solid #dce8e5; border-radius: 7px; background: #f8fbfa; text-align: left; }
.realtime-action-static > span, .realtime-action-static > strong, .realtime-action-static > small, .realtime-action-static > em { display: block; margin: 0 !important; overflow-wrap: anywhere; white-space: normal; }
.realtime-action-static > span { color: #668080; font-size: 9px; font-weight: 800; }
.realtime-action-static > strong { color: #355b5d; font-size: 10px; line-height: 1.35; }
.realtime-action-static > small, .realtime-action-static > em { color: #789091; font-size: 8px; line-height: 1.35; }
.realtime-action-static > em { font-style: normal; }
.realtime-action-static.realtime-negative-hold { border-color: #dce8e5; background: #f8fbfa; }
.realtime-action-static.realtime-negative-hold > span { color: #6d8180; }
.realtime-action-static.realtime-positive-counterpart { border-color: #b9dfd3; border-left: 3px solid #43a88b; background: #f1fbf6; }
.realtime-action-static.realtime-positive-counterpart > span, .realtime-action-static.realtime-positive-counterpart > strong { color: #237c63; }
.realtime-action-static.realtime-positive-hold { border-color: #dce4e2; background: #fbfcfb; }
.realtime-action-cell.negative-action-column .realtime-action-button.tone-positive { border-color: #dce8e5; background: #f8fbfa; }
.realtime-evidence-cell.positive-counterpart-column { background: #f6fcf8 !important; }

.realtime-intent-dialog { width: min(920px,calc(100vw - 24px)); max-height: min(92vh,940px); overflow: hidden; border-color: #c9dcdd; background: #fff; }
.realtime-intent-dialog form { display: grid; max-height: min(92vh,940px); overflow-y: auto; }
.realtime-intent-dialog header { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 14px; align-items: start; padding: 18px 20px 15px; border-bottom: 1px solid #dce8e9; background: #f7faf9; }
.realtime-intent-dialog header small { color: #168170; font-size: 9px; font-weight: 800; }
.realtime-intent-dialog header h2 { margin: 3px 0 4px; color: #173c45; font-size: 19px; }
.realtime-intent-dialog header p { margin: 0; color: #6f868b; font-size: 11px; }
.realtime-intent-dialog-hero { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid #e1e9ea; }
.realtime-intent-dialog-hero > div { display: grid; gap: 3px; padding: 17px 20px; }
.realtime-intent-dialog-hero > div + div { border-left: 1px solid #e1e9ea; }
.realtime-intent-dialog-hero span { color: #688086; font-size: 9px; font-weight: 700; }
.realtime-intent-dialog-hero strong { color: #167d6d; font-size: 23px; }
.realtime-intent-dialog-hero small { color: #93a2a5; font-size: 8px; }
.realtime-intent-action-card { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(280px,1.8fr) auto; gap: 16px; align-items: center; margin: 14px 20px 0; padding: 13px 15px; border: 1px solid #d7e6e3; border-left: 4px solid #178671; border-radius: 7px; background: #f1faf7; }
.realtime-intent-action-card[data-tone="danger"] { border-color: #f0d3d7; border-left-color: #bd5f6a; background: #fff6f7; }
.realtime-intent-action-card[data-tone="warning"] { border-color: #eddcb7; border-left-color: #b2842d; background: #fffaf0; }
.realtime-intent-action-card > div { display: grid; gap: 2px; }
.realtime-intent-action-card span,.realtime-intent-action-card small { color: #71868a; font-size: 8px; }
.realtime-intent-action-card strong { color: #176f62; font-size: 17px; }
.realtime-intent-action-card p { margin: 0; color: #38565c; font-size: 11px; line-height: 1.55; }
.realtime-intent-action-card > b { padding: 6px 9px; border-radius: 5px; background: rgba(255,255,255,.78); color: #506a6f; font-size: 9px; text-align: center; white-space: nowrap; }
.realtime-intent-dimension-section { padding: 16px 20px; border-bottom: 1px solid #e7eeee; }
.realtime-intent-dimension-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 0; border: 0; background: transparent; }
.realtime-intent-dimension-section > header span,.realtime-intent-expert-section > header span { color: #168170; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.realtime-intent-dimension-section > header h3,.realtime-intent-expert-section > header h3 { margin: 3px 0 0; color: #25484f; font-size: 14px; }
.realtime-intent-dimensions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.realtime-intent-dimensions > article { min-width: 0; padding: 10px; border: 1px solid #e1e9e8; border-radius: 6px; background: #fafcfc; }
.realtime-intent-dimensions article > header { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0; border: 0; background: transparent; }
.realtime-intent-dimensions article > header span { color: #48646a; font-size: 9px; font-weight: 800; }
.realtime-intent-dimensions article > header strong { color: #167b6c; font: 800 14px/1 ui-monospace,Consolas,monospace; }
.realtime-intent-dimensions article > div { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e5ecea; }
.realtime-intent-dimensions article > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#63c2b1,#168271); }
.realtime-intent-dimensions article > p { min-height: 25px; margin: 7px 0 0; color: #829296; font-size: 8px; line-height: 1.5; }
.realtime-intent-explanation { display: grid; margin: 0; }
.realtime-intent-explanation > div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 12px; padding: 13px 20px; border-bottom: 1px solid #edf1f2; }
.realtime-intent-explanation dt { color: #829397; font-size: 9px; font-weight: 700; }
.realtime-intent-explanation dd { margin: 0; color: #34545b; font-size: 11px; line-height: 1.5; }
.realtime-intent-explanation dd ul { display: grid; gap: 3px; margin: 0; padding-left: 15px; }
.realtime-intent-explanation .next-action { background: #edf8f5; }
.realtime-intent-explanation .next-action dt,.realtime-intent-explanation .next-action dd { color: #117667; font-weight: 700; }
.realtime-intent-explanation .action-guard { background: #fffaf0; }
.realtime-intent-explanation .action-guard dt,.realtime-intent-explanation .action-guard dd { color: #856316; }
.realtime-intent-expert-section { padding: 16px 20px; border-bottom: 1px solid #e7eeee; background: #f8faf9; }
.realtime-intent-expert-section > header { display: block; padding: 0; border: 0; background: transparent; }
.realtime-intent-expert-views { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.realtime-intent-expert-views article { padding: 10px 11px; border: 1px solid #e0e8e7; background: #fff; }
.realtime-intent-expert-views strong { display: block; color: #1b796b; font-size: 9px; }
.realtime-intent-expert-views p { margin: 4px 0 0; color: #536c71; font-size: 9px; line-height: 1.55; }
.realtime-intent-disclaimer { margin: 0; padding: 10px 20px; border-bottom: 1px solid #edf1f2; background: #fbfcfc; color: #8b999c; font-size: 8px; line-height: 1.5; }
.realtime-intent-dialog footer { display: flex; justify-content: flex-end; padding: 13px 20px; }

.realtime-action-dialog { width: min(660px,calc(100vw - 24px)); overflow: hidden; border-color: #cbdedd; background: #fff; }
.realtime-action-dialog form { display: grid; }
.realtime-action-dialog header { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 14px; padding: 18px 20px 15px; border-bottom: 1px solid #dce8e7; background: #f6faf9; }
.realtime-action-dialog header small { color: #aa5460; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.realtime-action-dialog header h2 { margin: 3px 0 4px; color: #183f47; font-size: 19px; }
.realtime-action-dialog header p { margin: 0; color: #73888d; font-size: 10px; line-height: 1.5; }
.realtime-action-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid #e7eeee; }
.realtime-action-summary > div { min-width: 0; padding: 13px 15px; }
.realtime-action-summary > div + div { border-left: 1px solid #e7eeee; }
.realtime-action-summary span { display: block; color: #829397; font-size: 8px; }
.realtime-action-summary strong { display: block; margin-top: 4px; overflow: hidden; color: #2b5158; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.realtime-action-command { display: grid; gap: 6px; margin: 16px 20px 0; padding: 14px 15px; border: 1px solid #efd7d9; border-left: 4px solid #b85d68; border-radius: 7px; background: #fff8f8; }
.realtime-action-command span { color: #8f7779; font-size: 8px; }
.realtime-action-command strong { color: #a54d59; font-size: 16px; }
.realtime-action-command p { margin: 0; color: #455f64; font-size: 10px; line-height: 1.55; }
.realtime-action-command small { color: #8b6b43; font-size: 8px; line-height: 1.5; }
.realtime-action-confirm { display: flex; align-items: flex-start; gap: 9px; margin: 14px 20px 0; padding: 12px 13px; border: 1px solid #e2e9e8; border-radius: 6px; background: #fafcfc; color: #466168; font-size: 10px; line-height: 1.5; cursor: pointer; }
.realtime-action-confirm input { margin-top: 2px; accent-color: #a9525d; }
.realtime-action-message { margin: 10px 20px 0; padding: 9px 11px; border-radius: 5px; background: #f3f6f6; color: #6e8387; font-size: 9px; }
.realtime-action-message.working { background: #fff8e9; color: #84631f; }
.realtime-action-message.success { background: #edf8f4; color: #167564; }
.realtime-action-message.error { background: #fff0f2; color: #a84f5b; }
.realtime-action-dialog footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 20px 18px; }
.realtime-action-dialog .danger-button { min-height: 36px; padding: 0 18px; border: 1px solid #a74f5b; border-radius: 7px; background: #ad5360; color: #fff; font-weight: 800; cursor: pointer; }
.realtime-action-dialog .danger-button:disabled { border-color: #c8d2d1; background: #d9dfde; color: #8e9a9a; cursor: not-allowed; }
.realtime-action-positive-setup { display: grid; gap: 10px; margin: 14px 20px 0; padding: 13px; border: 1px solid #b9dfd3; border-left: 4px solid #43a88b; border-radius: 8px; background: #f1fbf6; }
.realtime-action-positive-setup > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 0 3px; border: 0; background: transparent; }
.realtime-action-positive-setup > header span { color: #278772; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.realtime-action-positive-setup > header h3 { margin: 3px 0 0; color: #1d665a; font-size: 14px; }
.realtime-action-positive-setup > header small { color: #6b8d87; font-size: 8px; }
.realtime-action-positive-targets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.realtime-action-positive-targets > div { min-width: 0; padding: 9px; border: 1px solid #d3ebe2; border-radius: 6px; background: rgba(255,255,255,.72); }
.realtime-action-positive-targets span,.realtime-action-positive-targets strong,.realtime-action-positive-targets small { display: block; }
.realtime-action-positive-targets span { color: #73918d; font-size: 8px; }
.realtime-action-positive-targets strong { margin-top: 4px; overflow-wrap: anywhere; color: #205f55; font-size: 10px; line-height: 1.35; }
.realtime-action-positive-targets small { margin-top: 4px; color: #78938e; font-size: 8px; line-height: 1.35; }
.realtime-action-positive-confirm { margin: 0; border-color: #cde6dd; background: rgba(255,255,255,.72); }
.realtime-action-positive-confirm input { accent-color: #2f927b; }
.realtime-action-dialog[data-mode="positive"] .realtime-action-command { border-color: #b9dfd3; border-left-color: #43a88b; background: #f1fbf6; }
.realtime-action-dialog[data-mode="positive"] .realtime-action-command strong { color: #237c63; }
.realtime-action-dialog[data-mode="positive"] .danger-button { border-color: #2f927b; background: #2f927b; }
.realtime-action-button.direct-positive { border-color: #b9dfd3; background: #f1fbf6; }
.realtime-action-button.direct-positive > span,.realtime-action-button.direct-positive > strong { color: #237c63 !important; }

@media (max-width: 760px) {
  .realtime-intent-dialog { width: calc(100vw - 12px); }
  .realtime-intent-action-card { grid-template-columns: 1fr; margin: 10px 12px 0; }
  .realtime-intent-dimension-section,.realtime-intent-expert-section { padding: 14px 12px; }
  .realtime-intent-dimensions,.realtime-intent-expert-views { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .realtime-action-dialog { width: calc(100vw - 12px); }
  .realtime-action-summary { grid-template-columns: 1fr; }
  .realtime-action-summary > div + div { border-top: 1px solid #e7eeee; border-left: 0; }
  .realtime-action-command,.realtime-action-confirm,.realtime-action-message { margin-right: 12px; margin-left: 12px; }
  .realtime-action-positive-setup { margin-right: 12px; margin-left: 12px; }
  .realtime-action-positive-targets { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .realtime-intent-track::after,.realtime-intent-track i { animation: none; }
  .realtime-action-button { transition: none; }
}

/* v22 command surface: search term, trigger keyword, action target, and feedback stay distinct. */
body[data-view="realtime"] .realtime-control-panel { flex-wrap: wrap; }
.realtime-decision-filters {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid #e2ebea;
}
.realtime-decision-filters button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #71868a;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.realtime-decision-filters button:hover { background: #f1f6f5; color: #31575c; }
.realtime-decision-filters button.active { border-color: #afd7cf; background: #e9f6f2; color: #0d7f70; }

.realtime-decision-loop {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d7e4e2;
  border-radius: 7px;
  background: #fff;
}
.realtime-decision-loop > header {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 15px;
  border-right: 1px solid #dfe9e7;
  background: #173f47;
}
.realtime-decision-loop > header span { color: #87cfc1; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.realtime-decision-loop > header strong { color: #fff; font: 800 11px/1.35 ui-monospace, Consolas, monospace; }
.realtime-decision-loop > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.realtime-decision-loop article {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 8px;
  min-width: 0;
  padding: 11px 13px;
  border-right: 1px solid #e5eceb;
  background: #fff;
}
.realtime-decision-loop article:last-child { border-right: 0; }
.realtime-decision-loop article::after { content: ""; position: absolute; top: 50%; right: -5px; z-index: 2; width: 8px; height: 8px; border-top: 1px solid #aabdbb; border-right: 1px solid #aabdbb; background: #fff; transform: translateY(-50%) rotate(45deg); }
.realtime-decision-loop article:last-child::after { display: none; }
.realtime-decision-loop article > i { grid-row: 1 / 3; align-self: center; color: #91a2a3; font: 800 10px/1 ui-monospace, Consolas, monospace; font-style: normal; }
.realtime-decision-loop article > span { overflow: hidden; color: #5c7479; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.realtime-decision-loop article > strong { grid-row: 1 / 3; grid-column: 3; align-self: center; color: #294d53; font: 800 22px/1 ui-monospace, Consolas, monospace; }
.realtime-decision-loop article > small { overflow: hidden; margin-top: 4px; color: #8a999b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.realtime-decision-loop article.tone-active { box-shadow: inset 0 3px #2b9284; }
.realtime-decision-loop article.tone-positive { box-shadow: inset 0 3px #1b8b68; background: #f6fbf9; }
.realtime-decision-loop article.tone-warning { box-shadow: inset 0 3px #d3a245; background: #fffaf2; }
.realtime-decision-loop article.tone-danger { box-shadow: inset 0 3px #bd5f6a; background: #fff7f8; }

body[data-view="realtime"] .realtime-table { min-width: 1800px; }
body[data-view="realtime"] .realtime-table th:nth-child(1) { width: 120px; }
body[data-view="realtime"] .realtime-table th:nth-child(2) { width: 94px; }
body[data-view="realtime"] .realtime-table th:nth-child(3) { width: 220px; }
body[data-view="realtime"] .realtime-table th:nth-child(4) { width: 235px; }
body[data-view="realtime"] .realtime-table th:nth-child(5) { width: 190px; }
body[data-view="realtime"] .realtime-table th:nth-child(6) { width: 185px; }
body[data-view="realtime"] .realtime-table th:nth-child(7) { width: 170px; }
body[data-view="realtime"] .realtime-table th:nth-child(8) { width: 150px; }
body[data-view="realtime"] .realtime-table th:nth-child(9) { width: 245px; }
body[data-view="realtime"] .realtime-table th:nth-child(10) { width: 125px; }
body[data-view="realtime"] .realtime-table td { height: 104px; }

.realtime-keyword-cell > em {
  display: inline-flex;
  max-width: 100%;
  margin-top: 7px;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid #d7e2e0;
  border-radius: 4px;
  background: #f4f7f6;
  color: #667c7f;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.realtime-keyword-cell > em.tone-positive { border-color: #b9ddd4; background: #edf8f4; color: #167765; }
.realtime-keyword-cell > em.tone-warning { border-color: #ead8b4; background: #fff8ea; color: #8e691d; }
.realtime-keyword-cell > em.tone-danger { border-color: #ebcbd0; background: #fff2f4; color: #aa5360; }

body[data-view="realtime"] .realtime-intent-cell { min-width: 190px; padding: 8px !important; }
body[data-view="realtime"] .realtime-intent-meter {
  display: grid;
  grid-template-rows: auto 26px auto;
  align-content: center;
  min-width: 174px;
  min-height: 88px;
  padding: 8px 9px;
  border: 1px solid #dce7e5;
  border-radius: 6px;
  background: #fbfdfc;
}
body[data-view="realtime"] .realtime-intent-track {
  position: relative;
  height: 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--intent-color) 22%, transparent);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.2)), var(--intent-track);
  box-shadow: inset 0 2px 4px rgba(26,69,75,.12), inset 0 -1px 0 rgba(255,255,255,.76);
  isolation: isolate;
}
.realtime-intent-liquid {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--intent-color);
  appearance: none;
  -webkit-appearance: none;
}
.realtime-intent-liquid::-webkit-progress-bar { border-radius: inherit; background: transparent; }
.realtime-intent-liquid::-webkit-progress-value {
  border-radius: inherit;
  background: radial-gradient(circle at 8px 4px, rgba(255,255,255,.7) 0 1px, transparent 1.5px) 0 0 / 16px 10px, linear-gradient(90deg, color-mix(in srgb, var(--intent-color) 62%, #fff), var(--intent-color));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 4px 0 12px color-mix(in srgb, var(--intent-color) 35%, transparent);
  animation: ai-intent-liquid-flow 2.8s linear infinite;
}
.realtime-intent-liquid::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--intent-color) 62%, #fff), var(--intent-color)); }
body[data-view="realtime"] .realtime-intent-track > strong {
  position: absolute;
  z-index: 3;
  inset: 3px 50% auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 34px;
  height: 18px;
  margin: 0 !important;
  padding: 0 5px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: color-mix(in srgb, var(--intent-color) 55%, #263f45) !important;
  font: 850 10px/14px Consolas, ui-monospace, monospace !important;
  pointer-events: none;
}
body[data-view="realtime"] .realtime-intent-track > strong small { margin: 0 !important; color: inherit !important; font: 800 7px/1 Consolas, ui-monospace, monospace !important; }
.realtime-keyword-decision {
  display: block;
  min-height: 17px;
  margin-top: 7px !important;
  overflow: hidden;
  color: #667d80 !important;
  font-size: 8px !important;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.realtime-keyword-decision b { margin-right: 4px; color: #8b9b9d; font-size: 7px; }
.realtime-keyword-decision.tone-positive { color: #167765 !important; }
.realtime-keyword-decision.tone-warning { color: #8e691d !important; }
.realtime-keyword-decision.tone-danger { color: #aa5360 !important; }
@keyframes ai-intent-liquid-flow { to { background-position: 16px 0, 0 0; } }

body[data-view="realtime"] .realtime-action-button { min-height: 84px; grid-template-rows: auto auto auto auto; gap: 3px; }
body[data-view="realtime"] .realtime-action-button > span { font-size: 8px !important; }
body[data-view="realtime"] .realtime-action-button > strong { color: #244f55 !important; font-size: 11px !important; }
body[data-view="realtime"] .realtime-action-button > em { overflow: hidden; color: #567175; font-size: 8px; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
body[data-view="realtime"] .realtime-action-button > small { font-size: 8px !important; }

.realtime-loop-cell { padding: 8px !important; }
.realtime-loop-cell > div { display: grid; align-content: center; min-height: 82px; padding: 8px 9px; border: 1px solid #dbe5e3; border-left: 3px solid #92aaa7; border-radius: 5px; background: #fafcfc; }
.realtime-loop-cell span { margin: 0 !important; color: #789093 !important; font-size: 8px !important; font-weight: 800; }
.realtime-loop-cell strong { margin-top: 5px; color: #3b5d62 !important; font-size: 9px !important; line-height: 1.4; white-space: normal !important; }
.realtime-loop-cell small { margin-top: 6px !important; color: #879597 !important; }
.realtime-loop-cell .tone-positive { border-left-color: #278c76; background: #f1faf7; }
.realtime-loop-cell .tone-warning { border-left-color: #d0a146; background: #fffaf1; }
.realtime-loop-cell .tone-danger { border-left-color: #bd5f6a; background: #fff6f7; }

.realtime-cost-region-cell > span { color: #557379 !important; font-weight: 700; }
.realtime-region-cell { min-width: 0; }
.realtime-region-cell > span { display: block; overflow-wrap: anywhere; }
.realtime-region-cell > small { display: block; line-height: 1.35; }
.realtime-region-cell.region-ambiguous { border-left: 3px solid #c8933e !important; background: #fffaf1 !important; }
.realtime-region-cell.region-ambiguous > span { color: #8d641b !important; }
.realtime-region-cell.region-ambiguous > small { color: #a2762e !important; }
.realtime-region-cell.region-pending > span { color: #71878d !important; }
.realtime-performance-cell { display: grid; grid-template-rows: repeat(3, 1fr); gap: 3px; }
.realtime-performance-cell > span { display: grid !important; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; gap: 5px; margin: 0 !important; }
.realtime-performance-cell b { color: #294f56; font: 800 11px/1 ui-monospace, Consolas, monospace; }
.realtime-performance-cell small { margin: 0 !important; color: #809295 !important; }

.realtime-intent-objects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 0; }
.realtime-intent-objects > article { min-width: 0; padding: 12px 13px; border: 1px solid #dfe8e6; border-top: 3px solid #4f86c6; border-radius: 6px; background: #fbfcfc; }
.realtime-intent-objects > article.tone-positive { border-top-color: #278c76; background: #f3faf7; }
.realtime-intent-objects > article.tone-warning { border-top-color: #d0a146; background: #fffaf2; }
.realtime-intent-objects > article.tone-danger { border-top-color: #bd5f6a; background: #fff6f7; }
.realtime-intent-objects header { display: flex; grid-template-columns: none; align-items: center; justify-content: space-between; gap: 8px; padding: 0; border: 0; background: transparent; }
.realtime-intent-objects header span { color: #73888b; font-size: 8px; font-weight: 800; }
.realtime-intent-objects header b { color: #31585e; font-size: 10px; }
.realtime-intent-objects > article > strong { display: block; margin-top: 7px; overflow: hidden; color: #1f444b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.realtime-intent-objects article > div { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #e1e9e7; }
.realtime-intent-objects article > div i { display: block; height: 100%; background: #2b9284; }
.realtime-intent-objects footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.realtime-intent-objects footer span,.realtime-intent-objects footer small { overflow: hidden; color: #6c8185; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1120px) {
  .realtime-decision-loop { grid-template-columns: 125px minmax(0, 1fr); }
  .realtime-decision-loop article { grid-template-columns: 22px minmax(0, 1fr) auto; padding-inline: 9px; }
}

@media (max-width: 760px) {
  .realtime-decision-filters { overflow-x: auto; scrollbar-width: none; }
  .realtime-decision-filters::-webkit-scrollbar { display: none; }
  .realtime-decision-filters button { flex: 0 0 auto; }
  .realtime-decision-loop { display: block; }
  .realtime-decision-loop > header { border-right: 0; }
  .realtime-decision-loop > div { display: flex; overflow-x: auto; scrollbar-width: none; }
  .realtime-decision-loop article { flex: 0 0 178px; min-height: 68px; }
  .realtime-intent-objects { grid-template-columns: 1fr; padding: 10px 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .realtime-intent-liquid::-webkit-progress-value { animation: none; }
}

/* 2026-08-23 · The live tape stays inside the page width; no bottom drag bar. */
body[data-view="realtime"] .realtime-table-shell {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body[data-view="realtime"] .realtime-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

body[data-view="realtime"] .realtime-table th,
body[data-view="realtime"] .realtime-table td {
  box-sizing: border-box;
  min-width: 0;
}

body[data-view="realtime"] .realtime-table th {
  padding: 0 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-view="realtime"] .realtime-table th:nth-child(1) { width: 8%; }
body[data-view="realtime"] .realtime-table th:nth-child(2) { width: 6%; }
body[data-view="realtime"] .realtime-table th:nth-child(3) { width: 10%; }
body[data-view="realtime"] .realtime-table th:nth-child(4) { width: 11%; }
body[data-view="realtime"] .realtime-table th:nth-child(5) { width: 10%; }
body[data-view="realtime"] .realtime-table th:nth-child(6) { width: 10%; }
body[data-view="realtime"] .realtime-table th:nth-child(7) { width: 10%; }
body[data-view="realtime"] .realtime-table th:nth-child(8) { width: 8%; }
body[data-view="realtime"] .realtime-table th:nth-child(9) { width: 12%; }
body[data-view="realtime"] .realtime-table th:nth-child(10) { width: 7%; }
body[data-view="realtime"] .realtime-table th:nth-child(11) { width: 8%; }
body[data-view="realtime"] .realtime-table th.realtime-performance-heading {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

body[data-view="realtime"] .realtime-table td {
  height: auto;
  padding: 9px 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-view="realtime"] .realtime-table td > strong,
body[data-view="realtime"] .realtime-table td > span,
body[data-view="realtime"] .realtime-table td > small,
body[data-view="realtime"] .realtime-table td > time,
body[data-view="realtime"] .realtime-table td > em {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-view="realtime"] .realtime-intent-cell,
body[data-view="realtime"] .realtime-click-evidence-cell {
  min-width: 0;
}
body[data-view="realtime"] .realtime-intent-meter { min-width: 0; }
body[data-view="realtime"] .realtime-action-button { min-width: 0; }
body[data-view="realtime"] .realtime-performance-cell > span { min-width: 0; }
body[data-view="realtime"] .realtime-click-evidence {
  display: flex;
  height: 68px;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}
body[data-view="realtime"] .realtime-click-evidence > strong,
body[data-view="realtime"] .realtime-click-evidence > span,
body[data-view="realtime"] .realtime-click-evidence > small,
body[data-view="realtime"] .realtime-click-evidence > em {
  display: block;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.2;
}

@media (max-width: 760px) {
  body[data-view="realtime"] .realtime-table-shell {
    max-height: none;
    overflow: visible;
  }

  body[data-view="realtime"] .realtime-table,
  body[data-view="realtime"] .realtime-table thead,
  body[data-view="realtime"] .realtime-table tbody,
  body[data-view="realtime"] .realtime-table tr,
  body[data-view="realtime"] .realtime-table td {
    display: block;
    width: 100%;
  }

  body[data-view="realtime"] .realtime-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-view="realtime"] .realtime-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 8px;
    padding: 5px;
    border: 1px solid #dce8e7;
    border-radius: 8px;
    background: #edf4f3;
  }

  body[data-view="realtime"] .realtime-table tbody td {
    display: block;
    min-height: 0;
    padding: 8px;
    border: 0;
    background: #fff;
  }

  body[data-view="realtime"] .realtime-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: #849698;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;
  }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(1)::before { content: "真实点击时间"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(2)::before { content: "账户"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(3)::before { content: "用户搜索词"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(4)::before { content: "关键词 / 触发模式"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(5)::before { content: "AI委案智决"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(6)::before { content: "建议执行动作"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(7)::before { content: "正向承接动作"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(8)::before { content: "广告回放"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(9)::before { content: "花费 / 地域"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(10)::before { content: "计划 / 单元"; }
  body[data-view="realtime"] .realtime-table tbody td:nth-child(11)::before { content: "展现 / 点击 / 线索"; }

  body[data-view="realtime"] .realtime-table tbody td[colspan] {
    grid-column: 1 / -1;
  }
  body[data-view="realtime"] .realtime-table tbody td[colspan]::before { display: none; }
  body[data-view="realtime"] .realtime-table .realtime-intent-meter,
  body[data-view="realtime"] .realtime-table .realtime-action-button { width: 100%; }
  body[data-view="realtime"] .realtime-table .realtime-performance-cell > span {
    display: grid !important;
  }
}

/* 2026-08-23 · Compact the realtime tape without clipping long actions. */
body[data-view="realtime"] .realtime-intent-meter {
  min-height: 68px;
  padding: 5px 7px;
}
body[data-view="realtime"] .realtime-intent-head {
  min-height: 12px;
  margin-bottom: 3px;
}
body[data-view="realtime"] .realtime-intent-track { height: 22px; }
body[data-view="realtime"] .realtime-keyword-decision {
  min-height: 14px;
  margin-top: 4px !important;
}
body[data-view="realtime"] .realtime-action-button,
body[data-view="realtime"] .realtime-action-static {
  min-height: 68px;
  gap: 2px;
  padding: 6px 7px;
}
body[data-view="realtime"] .realtime-action-static > strong,
body[data-view="realtime"] .realtime-action-static > small,
body[data-view="realtime"] .realtime-action-static > em {
  line-height: 1.25;
}

/* 2026-08-23 · Give 展现 / 点击 / 线索 three independent signal rails. */
body[data-view="realtime"] .realtime-performance-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  padding: 3px 0;
}
body[data-view="realtime"] .realtime-performance-cell > span {
  flex: 0 0 24px;
  min-height: 24px;
  box-sizing: border-box;
  padding: 3px 5px;
  border: 1px solid #e2ecea;
  border-radius: 4px;
  background: #fbfdfc;
  line-height: 1.15;
}
body[data-view="realtime"] .realtime-performance-cell > span + span { margin-top: 0 !important; }

/* 2026-08-24 · Positive receipt command desk. */
body[data-view="positive"] .layout {
  max-width: none;
  padding: 0;
  background: #f5f7f6;
}
body[data-view="positive"] .positive-workspace {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0 18px 28px;
  color: #22383d;
}
.positive-workspace *, .positive-workspace *::before, .positive-workspace *::after { box-sizing: border-box; letter-spacing: 0; }
.positive-command-head {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 -18px;
  padding: 14px 24px;
  border-bottom: 1px solid #dce5e3;
  background: #fff;
}
.positive-command-head > div { min-width: 0; }
.positive-command-head span, .positive-replay-zone > header span {
  color: #16826f;
  font-size: 9px;
  font-weight: 800;
}
.positive-command-head h2 { margin: 3px 0 0; color: #203b42; font-size: 21px; }
.positive-command-head p { margin: 3px 0 0; overflow-wrap: anywhere; color: #75888b; font-size: 10px; }
.positive-overview {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #d7e2df;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(29, 147, 122, .11), transparent 34%),
    linear-gradient(135deg, #f9fcfb, #fff);
  box-shadow: 0 8px 24px rgba(40, 70, 72, .05);
}
.positive-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.positive-overview-head > div { min-width: 0; }
.positive-overview-head span { color: #16826f; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.positive-overview-head h3 { margin: 4px 0 0; color: #203b42; font-size: 17px; }
.positive-overview-head p { max-width: 720px; margin: 4px 0 0; color: #708487; font-size: 9px; line-height: 1.55; }
.positive-overview-head > small { flex: 0 0 auto; margin-top: 3px; color: #829395; font-size: 8px; text-align: right; }
.positive-overview-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.positive-overview-kpis article { display: flex; min-width: 0; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #e0e9e7; border-radius: 7px; background: rgba(255, 255, 255, .88); }
.positive-overview-kpis article > i { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: #edf5f2; color: #1a7b6a; font-size: 13px; font-style: normal; font-weight: 850; }
.positive-overview-kpis article.tone-blue > i { background: #eef4fb; color: #356da8; }
.positive-overview-kpis article.tone-green > i { background: #eaf7ef; color: #2d8a58; }
.positive-overview-kpis article.tone-violet > i { background: #f0edfb; color: #7162ae; }
.positive-overview-kpis article.tone-gold > i { background: #fff5e6; color: #a67532; }
.positive-overview-kpis article > div { min-width: 0; }
.positive-overview-kpis span, .positive-overview-kpis strong, .positive-overview-kpis small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.positive-overview-kpis span { color: #7b8d90; font-size: 8px; }
.positive-overview-kpis strong { margin-top: 4px; color: #29474d; font-size: 16px; line-height: 1; }
.positive-overview-kpis small { margin-top: 5px; color: #879698; font-size: 7px; }
.positive-account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 8px; margin-top: 10px; }
.positive-account-card { display: block; min-width: 0; padding: 11px; border: 1px solid #dce7e4; border-top: 3px solid #8eb9af; border-radius: 8px; outline: 0; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.positive-account-card:hover, .positive-account-card:focus-visible { border-color: #52a18f; box-shadow: 0 7px 18px rgba(31, 118, 99, .12); transform: translateY(-1px); }
.positive-account-card.positive { border-top-color: #218b73; }
.positive-account-card.negative, .positive-account-card.warning { border-top-color: #bc7a45; }
.positive-account-card header, .positive-account-card footer, .positive-account-coverage > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.positive-account-card header > div { min-width: 0; }
.positive-account-card header span, .positive-account-card header small, .positive-account-card header em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.positive-account-card header span { color: #27454b; font-size: 11px; font-weight: 800; }
.positive-account-card header small { margin-top: 3px; color: #92a0a2; font-size: 7px; }
.positive-account-card header em { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 4px 6px; border-radius: 4px; background: #edf6f3; color: #187765; font-size: 7px; font-style: normal; font-weight: 800; }
.positive-account-card header em.offline { background: #fff2e8; color: #ad6836; }
.positive-account-card header em i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.positive-account-card-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 11px; }
.positive-account-card-metrics > div { min-width: 0; padding: 6px 5px; border-radius: 5px; background: #f7faf9; }
.positive-account-card-metrics strong, .positive-account-card-metrics small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.positive-account-card-metrics strong { color: #31565a; font-size: 13px; }
.positive-account-card-metrics small { margin-top: 3px; color: #89999a; font-size: 7px; }
.positive-account-coverage { margin-top: 10px; }
.positive-account-coverage > span { align-items: baseline; }
.positive-account-coverage b { color: #557276; font-size: 8px; }
.positive-account-coverage small { color: #8a9b9d; font-size: 7px; }
.positive-account-coverage > i { display: block; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 5px; background: #e8efed; }
.positive-account-coverage > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5ab39f, #1d846e); }
.positive-account-card footer { align-items: flex-start; margin-top: 10px; padding-top: 8px; border-top: 1px solid #edf1f0; }
.positive-account-card footer > span { min-width: 0; }
.positive-account-card footer b, .positive-account-card footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.positive-account-card footer b { color: #34585c; font-size: 9px; }
.positive-account-card footer small { margin-top: 3px; color: #8a999b; font-size: 7px; }
.positive-account-error { margin: 8px 0 0; color: #ad5960; font-size: 8px; line-height: 1.4; }
.positive-account-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(220px, .8fr) minmax(180px, .75fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid #d7e2df;
  border-left: 3px solid #237f70;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(40, 70, 72, .04);
}
.positive-account-picker-copy, .positive-account-select, .positive-account-meta, .positive-workflow-steps { min-width: 0; }
.positive-account-picker-copy span { display: block; color: #16826f; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.positive-account-picker-copy strong { display: block; margin-top: 3px; color: #29484d; font-size: 12px; }
.positive-account-picker-copy small { display: block; margin-top: 3px; color: #839396; font-size: 8px; }
.positive-account-select { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.positive-account-select > span { color: #6c8284; font-size: 9px; font-weight: 750; }
.positive-account-select select { width: 100%; min-width: 0; height: 34px; padding: 0 28px 0 10px; border: 1px solid #bcd2cd; border-radius: 5px; outline: 0; background: #f9fcfb; color: #2b5d56; font-size: 10px; font-weight: 750; }
.positive-account-select select:focus { border-color: #3f9683; box-shadow: 0 0 0 2px rgba(48, 143, 123, .12); }
.positive-account-meta { overflow-wrap: anywhere; color: #587775; font-size: 9px; line-height: 1.45; }
.positive-workflow-steps { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.positive-workflow-steps b { padding: 5px 7px; border-radius: 4px; background: #eef3f1; color: #718486; font-size: 8px; font-weight: 750; }
.positive-workflow-steps b.active { background: #e5f5f0; color: #167766; }
.positive-workflow-steps i { color: #a0b0ad; font-size: 12px; font-style: normal; }
.positive-icon-button {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #cbd9d6;
  border-radius: 6px;
  background: #fff;
  color: #2a6f65;
  font-size: 20px;
  cursor: pointer;
}
.positive-icon-button:hover { border-color: #77a99f; background: #f0f8f6; }
.positive-builder {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(620px, 1fr) minmax(270px, 320px);
  min-height: 610px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d7e1df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(40, 70, 72, .06);
}
.positive-tree-pane, .positive-planner-pane, .positive-selected-pane { min-width: 0; }
.positive-tree-pane, .positive-selected-pane { display: flex; flex-direction: column; background: #f9fbfa; }
.positive-tree-pane { border-right: 1px solid #dfe7e5; }
.positive-selected-pane { border-left: 1px solid #dfe7e5; }
.positive-tree-pane > header, .positive-selected-pane > header, .positive-planner-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #e3eae8;
  background: #fff;
}
.positive-tree-pane > header span, .positive-selected-pane > header span, .positive-planner-head span,
.positive-seed-meta span, .positive-candidate-toolbar label > span {
  display: block;
  color: #7b8d90;
  font-size: 9px;
  font-weight: 700;
}
.positive-tree-pane > header strong, .positive-planner-head strong, .positive-selected-pane > header strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #28464c;
  font-size: 12px;
}
.positive-tree-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #dfe7e5;
  background: #f4f8f7;
}
.positive-tree-search span { color: #71878a; font-size: 9px; font-weight: 750; }
.positive-tree-search input {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #cbd9d6;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: #29464b;
  font-size: 10px;
}
.positive-tree-search input:focus { border-color: #4d9a89; box-shadow: 0 0 0 2px rgba(48, 143, 123, .12); }
.positive-structure-tree { flex: 1 1 auto; min-height: 0; max-height: 650px; overflow: auto; scrollbar-width: thin; scrollbar-color: #b5ccc7 #edf3f2; }
.positive-account-node, .positive-campaign-node { border: 0; border-bottom: 1px solid #e5ecea; }
.positive-account-node > summary, .positive-campaign-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 11px 12px;
  list-style: none;
  cursor: pointer;
}
.positive-account-node > summary::-webkit-details-marker { display: none; }
.positive-account-node > summary span, .positive-campaign-toggle span {
  overflow: hidden;
  color: #28444a;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.positive-account-node > summary strong { color: #a06c25; font-size: 10px; }
.positive-account-node > summary small, .positive-campaign-toggle small { grid-column: 1 / -1; color: #849598; font-size: 8px; }
.positive-account-node > div { border-top: 1px solid #edf1f0; background: #f4f8f7; }
.positive-campaign-node { margin-left: 8px; border-left: 2px solid #d9e5e2; }
.positive-campaign-toggle {
  position: relative;
  width: 100%;
  padding: 9px 10px 9px 26px;
  border: 0;
  background: transparent;
  text-align: left;
}
.positive-campaign-toggle:hover { background: #edf5f3; }
.positive-campaign-toggle i { position: absolute; top: 10px; left: 10px; color: #6f8f89; font-size: 14px; font-style: normal; transition: transform .15s ease; }
.positive-campaign-node.expanded > .positive-campaign-toggle i { transform: rotate(90deg); }
.positive-campaign-node > div { padding: 0 7px 7px 11px; }
.positive-unit-button {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.positive-unit-button span, .positive-unit-button small { display: block; overflow-wrap: anywhere; }
.positive-unit-button span { color: #466166; font-size: 10px; font-weight: 700; }
.positive-unit-button small { margin-top: 3px; color: #8b9a9c; font-size: 8px; }
.positive-unit-button:hover { border-color: #bed5d0; background: #fff; }
.positive-unit-button.active { border-color: #5ba493; background: #eaf6f2; box-shadow: inset 3px 0 #18836f; }
.positive-planner-pane { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; background: #fff; }
.positive-planner-head > div { min-width: 0; }
.positive-planner-head strong { overflow-wrap: anywhere; }
.positive-primary-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #177b69;
  border-radius: 6px;
  background: #177b69;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.positive-primary-button:hover:not(:disabled) { border-color: #0d6455; background: #0d6455; }
.positive-primary-button:disabled { border-color: #cad6d3; background: #dfe7e5; color: #91a09d; cursor: not-allowed; }
.positive-seed-zone { padding: 10px 12px 12px; border-bottom: 1px solid #e4eae9; background: #fbfcfc; }
.positive-seed-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.positive-seed-meta strong { color: #44706a; font-size: 10px; }
.positive-seed-list { min-height: 92px; margin-top: 8px; }
.positive-auto-seed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 10px 18px;
  min-height: 84px;
  padding: 11px 13px;
  border: 1px solid #cfe1dd;
  border-left: 4px solid #21836f;
  border-radius: 6px;
  background: #fff;
}
.positive-auto-seed > div { min-width: 0; }
.positive-auto-seed span, .positive-auto-seed strong, .positive-auto-seed small { display: block; overflow-wrap: anywhere; }
.positive-auto-seed > div > span { color: #72898b; font-size: 9px; font-weight: 750; }
.positive-auto-seed > div > strong { margin-top: 4px; color: #24474c; font-size: 15px; }
.positive-auto-seed > div > small { margin-top: 4px; color: #7c9193; font-size: 9px; line-height: 1.45; }
.positive-purity { padding-left: 16px; border-left: 1px solid #e0e8e6; }
.positive-purity > strong { color: #167965 !important; font-size: 18px !important; }
.positive-auto-seed footer { display: flex; grid-column: 1 / -1; gap: 7px 14px; flex-wrap: wrap; color: #567277; font-size: 9px; }
.positive-seed-options { min-width: 0; }
.positive-seed-options > span { display: block; color: #72898b; font-size: 9px; font-weight: 750; }
.positive-seed-option { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 8px; border: 1px solid #e0eae7; border-radius: 5px; background: #fbfdfc; cursor: pointer; }
.positive-seed-option.selected { border-color: #6bb09f; background: #edf8f4; box-shadow: inset 3px 0 #20846f; }
.positive-seed-option input { width: 14px; height: 14px; accent-color: #177b69; }
.positive-seed-option span, .positive-seed-option strong, .positive-seed-option small { display: block; min-width: 0; overflow-wrap: anywhere; }
.positive-seed-option strong { color: #28464c; font-size: 11px; }
.positive-seed-option small { margin-top: 2px; color: #839396; font-size: 8px; }
.positive-seed-option em { padding: 3px 5px; border-radius: 4px; background: #e7f3f0; color: #277567; font-size: 8px; font-style: normal; white-space: nowrap; }
.positive-manual-seed { display: grid; grid-template-columns: minmax(120px, auto) minmax(190px, 1fr); align-items: center; gap: 5px 10px; margin-top: 8px; padding: 8px; border: 1px dashed #bfcfcb; border-radius: 5px; background: #f9fbfb; }
.positive-manual-seed.selected { border-style: solid; border-color: #6bb09f; background: #edf8f4; box-shadow: inset 3px 0 #20846f; }
.positive-manual-seed > div:first-child strong { color: #365c59; font-size: 10px; }
.positive-manual-seed > div:first-child small { margin-top: 2px; color: #7e9190; font-size: 8px; }
.positive-manual-seed-control { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 6px; }
.positive-manual-seed-control input { min-width: 0; height: 30px; padding: 0 8px; border: 1px solid #cbd9d5; border-radius: 4px; background: #fff; color: #28464c; font-size: 10px; outline: none; }
.positive-manual-seed-control input:focus { border-color: #4c9b89; box-shadow: 0 0 0 2px rgba(33, 131, 111, .1); }
.positive-manual-seed-control button { min-height: 30px; padding: 0 9px; border: 1px solid #4c9b89; border-radius: 4px; background: #fff; color: #267565; font-size: 9px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.positive-manual-seed-control button:hover:not(:disabled) { background: #e5f4ef; }
.positive-manual-seed-control button:disabled { border-color: #d7e0de; color: #a0adaa; background: #f3f6f5; cursor: not-allowed; }
.positive-manual-seed > small { grid-column: 2; color: #81918f; font-size: 8px; text-align: right; }
.positive-unit-keywords { grid-column: 1 / -1; margin-top: 8px; border-top: 1px dashed #d6e3df; padding-top: 7px; }
.positive-unit-keywords summary { color: #39786d; font-size: 11px; line-height: 1.4; font-weight: 750; cursor: pointer; }
.positive-unit-keywords > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; max-height: 210px; overflow: auto; margin-top: 7px; padding: 6px; border: 1px solid #e1eae8; border-radius: 5px; background: #f8fbfa; }
.positive-unit-keyword { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-height: 24px; padding: 5px 6px; border-radius: 3px; background: #fff; }
.positive-unit-keyword b { min-width: 0; overflow: hidden; color: #456368; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.positive-unit-keyword small { flex: 0 0 auto; color: #37816f; font-size: 9px; line-height: 1.35; }
.positive-unit-keyword.paused b, .positive-unit-keyword.paused small { color: #9a8b76; }
.positive-inline-empty { display: flex; align-items: center; color: #8a9a9c; font-size: 9px; }
.positive-candidate-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-bottom: 1px solid #dfe6e5; }
.positive-candidate-toolbar label { display: grid; grid-template-columns: auto minmax(150px, 260px); align-items: center; gap: 8px; }
.positive-candidate-toolbar input {
  width: 100%;
  height: 32px;
  border: 1px solid #cfdbd8;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
  color: #2e484e;
  font-size: 10px;
}
.positive-candidate-toolbar > div { min-width: 0; text-align: right; }
.positive-candidate-toolbar > div strong, .positive-candidate-toolbar > div small { display: block; }
.positive-candidate-toolbar > div strong { color: #365c59; font-size: 11px; }
.positive-candidate-toolbar > div small { margin-top: 3px; color: #7f9092; font-size: 9px; }
.positive-secondary-button { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid #c6d7d2; border-radius: 5px; background: #f7fbfa; color: #347266; font-size: 9px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.positive-secondary-button:hover:not(:disabled) { border-color: #6aa99b; background: #edf7f4; }
.positive-secondary-button:disabled { color: #a3b0ae; border-color: #dbe4e1; background: #f4f7f6; cursor: not-allowed; }
.positive-candidate-shell { min-height: 0; max-height: 683px; overflow: auto; scrollbar-width: thin; scrollbar-color: #b8cbc8 #eef3f2; }
.positive-candidate-table { width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.positive-candidate-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 38px;
  padding: 0 8px;
  border-bottom: 1px solid #cfddda;
  background: #eef4f2;
  color: #526b70;
  font-size: 11px;
  text-align: left;
}
.positive-candidate-table th:nth-child(1) { width: 56px; text-align: center; }
.positive-candidate-table th:nth-child(2) { width: 330px; }
.positive-candidate-table th:nth-child(3) { width: 140px; }
.positive-candidate-table th:nth-child(4) { width: 145px; }
.positive-candidate-table th:nth-child(5) { width: 130px; }
.positive-candidate-table td { min-height: 76px; padding: 10px; border-bottom: 1px solid #e8eeec; color: #526d72; font-size: 11px; vertical-align: middle; }
.positive-candidate-table tr.selected td { background: #edf8f4; }
.positive-candidate-table tr.existing td { background: #fafbfb; opacity: .68; }
.positive-candidate-table td:first-child { text-align: center; }
.positive-candidate-table td > strong, .positive-candidate-table td > small { display: block; overflow-wrap: anywhere; }
.positive-candidate-table td > strong { color: #28464d; font-size: 12px; }
.positive-candidate-table td > small { margin-top: 4px; color: #7f9294; font-size: 9px; line-height: 1.45; }
.positive-pick-button {
  width: 27px;
  height: 27px;
  border: 1px solid #92bcb3;
  border-radius: 50%;
  background: #fff;
  color: #167b69;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.positive-pick-button[aria-pressed="true"] { border-color: #167b69; background: #167b69; color: #fff; }
.positive-pick-button:disabled { border-color: #d5dfdd; color: #9aabaa; cursor: not-allowed; }
.positive-core-input { display: grid; grid-template-columns: 44px minmax(82px, 118px) minmax(0, 1fr); align-items: center; gap: 6px; margin-top: 6px; }
.positive-core-input span { color: #768c8f; font-size: 9px; }
.positive-core-input input { min-width: 0; height: 28px; border: 1px solid #c9d9d5; border-radius: 4px; padding: 0 7px; color: #2e5c54; font-size: 11px; }
.positive-core-input small { overflow-wrap: anywhere; color: #16806d; font-size: 9px; }
.positive-core-input.invalid input { border-color: #c87379; background: #fff5f5; }
.positive-core-input.invalid small { color: #b4565e; }
.positive-competition, .positive-decision { display: inline-flex; min-height: 25px; align-items: center; border-radius: 4px; padding: 0 8px; font-size: 10px; font-weight: 750; }
.positive-competition.level-1 { background: #fff0ef; color: #a65055; }
.positive-competition.level-2 { background: #fff7e8; color: #966d28; }
.positive-competition.level-3 { background: #edf7f4; color: #2a7769; }
.positive-decision { background: #eef3f6; color: #526b78; }
.positive-decision.action-keep_core { background: #e8f6f1; color: #177260; }
.positive-decision.action-review { background: #fff5e6; color: #936a28; }
.positive-pagination { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid #e1e8e6; background: #fafcfc; }
.positive-pagination button, .positive-replay-item footer nav button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #c9d8d5;
  border-radius: 5px;
  background: #fff;
  color: #315f58;
  font-size: 17px;
  cursor: pointer;
}
.positive-pagination button:disabled { color: #acb9b7; cursor: not-allowed; }
.positive-pagination span { min-width: 72px; color: #667a7e; font-size: 9px; text-align: center; }
.positive-selected-pane > header button {
  border: 0;
  background: transparent;
  color: #397369;
  font-size: 9px;
  cursor: pointer;
}
.positive-selected-pane > header button:disabled { color: #acb7b5; cursor: not-allowed; }
.positive-selected-list { flex: 1 1 auto; min-height: 0; max-height: 490px; overflow: auto; scrollbar-width: thin; }
.positive-selected-list article { display: grid; grid-template-columns: 20px minmax(0, 1fr) 24px; align-items: start; gap: 7px; padding: 10px; border-bottom: 1px solid #e4ebe9; background: #fff; }
.positive-selected-list article > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e8f3f0; color: #237267; font-size: 8px; }
.positive-selected-list article div { min-width: 0; }
.positive-selected-list article strong, .positive-selected-list article small { display: block; overflow-wrap: anywhere; }
.positive-selected-list article strong { color: #28464c; font-size: 10px; }
.positive-selected-list article small { margin-top: 4px; color: #829396; font-size: 8px; line-height: 1.45; }
.positive-selected-list article button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; background: transparent; color: #9a6668; font-size: 16px; cursor: pointer; }
.positive-selected-pane > footer { padding: 12px; border-top: 1px solid #dfe7e5; background: #fff; }
.positive-confirm { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 7px; color: #607579; font-size: 8px; line-height: 1.5; cursor: pointer; }
.positive-confirm input { width: 15px; height: 15px; accent-color: #167b69; }
.positive-selected-pane > footer .positive-primary-button { width: 100%; margin-top: 10px; }
.positive-selected-pane > footer > small { display: block; margin-top: 7px; overflow-wrap: anywhere; color: #879699; font-size: 8px; text-align: center; }
.positive-selected-pane > footer > small.error { color: #b14f59; }
.positive-empty-state { display: flex; min-height: 140px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 18px; text-align: center; }
.positive-empty-state.compact { min-height: 110px; }
.positive-empty-state strong { overflow-wrap: anywhere; color: #60777b; font-size: 11px; }
.positive-empty-state span { max-width: 420px; overflow-wrap: anywhere; color: #91a0a2; font-size: 9px; line-height: 1.5; }
.positive-empty-state.error strong, .positive-empty-state.error span { color: #a45159; }
.positive-creative-builder { margin-top: 16px; overflow: hidden; border: 1px solid #d7e1df; border-top: 3px solid #237f70; border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(40, 70, 72, .05); }
.positive-creative-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #e2eae8; background: #fbfdfc; }
.positive-creative-head > div:first-child { min-width: 0; }
.positive-creative-head span, .positive-creative-head strong, .positive-creative-head small { display: block; overflow-wrap: anywhere; }
.positive-creative-head span { color: #16826f; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.positive-creative-head strong { margin-top: 4px; color: #29484d; font-size: 13px; }
.positive-creative-head small { margin-top: 4px; color: #839396; font-size: 9px; }
.positive-creative-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.positive-creative-actions .positive-primary-button { min-height: 32px; }
.positive-creative-drafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; }
.positive-creative-drafts > .positive-empty-state { grid-column: 1 / -1; }
.positive-creative-card { min-width: 0; padding: 11px; border: 1px solid #dce8e5; border-radius: 6px; background: #fff; }
.positive-creative-card > header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.positive-creative-card > header span { color: #27776b; font-size: 10px; font-weight: 800; }
.positive-creative-card > header small { overflow: hidden; color: #8a999b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.positive-creative-card > label { display: block; margin-top: 8px; }
.positive-creative-card > label > span { display: flex; justify-content: space-between; gap: 6px; color: #637a7c; font-size: 9px; font-weight: 750; }
.positive-creative-card > label em { color: #8b9b9d; font-size: 8px; font-style: normal; font-weight: 500; }
.positive-creative-card input, .positive-creative-card textarea { box-sizing: border-box; width: 100%; margin-top: 4px; border: 1px solid #cbdad6; border-radius: 4px; outline: 0; padding: 6px 7px; background: #fbfdfc; color: #31575a; font: inherit; font-size: 10px; resize: vertical; }
.positive-creative-card input:focus, .positive-creative-card textarea:focus { border-color: #4c9d8a; box-shadow: 0 0 0 2px rgba(48, 143, 123, .1); }
.positive-creative-card input.invalid, .positive-creative-card textarea.invalid { border-color: #c87379; background: #fff5f5; }
.positive-creative-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px 12px; border-top: 1px solid #e2eae8; background: #fbfdfc; }
.positive-creative-foot .positive-confirm { flex: 0 1 auto; }
.positive-creative-foot > small { color: #819193; font-size: 8px; text-align: right; }
.positive-creative-foot > small.error { color: #b14f59; }
.positive-creative-head span { font-size: 10px; }
.positive-creative-head strong { font-size: 16px; }
.positive-creative-head small { font-size: 11px; line-height: 1.5; }
.positive-creative-card { padding: 13px; }
.positive-creative-card > header span { font-size: 11px; }
.positive-creative-card > header small { font-size: 10px; }
.positive-creative-card > label > span { font-size: 11px; }
.positive-creative-card > label em { font-size: 10px; }
.positive-creative-card input, .positive-creative-card textarea { padding: 8px 9px; font-size: 13px; line-height: 1.5; }
.positive-creative-card textarea { min-height: 62px; }
.positive-creative-foot .positive-confirm { font-size: 11px; }
.positive-creative-foot > small { font-size: 11px; line-height: 1.5; }
.positive-creative-pick { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; color: #1d786c !important; cursor: pointer; }
.positive-creative-pick input { width: 17px; height: 17px; margin: 0; accent-color: #1f806f; }
.positive-creative-pick span { color: #1d786c !important; font-size: 11px !important; }
.positive-creative-card.selected { border-color: #398f7c; background: #f5fbf8; box-shadow: 0 0 0 2px rgba(57, 143, 124, .1); }
.positive-creative-reference { margin: 0 0 10px; padding: 7px 8px; border-left: 3px solid #73b4a5; background: #f1f8f5; }
.positive-creative-reference span, .positive-creative-reference strong, .positive-creative-reference small { display: block; overflow-wrap: anywhere; }
.positive-creative-reference span { color: #4d8f83; font-size: 9px; font-weight: 800; }
.positive-creative-reference strong { margin-top: 2px; color: #376d66; font-size: 10px; }
.positive-creative-reference small { margin-top: 2px; color: #789491; font-size: 9px; }
.positive-creative-reference em { display: block; margin-top: 4px; overflow: hidden; color: #9a7870; font-size: 9px; font-style: normal; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.positive-creative-validation-error { display: block; margin-top: 8px; color: #ad555e; font-size: 10px; line-height: 1.4; }
.positive-creative-progress { grid-column: 1 / -1; padding: 28px 24px; border: 1px solid #cfe4dd; border-radius: 8px; background: linear-gradient(135deg, #f4fbf8, #fff); }
.positive-creative-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #236d62; }
.positive-creative-progress-head strong { font-size: 16px; }
.positive-creative-progress-head span { font-size: 20px; font-weight: 800; }
.positive-creative-progress-track { height: 10px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #dcebe6; }
.positive-creative-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2a907c, #69bea9); transition: width .45s ease; }
.positive-creative-progress p { margin: 12px 0 0; color: #4f7772; font-size: 13px; }
.positive-creative-progress small { display: block; margin-top: 6px; color: #819694; font-size: 11px; }
@media (max-width: 980px) {
  .positive-creative-drafts { grid-template-columns: 1fr; }
  .positive-creative-head, .positive-creative-foot { align-items: stretch; flex-direction: column; }
  .positive-creative-actions { justify-content: flex-start; }
  .positive-creative-foot > small { text-align: left; }
}

/* 展现区创意工作台：与点击区关键词树共用“计划 → 单元 → 编辑 → 提交”路径。 */
.creative-tree-editor { display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); min-height: 640px; border-top: 1px solid #dfe8e5; background: #f7fbfa; }
.creative-tree-pane { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #dfe8e5; background: #f9fbfa; }
.creative-tree-pane > header, .creative-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #e1e9e7; }
.creative-tree-pane > header span, .creative-editor-head span, .creative-asset-picker header span { display: block; color: #187767; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.creative-tree-pane > header strong, .creative-editor-head strong, .creative-asset-picker header strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #254b4e; font-size: 12px; }
.creative-tree-search { display: grid; gap: 5px; padding: 10px 12px; color: #718486; font-size: 10px; font-weight: 700; }
.creative-tree-search input { width: 100%; box-sizing: border-box; min-height: 31px; border: 1px solid #c8dbd5; border-radius: 5px; padding: 0 8px; background: #fff; color: #2e5554; font: inherit; outline: 0; }
.creative-tree-search input:focus { border-color: #398f7c; box-shadow: 0 0 0 2px rgba(57,143,124,.12); }
.creative-structure-tree { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 8px 12px; scrollbar-width: thin; }
.creative-campaign-node { border-bottom: 1px solid #e5ecea; }
.creative-campaign-toggle { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 5px; width: 100%; border: 0; padding: 10px 6px; background: transparent; color: #315d5b; text-align: left; cursor: pointer; }
.creative-campaign-toggle i { color: #4d9788; font-size: 17px; font-style: normal; transform: rotate(0deg); transition: transform .15s ease; }
.creative-campaign-node.expanded .creative-campaign-toggle i { transform: rotate(90deg); }
.creative-campaign-toggle span { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.creative-campaign-toggle small { color: #81928f; font-size: 9px; white-space: nowrap; }
.creative-campaign-node > div { display: grid; gap: 4px; padding: 0 0 8px 18px; }
.creative-unit-button { display: grid; gap: 3px; width: 100%; border: 1px solid transparent; border-radius: 4px; padding: 8px 8px; background: transparent; color: #416765; text-align: left; cursor: pointer; }
.creative-unit-button:hover { border-color: #c6ded6; background: #eff8f5; }
.creative-unit-button.active { border-color: #4a9b88; background: #e8f5f0; box-shadow: inset 3px 0 #398f7c; }
.creative-unit-button span { overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.creative-unit-button small { color: #819492; font-size: 8px; line-height: 1.3; }
.creative-inline-empty, .creative-empty-state { display: flex; flex-direction: column; gap: 4px; color: #879896; font-size: 10px; line-height: 1.45; }
.creative-empty-state { align-items: center; justify-content: center; min-height: 160px; padding: 20px; text-align: center; }
.creative-empty-state strong { color: #607a78; font-size: 12px; }
.creative-editor-pane { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.creative-editor-head { align-items: center; background: #fbfdfc; }
.creative-editor-head > div { min-width: 0; }
.creative-editor-head small { display: block; margin-top: 5px; color: #7e918f; font-size: 10px; line-height: 1.45; }
.creative-primary-button { min-height: 34px; border: 0; border-radius: 5px; padding: 0 14px; background: #1f806f; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.creative-primary-button:disabled { background: #cbd8d5; color: #71817f; cursor: not-allowed; }
.creative-draft-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 570px; overflow: auto; padding: 12px; background: #f7faf9; }
.creative-draft-editor > .creative-empty-state, .creative-draft-editor > .creative-generation-progress { grid-column: 1 / -1; }
.creative-draft-card { min-width: 0; padding: 11px; border: 1px solid #d9e6e2; border-radius: 6px; background: #fff; }
.creative-draft-card.selected { border-color: #3e9984; background: #f0faf6; box-shadow: 0 0 0 2px rgba(62,153,132,.1); }
.creative-draft-card.has-error { border-color: #dfafb2; }
.creative-draft-card > header { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 7px; margin-bottom: 8px; }
.creative-draft-card > header label { display: flex; align-items: center; gap: 5px; color: #1d786c; font-size: 10px; font-weight: 800; cursor: pointer; }
.creative-draft-card > header input { width: 15px; height: 15px; margin: 0; accent-color: #1f806f; }
.creative-draft-card > header strong { color: #2e5b58; font-size: 11px; }
.creative-draft-card > header small { min-width: 0; overflow: hidden; color: #829390; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.creative-draft-card > label { display: block; margin-top: 7px; }
.creative-draft-card > label > span { display: flex; justify-content: space-between; gap: 5px; color: #607a78; font-size: 10px; font-weight: 750; }
.creative-draft-card > label em { color: #8b9b9d; font-size: 9px; font-style: normal; font-weight: 500; }
.creative-draft-card input[type="text"], .creative-draft-card textarea { box-sizing: border-box; width: 100%; margin-top: 4px; border: 1px solid #cbdad6; border-radius: 4px; outline: 0; padding: 7px 8px; background: #fbfdfc; color: #31575a; font: inherit; font-size: 11px; line-height: 1.45; resize: vertical; }
.creative-draft-card textarea { min-height: 56px; }
.creative-draft-card input[type="text"]:focus, .creative-draft-card textarea:focus { border-color: #4c9d8a; box-shadow: 0 0 0 2px rgba(48,143,123,.1); }
.creative-draft-card input.invalid, .creative-draft-card textarea.invalid { border-color: #c87379; background: #fff5f5; }
.creative-validation-error { display: block; margin-top: 7px; color: #ad555e; font-size: 9px; line-height: 1.35; }
.creative-generation-progress { padding: 24px; border: 1px solid #cfe4dd; border-radius: 7px; background: linear-gradient(135deg,#f4fbf8,#fff); }
.creative-generation-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #236d62; }
.creative-generation-progress strong { font-size: 14px; }
.creative-generation-progress b { font-size: 19px; }
.creative-generation-progress > i { display: block; height: 9px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #dcebe6; }
.creative-generation-progress > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2a907c,#69bea9); transition: width .45s ease; }
.creative-generation-progress p { margin: 11px 0 0; color: #4f7772; font-size: 11px; }
.creative-generation-progress small { display: block; margin-top: 5px; color: #819694; font-size: 10px; }
.creative-asset-picker { border-top: 1px solid #e1e9e7; background: #fbfdfc; }
.creative-asset-picker > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.creative-asset-picker header > div:first-child { min-width: 0; }
.creative-asset-picker header small { display: block; margin-top: 4px; color: #829390; font-size: 9px; line-height: 1.4; }
.creative-asset-picker header > div:last-child { display: flex; align-items: center; gap: 8px; }
.creative-asset-picker header b { color: #1d786c; font-size: 17px; white-space: nowrap; }
.creative-asset-picker header button { border: 1px solid #c7dad5; border-radius: 4px; padding: 3px 7px; background: #fff; color: #27776b; cursor: pointer; }
.creative-asset-choices { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 7px; max-height: 165px; overflow: auto; padding: 0 12px 11px; }
.creative-asset-choices > p { grid-column: 1 / -1; margin: 4px 0; color: #829390; font-size: 10px; }
.creative-asset-card { position: relative; display: grid; gap: 3px; min-width: 0; padding: 4px; border: 1px solid #dbe7e3; border-radius: 4px; background: #fff; cursor: pointer; }
.creative-asset-card.selected { border-color: #3e9984; background: #ecf8f3; box-shadow: 0 0 0 2px rgba(62,153,132,.1); }
.creative-asset-card input { position: absolute; top: 5px; left: 5px; z-index: 1; width: 14px; height: 14px; margin: 0; accent-color: #1f806f; }
.creative-asset-card img { width: 100%; aspect-ratio: 1.6; border-radius: 3px; object-fit: cover; background: #edf3f1; }
.creative-asset-card span, .creative-asset-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creative-asset-card span { color: #456765; font-size: 9px; }
.creative-asset-card small { color: #8a9a98; font-size: 8px; }
.creative-editor-foot { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid #dfe8e5; background: #fff; }
.creative-editor-foot label { display: flex; align-items: flex-start; gap: 6px; color: #607a78; font-size: 10px; line-height: 1.4; cursor: pointer; }
.creative-editor-foot label input { width: 15px; height: 15px; margin: 0; accent-color: #1f806f; }
.creative-editor-foot small { grid-column: 1 / -1; color: #81918f; font-size: 10px; }
.creative-editor-foot button { grid-column: 2; grid-row: 1; }
.creative-legacy-plan { display: none; }
.creative-operation-scope { display: none !important; }
@media (max-width: 980px) {
  .creative-tree-editor { grid-template-columns: 1fr; }
  .creative-tree-pane { max-height: 320px; border-right: 0; border-bottom: 1px solid #dfe8e5; }
  .creative-structure-tree { max-height: 235px; }
  .creative-draft-editor { grid-template-columns: 1fr; }
  .creative-asset-choices { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .creative-operation-controls { grid-template-columns: 1fr !important; }
  .creative-editor-head { align-items: stretch; flex-direction: column; }
  .creative-editor-head button { width: 100%; }
  .creative-asset-choices { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .creative-editor-foot { grid-template-columns: 1fr; }
  .creative-editor-foot button { grid-column: 1; grid-row: auto; width: 100%; }
}
.positive-replay-zone { margin-top: 16px; border-top: 3px solid #237f70; background: #fff; }
.positive-replay-zone > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid #d7e2df; border-top: 0; }
.positive-replay-zone > header h3 { margin: 3px 0 0; color: #29454c; font-size: 16px; }
.positive-replay-zone > header p { margin: 4px 0 0; overflow-wrap: anywhere; color: #7f9093; font-size: 9px; }
.positive-replay-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 0 0; }
.positive-replay-list > .positive-empty-state { grid-column: 1 / -1; border: 1px solid #dce6e4; background: #fff; }
.positive-replay-item { grid-column: 1; min-width: 0; overflow: hidden; border: 1px solid #d7e2df; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(39, 72, 73, .05); }
.positive-replay-item.accuracy-exact { border-top: 3px solid #1f8874; }
.positive-replay-item.accuracy-candidate { border-top: 3px solid #bd8a3f; }
.positive-replay-item > header { display: flex; min-height: 76px; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #e2eae8; background: #fafcfc; }
.positive-replay-item > header > div { min-width: 0; }
.positive-replay-item > header > div:first-child { flex: 1 1 auto; }
.positive-replay-item > header strong, .positive-replay-item > header small, .positive-replay-item > header time, .positive-replay-item > header > div:last-child span { display: block; overflow-wrap: anywhere; }
.positive-replay-item > header strong { margin-top: 5px; color: #263f46; font-size: 11px; }
.positive-replay-item > header small { margin-top: 3px; color: #819194; font-size: 8px; }
.positive-replay-item > header > div:last-child { flex: 0 0 112px; text-align: right; }
.positive-replay-item > header time { color: #536d72; font-size: 9px; }
.positive-replay-item > header > div:last-child span { margin-top: 4px; color: #8c9b9d; font-size: 8px; }
.positive-accuracy-badge { display: inline-flex; min-height: 21px; align-items: center; border-radius: 4px; padding: 0 7px; background: #e8f5f1; color: #187765 !important; font-size: 8px !important; }
.accuracy-candidate .positive-accuracy-badge { background: #fff5e6; color: #936a28 !important; }
.positive-ad-preview { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 190px; align-items: center; padding: 18px 20px; background: #fff; }
.positive-ad-preview.with-image { grid-template-columns: minmax(0, 1fr) minmax(130px, 32%); gap: 16px; }
.positive-ad-preview.with-image > img { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; border-radius: 5px; background: #f4f6f5; object-fit: contain; }
.positive-ad-preview.with-image > div { grid-column: 1; grid-row: 1; }
.positive-ad-url { display: block; overflow: hidden; color: #18835f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.positive-ad-preview h4 { margin: 9px 0 0; overflow-wrap: anywhere; color: #244f9e; font-size: 18px; line-height: 1.35; }
.positive-ad-preview p { margin: 8px 0 0; overflow-wrap: anywhere; color: #4f5f63; font-size: 11px; line-height: 1.65; }
.positive-ad-preview.unavailable { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #7f9295; text-align: center; }
.positive-ad-preview.unavailable strong { font-size: 11px; }
.positive-ad-preview.unavailable span { font-size: 9px; }
.positive-advanced-style { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 7px 9px; border-left: 3px solid #c28c3f; background: #fff8ed; }
.positive-advanced-style b { color: #8d652b; font-size: 9px; }
.positive-advanced-style span { overflow-wrap: anywhere; color: #9b835e; font-size: 8px; text-align: right; }
.positive-replay-item > footer { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid #e2eae8; background: #fafcfc; }
.positive-replay-item > footer > div { min-width: 0; }
.positive-replay-item > footer strong, .positive-replay-item > footer small { display: block; overflow-wrap: anywhere; }
.positive-replay-item > footer strong { color: #586f73; font-size: 8px; line-height: 1.45; }
.positive-replay-item > footer small { margin-top: 3px; color: #8a999b; font-size: 7px; }
.positive-replay-item footer nav { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.positive-replay-item footer nav button { width: 26px; height: 26px; }
.positive-replay-item footer nav span, .positive-creative-id { color: #6f8386; font-size: 8px; white-space: nowrap; }
.positive-device-badge { display: inline-flex !important; width: max-content; margin-left: auto; padding: 3px 7px; border-radius: 4px; background: #edf3f7; color: #526b80 !important; font-weight: 800; }
.positive-device-badge.device-mobile { background: #e8f5f1; color: #177765 !important; }
.positive-text-ad { width: min(100%, 370px); min-height: 0; margin: 10px auto; padding: 10px 12px 11px; border: 1px solid #dfe6ea; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(25, 39, 51, .06); }
.positive-text-ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #eef1f3; color: #88949e; font-size: 8px; }
.positive-text-ad-head strong { min-width: 0; overflow: hidden; color: #38454e; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.positive-text-ad-copy { min-width: 0; padding-top: 9px; }
.positive-text-ad-copy .positive-ad-url { font-size: 8px; }
.positive-text-ad-copy h4 { margin: 5px 0 0; font-size: 14px; line-height: 1.35; }
.positive-text-ad-copy p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.positive-text-ad-copy .positive-baidu-sitelinks { gap: 4px; margin-top: 7px; }
.positive-text-ad-copy .positive-baidu-sitelinks span { padding: 5px 6px; font-size: 8px; }
.positive-text-ad-copy .positive-style-labels { margin-top: 6px; }
.positive-text-ad-copy .positive-advanced-style { margin-top: 7px; padding: 6px 7px; }
.positive-text-ad-copy .positive-baidu-sponsor { margin-top: 6px; font-size: 7px; }
.positive-text-ad.unavailable { display: flex; min-height: 92px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: #7f9295; text-align: center; }
.positive-text-ad.unavailable strong { font-size: 10px; }
.positive-text-ad.unavailable span { font-size: 8px; }
.positive-baidu-page { min-height: 286px; padding: 0 18px 18px; overflow: hidden; background: #fff; }
.positive-baidu-toolbar { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 66px; }
.positive-baidu-toolbar > b { color: #e21a2d; font-size: 19px; font-weight: 900; white-space: nowrap; }
.positive-baidu-toolbar > b i { color: #2758d8; font-style: normal; }
.positive-baidu-toolbar > b em { color: #e21a2d; font-size: 14px; font-style: normal; }
.positive-baidu-toolbar > div { display: grid; grid-template-columns: minmax(0, 1fr) 82px; width: min(100%, 650px); height: 39px; overflow: hidden; border: 1px solid #4d6ff5; border-radius: 9px; background: #fff; }
.positive-baidu-toolbar > div span { display: flex; min-width: 0; align-items: center; padding: 0 13px; overflow: hidden; color: #202124; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.positive-baidu-toolbar > div strong { display: grid; place-items: center; background: #4e6ef2; color: #fff; font-size: 12px; }
.positive-baidu-tabs { display: flex; align-items: center; gap: 22px; min-height: 34px; padding-left: 106px; border-bottom: 1px solid #eef0f4; color: #8490a0; font-size: 10px; }
.positive-baidu-tabs b { position: relative; color: #4e6ef2; }
.positive-baidu-tabs b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: #4e6ef2; }
.positive-baidu-result { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 760px); min-height: 170px; align-items: center; gap: 16px; margin: 10px 0 0 106px; padding: 4px 0 8px; }
.positive-baidu-result.with-visuals { grid-template-columns: 172px minmax(0, 1fr); }
.positive-baidu-copy { min-width: 0; }
.positive-baidu-copy .positive-ad-url { color: #15803d; font-size: 10px; }
.positive-baidu-copy h4 { margin: 6px 0 0; overflow-wrap: anywhere; color: #244f9e; font-size: 18px; font-weight: 500; line-height: 1.42; }
.positive-baidu-copy p { margin: 6px 0 0; color: #353b43; font-size: 11px; line-height: 1.65; }
.positive-style-gallery { display: grid; width: 172px; height: 134px; grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); gap: 4px; overflow: hidden; }
.positive-style-gallery.count-2, .positive-style-gallery.count-3, .positive-style-gallery.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.positive-style-visual { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 4px; background: #f3f5f7; }
.positive-style-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.positive-style-visual figcaption { position: absolute; left: 3px; right: 3px; bottom: 3px; overflow: hidden; padding: 2px 4px; border-radius: 3px; background: rgba(20, 30, 40, .72); color: #fff; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.positive-baidu-sitelinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.positive-baidu-sitelinks span { min-width: 0; padding: 7px 8px; overflow: hidden; border-radius: 5px; background: #f5f6f8; color: #3157a5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.positive-style-labels { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.positive-style-labels span { padding: 3px 6px; border: 1px solid #dce4e8; border-radius: 4px; color: #687981; font-size: 7px; }
.positive-baidu-sponsor { display: block; margin-top: 8px; color: #9aa2ab; font-size: 8px; }
.positive-baidu-page.device-mobile { width: min(430px, calc(100% - 20px)); min-height: 360px; margin: 12px auto; padding: 0 12px 14px; border: 1px solid #e2e6ea; border-radius: 8px; box-shadow: 0 8px 24px rgba(25, 39, 51, .08); }
.positive-baidu-page.device-mobile .positive-baidu-toolbar { grid-template-columns: 66px minmax(0, 1fr); gap: 7px; min-height: 58px; }
.positive-baidu-page.device-mobile .positive-baidu-toolbar > b { font-size: 14px; }
.positive-baidu-page.device-mobile .positive-baidu-toolbar > b em { font-size: 10px; }
.positive-baidu-page.device-mobile .positive-baidu-toolbar > div { grid-template-columns: minmax(0, 1fr) 62px; height: 35px; }
.positive-baidu-page.device-mobile .positive-baidu-tabs { gap: 16px; min-height: 32px; padding-left: 0; overflow: hidden; }
.positive-baidu-page.device-mobile .positive-baidu-result, .positive-baidu-page.device-mobile .positive-baidu-result.with-visuals { grid-template-columns: 1fr; width: 100%; margin: 9px 0 0; }
.positive-baidu-page.device-mobile .positive-style-gallery { width: 100%; height: 154px; }
.positive-baidu-page.device-mobile .positive-baidu-copy h4 { font-size: 16px; }

@media (max-width: 1180px) {
  .positive-overview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .positive-account-picker { grid-template-columns: minmax(200px, 1fr) minmax(220px, .9fr) minmax(160px, .8fr); }
  .positive-workflow-steps { grid-column: 1 / -1; justify-content: flex-start; }
  .positive-builder { grid-template-columns: 230px minmax(540px, 1fr); }
  .positive-selected-pane { grid-column: 1 / -1; min-height: 220px; border-top: 1px solid #dfe7e5; border-left: 0; }
  .positive-selected-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 240px; }
  .positive-selected-list article { border-right: 1px solid #e4ebe9; }
}

@media (max-width: 760px) {
  body.admin-mode .top-tabs .tab-button[data-view="positive"] {
    position: sticky;
    left: 80px;
    z-index: 3;
    background: rgba(250, 249, 246, .98);
    box-shadow: 8px 0 12px rgba(65, 52, 36, .08);
  }
  body.admin-mode .top-tabs .tab-button[data-view="positive"].active {
    background: linear-gradient(135deg, #4b3c2b, #765d3f);
    box-shadow: 0 5px 12px rgba(86, 65, 38, .18), 8px 0 12px rgba(65, 52, 36, .08);
  }
  body[data-view="positive"] .positive-workspace { padding: 0 8px 18px; }
  .positive-command-head { min-height: 62px; margin: 0 -8px; padding: 10px 12px; }
  .positive-command-head h2 { font-size: 17px; }
  .positive-overview { margin-top: 8px; padding: 11px; }
  .positive-overview-head { display: block; }
  .positive-overview-head > small { display: block; margin-top: 7px; text-align: left; }
  .positive-overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .positive-account-cards { grid-template-columns: 1fr; }
  .positive-account-picker { display: block; margin-top: 8px; padding: 10px; }
  .positive-account-picker-copy small { margin-bottom: 8px; }
  .positive-account-select { grid-template-columns: auto minmax(0, 1fr); }
  .positive-account-meta { margin-top: 8px; }
  .positive-workflow-steps { justify-content: flex-start; gap: 4px; margin-top: 9px; overflow-x: auto; }
  .positive-builder { display: block; min-height: 0; margin-top: 8px; overflow: visible; }
  .positive-tree-pane, .positive-selected-pane { border: 0; }
  .positive-tree-pane { border-bottom: 1px solid #dfe7e5; }
  .positive-structure-tree { max-height: 280px; }
  .positive-planner-pane { display: block; }
  .positive-auto-seed { grid-template-columns: 1fr; }
  .positive-manual-seed { grid-template-columns: 1fr; }
  .positive-manual-seed > small { grid-column: 1; text-align: left; }
  .positive-purity { padding: 10px 0 0; border-top: 1px solid #e0e8e6; border-left: 0; }
  .positive-candidate-toolbar { align-items: stretch; flex-direction: column; }
  .positive-candidate-toolbar label { grid-template-columns: auto minmax(0, 1fr); }
  .positive-secondary-button { width: 100%; }
  .positive-candidate-toolbar > div { text-align: left; }
  .positive-candidate-shell { max-height: 520px; }
  .positive-selected-list { display: block; max-height: 300px; }
  .positive-selected-pane { border-top: 1px solid #dfe7e5; }
  .positive-replay-zone { margin-top: 10px; }
  .positive-replay-zone > header { align-items: flex-start; padding: 10px 12px; }
  .positive-replay-list { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .positive-replay-item > header { align-items: flex-start; flex-direction: column; }
  .positive-replay-item > header > div:last-child { flex-basis: auto; text-align: left; }
  .positive-device-badge { margin-left: 0; }
  .positive-baidu-page { padding-inline: 10px; }
  .positive-baidu-toolbar { grid-template-columns: 65px minmax(0, 1fr); gap: 7px; }
  .positive-baidu-toolbar > b { font-size: 14px; }
  .positive-baidu-toolbar > b em { font-size: 10px; }
  .positive-baidu-toolbar > div { grid-template-columns: minmax(0, 1fr) 62px; }
  .positive-baidu-tabs { gap: 15px; padding-left: 0; overflow: hidden; }
  .positive-baidu-result, .positive-baidu-result.with-visuals { grid-template-columns: 1fr; width: 100%; margin-left: 0; }
  .positive-style-gallery { width: 100%; height: 210px; }
  .positive-ad-preview, .positive-ad-preview.with-image { display: flex; min-height: 210px; align-items: stretch; flex-direction: column-reverse; gap: 10px; padding: 14px; }
  .positive-ad-preview.with-image > img { width: 100%; max-height: 260px; aspect-ratio: 4 / 3; object-fit: contain; }
  .positive-ad-preview h4 { font-size: 16px; }
  .positive-replay-item > footer { align-items: flex-start; flex-direction: column; }
}

/* Text-only replay cards stay close to a mobile ad footprint and never request image assets. */
.positive-text-ad.positive-baidu-page,
.positive-text-ad.positive-baidu-page.device-mobile {
  width: min(100%, 370px);
  min-height: 0;
  margin: 10px auto;
  padding: 10px 12px 11px;
  border: 1px solid #dfe6ea;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(25, 39, 51, .06);
}

/* 2026-08-26 · Compact buying pulse and the merged operations view. */
body[data-view="positive"] .positive-workspace { padding: 0 14px 24px; }
.positive-command-head { min-height: 58px; margin-inline: -14px; padding: 8px 18px; }
.positive-command-head h2 { font-size: 18px; }
.positive-command-head p { margin-top: 2px; font-size: 9px; }
.positive-command-head .positive-icon-button { width: 32px; height: 32px; font-size: 17px; }
.positive-overview { margin-top: 8px; padding: 10px; border-radius: 8px; }
.positive-overview-head h3 { margin-top: 2px; font-size: 15px; }
.positive-overview-head p { margin-top: 2px; font-size: 8px; }
.positive-overview-kpis { gap: 6px; margin-top: 8px; }
.positive-overview-kpis article { gap: 6px; padding: 7px 8px; border-radius: 6px; }
.positive-overview-kpis article > i { flex-basis: 21px; width: 21px; height: 21px; border-radius: 5px; font-size: 11px; }
.positive-overview-kpis strong { margin-top: 3px; font-size: 14px; }
.positive-overview-kpis small { margin-top: 3px; font-size: 7px; }
.positive-account-table-shell { margin-top: 8px; overflow-x: auto; border: 1px solid #dce7e4; border-radius: 7px; background: #fff; }
.positive-account-table { width: 100%; min-width: 1420px; border-collapse: collapse; table-layout: fixed; }
.positive-account-table th { padding: 7px 9px; border-bottom: 1px solid #dbe6e3; background: #f5f9f8; color: #789092; font-size: 8px; font-weight: 800; text-align: left; white-space: nowrap; }
.positive-account-table th:nth-child(1) { width: 13%; }
.positive-account-table th:nth-child(2) { width: 14%; }
.positive-account-table th:nth-child(3) { width: 13%; }
.positive-account-table th:nth-child(4) { width: 9%; }
.positive-account-table th:nth-child(5) { width: 12%; }
.positive-account-table th:nth-child(6) { width: 8%; }
.positive-account-table th:nth-child(7) { width: 7%; }
.positive-account-table th:nth-child(8) { width: 7%; }
.positive-account-table th:nth-child(9) { width: 6%; }
.positive-account-table th:nth-child(10) { width: 6%; }
.positive-account-table th:nth-child(11) { width: 5%; }
.positive-account-row { outline: 0; cursor: pointer; transition: background .14s ease; }
.positive-account-row:hover, .positive-account-row:focus-visible { background: #f2faf7; }
.positive-account-row td { padding: 7px 9px; border-bottom: 1px solid #edf2f0; vertical-align: middle; }
.positive-account-row:last-child td { border-bottom: 0; }
.positive-account-row td:first-child { border-left: 3px solid #8eb9af; }
.positive-account-row.positive td:first-child { border-left-color: #218b73; }
.positive-account-row.negative td:first-child, .positive-account-row.warning td:first-child { border-left-color: #bc7a45; }
.positive-account-row strong, .positive-account-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.positive-account-row td > strong { color: #29484d; font-size: 11px; }
.positive-account-row td > small { margin-top: 3px; color: #8a9a9b; font-size: 7px; }
.positive-account-row .positive-add-count { color: #167a68; }
.positive-account-row .positive-energy-value { color: #5b6494; }
.positive-account-row.negative .positive-energy-value, .positive-account-row.warning .positive-energy-value { color: #a36635; }
.positive-overview .positive-empty-state { min-height: 50px; padding: 8px; }
.positive-overview .positive-empty-state strong { font-size: 10px; }
.positive-overview .positive-empty-state span { font-size: 8px; }
.positive-builder { min-height: 1035px; margin-top: 12px; }
.executive-baidu-bridge { margin-top: 16px; }
.executive-baidu-bridge-body { padding: 10px 12px 12px; }
.executive-baidu-bridge-body .today-data-strip { margin: 0; }
.executive-baidu-bridge-body > p { margin: 7px 0 0; color: #829294; font-size: 9px; }
.executive-replay-zone { margin-top: 16px; }

@media (max-width: 760px) {
  .positive-command-head { margin-inline: -10px; padding-inline: 12px; }
  .positive-overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .positive-account-table { min-width: 1420px; }
  .positive-builder { min-height: 0; }
  .executive-baidu-bridge { margin-top: 10px; }
}

/* 2026-08-27: readable delivery funnel and plan-level creative workflow. */
.positive-command-head { min-height: 76px; }
.positive-command-actions { display: flex; align-items: center; gap: 12px; }
.positive-date-range { display: flex; align-items: end; gap: 6px; flex-wrap: wrap; }
.positive-date-range label { display: grid; gap: 3px; color: #60787b; font-size: 10px; font-weight: 700; }
.positive-date-range input { width: 126px; height: 32px; border: 1px solid #bcd2cd; border-radius: 5px; padding: 0 7px; background: #fff; color: #2d5552; font: inherit; font-size: 11px; }
.positive-date-range > i { padding-bottom: 8px; color: #8ca29f; font-size: 14px; font-style: normal; }
.positive-range-button { min-height: 30px; padding: 0 9px; border: 1px solid #c9d9d5; border-radius: 5px; background: #fff; color: #4b716c; font-size: 10px; font-weight: 750; cursor: pointer; }
.positive-range-button.active { border-color: #247f70; background: #eaf7f3; color: #176e60; }
.positive-overview-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.positive-overview-kpis span { font-size: 10px; }
.positive-overview-kpis strong { font-size: 19px; }
.positive-overview-kpis small { font-size: 9px; }
.positive-account-table { min-width: 1320px; }
.positive-account-table th { padding: 9px 10px; font-size: 10px; }
.positive-account-table th:nth-child(1) { width: 15%; }
.positive-account-table th:nth-child(2), .positive-account-table th:nth-child(3) { width: 9%; }
.positive-account-table th:nth-child(4), .positive-account-table th:nth-child(5), .positive-account-table th:nth-child(6) { width: 11%; }
.positive-account-table th:nth-child(7), .positive-account-table th:nth-child(8) { width: 10%; }
.positive-account-table th:nth-child(9), .positive-account-table th:nth-child(10) { width: 7%; }
.positive-account-row td { padding: 10px; }
.positive-account-row td > strong { font-size: 13px; }
.positive-account-row td > small { font-size: 9px; }
.creative-daily-plan { margin-top: 14px; border: 1px solid #cfe0db; border-radius: 8px; background: #f8fcfb; }
.creative-daily-plan > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #dce9e5; }
.creative-daily-plan > header span { color: #187767; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.creative-daily-plan > header h4 { margin: 4px 0 0; color: #24494d; font-size: 17px; }
.creative-daily-plan > header p { margin: 4px 0 0; color: #6d8585; font-size: 11px; line-height: 1.5; }
.creative-daily-plan > header > strong { flex: 0 0 auto; color: #187767; font-size: 12px; }
.creative-daily-controls { display: grid; grid-template-columns: minmax(260px, 1fr) 140px; gap: 10px; padding: 12px 14px; }
.creative-daily-controls label { display: grid; gap: 4px; color: #607a79; font-size: 10px; font-weight: 700; }
.creative-daily-controls select { height: 34px; border: 1px solid #bfd4ce; border-radius: 5px; padding: 0 9px; background: #fff; color: #2d5653; font-size: 11px; }
.creative-daily-count { align-content: start; }
.creative-daily-count strong { color: #1c796a; font-size: 22px; line-height: 1.2; }
.creative-daily-drafts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 0 14px 12px; }
.creative-daily-drafts > p { grid-column: 1 / -1; margin: 4px 0; color: #809594; font-size: 11px; }
.creative-daily-plan-summary { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #cfe1dc; border-radius: 5px; background: #edf8f4; }
.creative-daily-plan-summary strong { color: #236c60; font-size: 12px; }
.creative-daily-plan-summary span { color: #6f8581; font-size: 9px; text-align: right; }
.creative-daily-unit-group { min-width: 0; padding: 9px; border: 1px solid #d9e6e2; border-radius: 5px; background: #fff; }
.creative-daily-unit-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.creative-daily-unit-group > header strong { overflow-wrap: anywhere; color: #315d5a; font-size: 11px; }
.creative-daily-unit-group > header small { flex: 0 0 auto; color: #80918f; font-size: 9px; }
.creative-daily-draft { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 9px; border: 1px solid #d9e6e2; border-radius: 5px; background: #fff; cursor: pointer; }
.creative-daily-draft.auto { grid-template-columns: minmax(0, 1fr) auto; padding: 8px; cursor: default; }
.creative-daily-draft.selected { border-color: #4b9c8a; background: #eff9f5; }
.creative-daily-draft input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: #1a806e; }
.creative-daily-draft strong, .creative-daily-draft small { display: block; overflow-wrap: anywhere; }
.creative-daily-draft strong { color: #2a4f53; font-size: 11px; line-height: 1.4; }
.creative-daily-draft small { margin-top: 4px; color: #7b9090; font-size: 9px; line-height: 1.4; }
.creative-daily-draft em { color: #a5752e; font-size: 10px; font-style: normal; white-space: nowrap; }
.creative-daily-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid #dce9e5; background: #fff; }
.creative-daily-actions label { display: flex; align-items: flex-start; gap: 7px; color: #637d7d; font-size: 10px; line-height: 1.45; cursor: pointer; }
.creative-daily-actions input { width: 15px; height: 15px; margin-top: 1px; accent-color: #1a806e; }
.creative-daily-actions button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 5px; background: #1f806f; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.creative-daily-actions button:disabled { background: #cbd8d5; color: #71817f; cursor: not-allowed; }
.creative-daily-receipt { min-height: 0; padding: 0 14px 11px; color: #397367; font-size: 10px; }
.creative-daily-receipt strong, .creative-daily-receipt span { display: block; }
.creative-daily-receipt span { margin-top: 3px; color: #6e8582; }
.creative-daily-receipt .error, .creative-daily-error { color: #ac5960; }

@media (max-width: 760px) {
  .positive-command-head { align-items: flex-start; flex-direction: column; }
  .positive-command-actions { width: 100%; align-items: flex-end; justify-content: space-between; }
  .positive-date-range input { width: 116px; }
  .creative-daily-controls { grid-template-columns: 1fr; }
  .creative-daily-drafts { grid-template-columns: 1fr; }
  .creative-daily-actions { align-items: stretch; flex-direction: column; }
  .creative-daily-actions button { width: 100%; }
}

/* 2026-08-27: make today's additions visible beside the live inventory. */
.positive-overview-kpis { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.positive-overview-kpis span { font-size: 11px; }
.positive-overview-kpis strong { font-size: 21px; }
.positive-overview-kpis small { font-size: 10px; }
.positive-account-table th { font-size: 11px; }
.positive-account-row td > strong { font-size: 15px; }
.positive-account-row td > small { font-size: 10px; }

@media (min-width: 761px) and (max-width: 1180px) {
  .positive-overview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
