/* ============================================================
   Nexora Insights — Flagship Split Workbench (Linear × 飞瓜)
   Zero triple-headers · Hairline editorial feed · Sticky Script Studio
   ============================================================ */

.nx-insights-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.nx-insights-tabs {
  margin: 0 !important;
}

.nx-insights-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nx-insights-export-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 10px;
}

/* --- Seamless Two-Pane Split Frame --- */
.nx-hot-workbench {
  background: #ffffff;
  border: 1px solid #e8e2ee;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(27, 24, 35, 0.03), 0 8px 28px rgba(45, 29, 64, 0.035);
  overflow: visible;
  margin-bottom: 24px;
}

.nx-hot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(380px, 1fr);
  align-items: stretch;
}

/* --- Left Editorial Intelligence Feed --- */
.nx-hot-feed-col {
  min-width: 0;
  padding: 18px 22px 20px;
  border-right: 1px solid #efe9f4;
  display: flex;
  flex-direction: column;
}

.nx-hot-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nx-hot-seg-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: #f4f1f8;
  border: 1px solid #eae3f0;
  flex-shrink: 0;
}

.nx-hot-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  background: transparent;
  color: #5f536e;
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.16s, color 0.16s, box-shadow 0.16s;
}

.nx-hot-seg-btn svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}

.nx-hot-seg-btn:hover {
  color: var(--ink);
}

.nx-hot-seg-btn.active {
  background: #11131b;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(17, 19, 27, 0.14);
}

.nx-hot-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  justify-content: flex-end;
}

.nx-hot-query-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
}

.nx-hot-query-wrap > svg {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: #8b7f98;
  pointer-events: none;
}

.nx-hot-query-wrap input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 32px;
  border-radius: 10px;
  border: 1px solid #e8e2ee;
  background: #faf8fc;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.16s, background-color 0.16s, box-shadow 0.16s;
}

.nx-hot-query-wrap input::placeholder {
  color: #8f849c;
}

.nx-hot-query-wrap input:focus {
  background: #ffffff;
  border-color: #a986cc;
  box-shadow: 0 0 0 3px rgba(125, 58, 239, 0.08);
}

.nx-hot-query-wrap .nx-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.nx-hot-refresh-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 10px;
  gap: 5px;
  flex-shrink: 0;
}

.nx-hot-refresh-btn svg {
  width: 13px;
  height: 13px;
}

/* Industry Quick Chips */
.nx-hot-industry-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2ecf6;
}

.nx-hot-ind-chip {
  height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #ebe4f1;
  color: #5f536e;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.14s, color 0.14s, border-color 0.14s;
}

.nx-hot-ind-chip:hover {
  background: #f6f2fb;
  color: var(--ink);
  border-color: #d9c8e8;
}

.nx-hot-ind-chip.active {
  background: #f3ecfc;
  color: #5e2fd4;
  border-color: #d6c0ef;
  font-weight: 600;
}

/* Quiet Telemetry Line */
.nx-hot-telemetry {
  font-size: 11.5px;
  color: #7d728a;
  padding: 10px 2px 8px;
  letter-spacing: 0.01em;
}

/* Hairline Editorial Table */
.nx-hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-hot-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  margin: 0 -10px;
  border-radius: 11px;
  border-bottom: 1px solid #f4eff8;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.nx-hot-list li:last-child {
  border-bottom: 0;
}

.nx-hot-list li:hover {
  background: #faf7fe;
}

.nx-hot-list li.is-selected {
  background: #f4ecfd;
  border-bottom-color: transparent;
}

.nx-hot-rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #847892;
  background: transparent;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.nx-hot-rank.is-rank-1 {
  background: #11131b;
  color: #ffffff;
}

.nx-hot-rank.is-rank-top {
  background: #f2eafa;
  color: #6b35d6;
}

.nx-hot-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.nx-hot-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nx-hot-title-line strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.nx-hot-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nx-hot-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
}

.nx-hot-badge.is-new {
  background: #fdf0f7;
  color: #b53471;
}

.nx-hot-badge.is-up {
  background: #edf9f2;
  color: #1f6f43;
}

.nx-hot-badge.is-match {
  background: #f1e8fc;
  color: #6228c8;
}

.nx-hot-heat-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nx-hot-heat-bar {
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: #efeaf4;
  overflow: hidden;
  flex-shrink: 0;
}

.nx-hot-heat-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7d3aef, #ed67b5 62%, #ff8c7b);
}

.nx-hot-heat-val {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  color: #5b5068;
  white-space: nowrap;
}

.nx-hot-reason {
  font-size: 11.5px;
  color: #8b8098;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover-Revealed Row Actions */
.nx-hot-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nx-hot-source-link {
  font-size: 11.5px;
  color: #7c6891;
  padding: 4px 7px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.14s, background-color 0.14s, color 0.14s;
}

.nx-hot-list li:hover .nx-hot-source-link,
.nx-hot-list li.is-selected .nx-hot-source-link,
.nx-hot-list li:focus-within .nx-hot-source-link {
  opacity: 1;
}

.nx-hot-source-link:hover {
  background: #efe6fa;
  color: #5a2cc9;
}

.nx-hot-pick-btn {
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #e4dbec;
  background: #ffffff;
  color: #4f435d;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
  transition: opacity 0.14s, background-color 0.14s, color 0.14s, border-color 0.14s;
}

.nx-hot-list li:hover .nx-hot-pick-btn,
.nx-hot-list li:focus-within .nx-hot-pick-btn {
  opacity: 1;
  border-color: #cbb5df;
  color: #5d39bd;
}

.nx-hot-pick-btn.is-picked {
  opacity: 1;
  background: #11131b;
  border-color: #11131b;
  color: #ffffff;
  font-weight: 600;
}

.nx-hot-more-wrap {
  padding-top: 12px;
  display: flex;
  justify-content: center;
}

.nx-hot-more-btn {
  min-height: 34px;
  font-size: 12px;
  padding: 0 16px;
  border-radius: 999px;
}

.nx-hot-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

.nx-hot-empty strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
}

.nx-hot-empty p {
  margin: 0;
  font-size: 12.5px;
}

.nx-hot-skeleton {
  display: grid;
  gap: 10px;
  padding: 6px 0;
}

.nx-hot-skel-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.nx-hot-skel-row > span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f2edf7;
}

.nx-hot-skel-row > div {
  display: grid;
  gap: 7px;
}

.nx-hot-skel-row i {
  display: block;
  height: 13px;
  width: 68%;
  border-radius: 6px;
  background: #f2edf7;
}

.nx-hot-skel-row b {
  display: block;
  height: 8px;
  width: 34%;
  border-radius: 6px;
  background: #f6f2fa;
}

/* --- Right Sticky Docked Script Studio --- */
.nx-hot-compose {
  min-width: 0;
  background: #fcfbfe;
  border-radius: 0 17px 17px 0;
  padding: 17px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: sticky;
  top: 76px;
  align-self: start;
}

.nx-hot-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nx-hot-compose-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nx-hot-compose-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nx-hot-engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.nx-hot-engine-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.nx-hot-engine-pill.is-ready {
  background: #eef9f2;
  color: #1f6f43;
}

.nx-hot-engine-pill.is-ready i {
  background: #249b5b;
}

.nx-hot-engine-pill.is-local {
  background: #f4eefc;
  color: #6232c9;
}

.nx-hot-engine-pill.is-local i {
  background: #7d3aef;
}

.nx-hot-history-select {
  max-width: 146px;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 28px 0 10px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
}

/* Topic Spotlight Card */
.nx-hot-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px dashed #dcd2e6;
  transition: border-color 0.16s, background-color 0.16s;
}

.nx-hot-spotlight.is-active {
  border-style: solid;
  border-color: #cfb7ea;
  background: linear-gradient(135deg, #f9f4fe, #ffffff 70%);
}

.nx-hot-spot-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nx-hot-spot-kicker {
  font-size: 11px;
  font-weight: 600;
  color: #7d6d8e;
  font-variant-numeric: tabular-nums;
}

.nx-hot-spotlight.is-active .nx-hot-spot-kicker {
  color: #6a36d1;
}

.nx-hot-spot-main strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nx-hot-spot-main p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.nx-hot-spot-pick {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f4ecfd;
  border: 1px solid #dcc8f3;
  color: #5c2cc7;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.nx-hot-spot-pick:hover {
  background: #ebdcfb;
}

.nx-hot-spot-clear {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: transparent;
  color: #7d6d8e;
  font-size: 11.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nx-hot-spot-clear:hover {
  background: #efe6fa;
  color: var(--ink);
}

/* Inspector Fields */
.nx-hot-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.nx-hot-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nx-hot-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b4059;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.nx-hot-field-label small {
  font-weight: 400;
  font-size: 11px;
  color: #8b7f98;
}

.nx-sr-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nx-hot-format-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: #f3eff8;
  border: 1px solid #e8e0f0;
}

.nx-hot-format-pill {
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #5d516b;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nx-hot-format-pill:hover {
  color: var(--ink);
}

.nx-hot-format-pill.active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(27, 24, 35, 0.1);
}

.nx-hot-angle-chips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nx-hot-angle-chip {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e6def0;
  background: #ffffff;
  color: #655975;
  font-size: 11px;
  transition: border-color 0.14s, background-color 0.14s, color 0.14s;
}

.nx-hot-angle-chip:hover {
  border-color: #cbb5df;
  color: #5c2cc7;
}

.nx-hot-angle-chip.active {
  background: #f3ecfc;
  border-color: #cbb5df;
  color: #5c2cc7;
  font-weight: 600;
}

.nx-hot-compose select.select {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  background-color: #ffffff;
}

.nx-hot-compose textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #e6dfee;
  border-radius: 11px;
  padding: 9px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.nx-hot-compose textarea:focus {
  border-color: #a986cc;
  box-shadow: 0 0 0 3px rgba(125, 58, 239, 0.08);
}

/* CTA Row */
.nx-hot-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-hot-primary-cta {
  flex: 1.25;
  min-height: 40px;
  border-radius: 11px;
  background: #11131b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  gap: 6px;
}

.nx-hot-primary-cta:hover:not(:disabled) {
  background: #232635;
}

.nx-hot-primary-cta:disabled {
  background: #ece7f3;
  color: #827691;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.nx-hot-local-cta {
  flex: 1;
  min-height: 40px;
  border-radius: 11px;
  font-size: 12.5px;
  justify-content: center;
  gap: 5px;
}

.nx-hot-local-cta.is-promoted {
  background: #11131b;
  border-color: #11131b;
  color: #ffffff;
  font-weight: 600;
}

.nx-hot-local-cta.is-promoted:hover:not(:disabled) {
  background: #232635;
}

.nx-hot-compose button svg,
.nx-compliance-clean-note svg,
.nx-hot-outline-foot svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nx-hot-status-line {
  margin: -4px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #7d728a;
}

/* Live Storyboard Outline Preview (Eliminates Pre-Generation Void) */
.nx-hot-outline-preview {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #ece5f3;
  display: grid;
  gap: 8px;
}

.nx-hot-outline-preview[hidden] {
  display: none;
}

.nx-hot-outline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nx-hot-outline-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.nx-hot-outline-head span {
  font-size: 11px;
  color: #7d728a;
}

.nx-hot-outline-beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.nx-hot-outline-beats li {
  display: grid;
  gap: 2px;
  padding-left: 11px;
  border-left: 2px solid #e4d6f4;
}

.nx-hot-outline-beats li:first-child {
  border-left-color: #7d3aef;
}

.nx-hot-outline-beats b {
  font-size: 12px;
  font-weight: 600;
  color: #362c44;
  font-variant-numeric: tabular-nums;
}

.nx-hot-outline-beats p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #726780;
}

.nx-hot-outline-foot {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid #f3edf8;
  font-size: 11px;
  line-height: 1.5;
  color: #7a6d89;
}

.nx-hot-outline-foot svg {
  color: #6c38c7;
  margin-top: 1px;
}

/* Editable Result Box */
.nx-hot-result-box {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #ebe4f2;
}

.nx-hot-result-box[hidden] {
  display: none;
}

.nx-hot-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nx-hot-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.nx-hot-video-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(125deg, #f6effc, #fdf3f7 65%, #fff4ef);
  border: 1px solid #eadcf6;
}

.nx-hot-send-video-btn {
  flex: 1;
  min-width: 200px;
}

.nx-hot-result-actions {
  gap: 6px;
}

.nx-hot-result-actions .ghost-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .nx-hot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-hot-feed-col {
    border-right: 0;
    border-bottom: 1px solid #efe9f4;
  }
  .nx-hot-compose {
    position: static;
    border-radius: 0 0 17px 17px;
  }
}

@media (max-width: 640px) {
  .nx-hot-feed-col,
  .nx-hot-compose {
    padding: 15px;
  }
  .nx-hot-source-link {
    display: none;
  }
  .nx-hot-pick-btn {
    opacity: 1;
  }
  .nx-hot-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nx-hot-send-video-btn {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-hot-list li,
  .nx-hot-source-link,
  .nx-hot-pick-btn,
  .nx-hot-seg-btn,
  .nx-hot-format-pill {
    transition: none;
  }
}
