:root {
  --bg-0: #eef3f2;
  --bg-1: #dfe9e5;
  --bg-accent-1: #d7f0e6;
  --bg-accent-2: #dbe7f5;
  --panel: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f3f8f6;
  --panel-soft: #fcfffd;
  --line: #c9dbd2;
  --line-strong: #b6cdc2;
  --text: #10211f;
  --muted: #4d6662;
  --brand: #0f8c6d;
  --brand-2: #1b5ea7;
  --brand-soft: #daf3ea;
  --focus: #0b83ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  --shadow-sm: 0 8px 18px rgba(22, 36, 30, 0.06);
  --shadow-md: 0 18px 36px rgba(16, 28, 24, 0.1);
  --font-body: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Sora", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(1200px 560px at -8% -12%, var(--bg-accent-1) 0%, transparent 58%),
    radial-gradient(980px 500px at 106% -8%, var(--bg-accent-2) 0%, transparent 56%),
    linear-gradient(110deg, rgba(15, 140, 109, 0.06), rgba(27, 94, 167, 0.03) 45%, transparent 72%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 48%);
}

html[data-theme="dark"] {
  --bg-0: #0d171e;
  --bg-1: #0a1218;
  --bg-accent-1: #113328;
  --bg-accent-2: #152d49;
  --panel: #121f2a;
  --surface-1: #152534;
  --surface-2: #1a2c3c;
  --panel-soft: #132637;
  --line: #2a4458;
  --line-strong: #3b5971;
  --text: #e8f0f8;
  --muted: #a4b8c8;
  --brand: #25c997;
  --brand-2: #6aafff;
  --brand-soft: rgba(37, 201, 151, 0.14);
  --focus: #5cb4ff;
  --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 22px 44px rgba(0, 0, 0, 0.44);
}

*::selection {
  background: rgba(27, 94, 167, 0.22);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px clamp(10px, 1vw, 16px) 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

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

.db-freshness-bar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(140deg, rgba(15, 140, 109, 0.08), rgba(27, 94, 167, 0.06));
}

.db-freshness-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.db-freshness-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.db-freshness-pills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.db-freshness-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 94, 167, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

button.db-freshness-pill {
  font: inherit;
}

.db-freshness-pill:hover {
  border-color: rgba(92, 180, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(92, 180, 255, 0.12) inset;
}

.db-freshness-pill:active {
  transform: translateY(1px);
}

.db-freshness-pill[data-state="healthy"] {
  border-color: rgba(2, 122, 72, 0.42);
  background: rgba(2, 122, 72, 0.16);
  color: #d4ffef;
}

.db-freshness-pill[data-state="warning"] {
  border-color: rgba(181, 71, 8, 0.48);
  background: rgba(181, 71, 8, 0.14);
  color: #ffe0c4;
}

.db-freshness-pill[data-state="stale"] {
  border-color: rgba(180, 35, 24, 0.48);
  background: rgba(180, 35, 24, 0.14);
  color: #ffd5d1;
}

.db-freshness-pill[data-state="unknown"] {
  border-color: var(--line);
  background: rgba(27, 94, 167, 0.05);
}

.db-freshness-bar .meta {
  margin: 4px 0 0;
}

.db-freshness-bar[data-state="healthy"] {
  border-color: rgba(2, 122, 72, 0.42);
  background: linear-gradient(140deg, rgba(2, 122, 72, 0.12), rgba(27, 94, 167, 0.04));
}

.db-freshness-bar[data-state="warning"] {
  border-color: rgba(181, 71, 8, 0.44);
  background: linear-gradient(140deg, rgba(181, 71, 8, 0.14), rgba(27, 94, 167, 0.04));
}

.db-freshness-bar[data-state="stale"] {
  border-color: rgba(180, 35, 24, 0.46);
  background: linear-gradient(140deg, rgba(180, 35, 24, 0.14), rgba(27, 94, 167, 0.04));
}

.db-freshness-bar[data-state="unknown"] {
  border-color: var(--line);
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-control input[type="checkbox"],
.inline-control input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}

.control-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 8px 10px;
  background: var(--surface-1);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.raw-controls {
  display: grid;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 95, 138, 0.06), rgba(18, 95, 138, 0));
}

.raw-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.raw-label {
  min-width: 84px;
  font-weight: 700;
  color: var(--muted);
}

.raw-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.raw-control .meta {
  white-space: nowrap;
}

.raw-input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 8px 10px;
  background: var(--surface-1);
  color: var(--text);
  min-width: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.raw-input:focus,
.raw-input:focus-visible,
.control-select:focus,
.control-select:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(27, 94, 167, 0.14);
}

.raw-check {
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(11, 143, 101, 0.08);
  border: 1px solid rgba(11, 143, 101, 0.18);
}

.raw-btn {
  padding: 7px 10px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
}

.expand-icon {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  transition: transform 0.16s ease;
}

tr.expanded .expand-icon {
  transform: rotate(90deg);
}

.details-row {
  display: none;
}

.details-row.open {
  display: table-row;
}

.details-cell {
  padding: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.details-wrap {
  padding: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.details-grid .span-2 {
  grid-column: span 2;
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--panel);
}

.detail-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--brand-2);
}

.detail-list {
  max-height: 360px;
  overflow: auto;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(41, 65, 84, 0.25);
  font-size: 12px;
}

.detail-item > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-item:last-child {
  border-bottom: none;
}

.asset-domain-details {
  min-width: 110px;
  margin-left: auto;
}

.asset-domain-summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  text-align: right;
}

.asset-domain-summary::-webkit-details-marker {
  display: none;
}

.asset-domain-summary::after {
  content: " \25be";
  font-size: 10px;
}

.asset-domain-details[open] .asset-domain-summary::after {
  content: " \25b4";
}

.asset-domain-list {
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  max-height: 180px;
  max-width: min(360px, 70vw);
  overflow: auto;
  text-align: left;
}

.asset-domain-list li {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  font-size: 11px;
  color: var(--text);
  border-bottom: 1px dashed rgba(41, 65, 84, 0.35);
}

.asset-domain-list li:last-child {
  border-bottom: none;
}

.asset-domain-more {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.status-pill.ok {
  border-color: rgba(2, 122, 72, 0.35);
  background: rgba(2, 122, 72, 0.12);
  color: var(--ok);
}

.status-pill.fail {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.status-pill.pending {
  border-color: rgba(181, 71, 8, 0.35);
  background: rgba(181, 71, 8, 0.12);
  color: var(--warn);
}

@media (max-width: 920px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  .details-grid .span-2 {
    grid-column: auto;
  }
}

.title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.title-row-sm {
  margin-bottom: 8px;
}

.title-row-gap {
  margin-top: 10px;
}

.term-help {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--brand-2);
  cursor: help;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.term-help::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 30;
  pointer-events: none;
}

.term-help::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  right: 8px;
  border: 6px solid transparent;
  border-bottom-color: var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 31;
}

.term-help:hover::after,
.term-help:hover::before,
.term-help:focus::after,
.term-help:focus::before,
.term-help:focus-visible::after,
.term-help:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.term-help-inline {
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
  transform: translateY(-1px);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 15px;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 920px;
  font-size: 14px;
  line-height: 1.65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(128%) blur(1px);
  position: relative;
  overflow: visible;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(27, 94, 167, 0.3) 35%, rgba(15, 140, 109, 0.34) 70%, transparent 100%);
  pointer-events: none;
}

.main-nav {
  margin: 12px 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-soft) 0%, rgba(255, 255, 255, 0.75) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: sticky;
  top: 12px;
  z-index: 40;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(15, 140, 109, 0.18), rgba(27, 94, 167, 0.18));
  border-color: rgba(27, 94, 167, 0.32);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 6px 16px rgba(15, 140, 109, 0.16);
}

.dash-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.dash-page > *,
#dashboardSection,
#dashboardSection > *,
#pageEntities .intel-layout,
#pageEntities .intel-layout > * {
  min-width: 0;
}

.narrow {
  max-width: 430px;
}

.command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.command-actions {
  min-width: min(100%, 480px);
  display: grid;
  gap: 8px;
}

.intel-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.intel-left {
  display: grid;
  gap: 10px;
}

.radar-deck {
  display: grid;
  gap: 10px;
}

.radar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: linear-gradient(150deg, rgba(15, 140, 109, 0.1), rgba(27, 94, 167, 0.05) 72%);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.radar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.radar-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(15, 140, 109, 0.4), 0 8px 18px rgba(15, 140, 109, 0.14);
}

.radar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.radar-name {
  font-weight: 700;
  font-size: 14px;
}

.radar-stats {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.radar-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-1);
}

.radar-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.radar-open {
  margin-top: 8px;
  width: 100%;
}

.insight-board {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface-1);
  min-height: 540px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.insight-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.intel-tabs {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.intel-tab-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  min-height: 38px;
  padding: 7px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.intel-tab-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.intel-tab-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 140, 109, 0.16);
}

.entity-subtabs {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.entity-subtab-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.entity-subtab-btn:hover {
  border-color: var(--line-strong);
}

.entity-subtab-btn.active {
  border-color: var(--brand-2);
  background: rgba(27, 94, 167, 0.14);
  color: var(--text);
}

.entity-tab-pane {
  display: none;
  margin-top: 10px;
}

.entity-tab-pane.active {
  display: block;
}

.tab-pane {
  display: none;
  margin-top: 12px;
}

.tab-pane.active {
  display: block;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.score-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  background: linear-gradient(180deg, rgba(18, 95, 138, 0.05), rgba(18, 95, 138, 0));
}

.card .k,
.score-card .k {
  font-size: 12px;
  color: var(--muted);
}

.card .v,
.score-card .v {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

.insight-section {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--panel-soft);
}

.intel-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.intel-pack-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-1);
}

.intel-pack-box.full {
  grid-column: 1 / -1;
}

.intel-pack-box h5 {
  margin: 0 0 8px;
  font-size: 13px;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.brief-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.timeline-bars {
  display: grid;
  gap: 7px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 55px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.bar-day,
.bar-value {
  color: var(--muted);
}

.bar-track {
  display: flex;
  align-items: center;
}

.bar-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #eff5f2;
}

.bar-progress::-webkit-progress-bar {
  background: #eff5f2;
}

.bar-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.bar-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background:
    linear-gradient(160deg, rgba(15, 140, 109, 0.11), rgba(27, 94, 167, 0.06) 62%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

form {
  display: grid;
  gap: 8px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 9px 10px;
  font-size: 14px;
  background: var(--surface-1);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  accent-color: var(--brand);
  box-shadow: none;
  appearance: auto;
}

button {
  border: 1px solid var(--brand);
  background: linear-gradient(145deg, var(--brand) 0%, #0d7f63 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

button:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.ghost {
  background: var(--surface-1);
  color: var(--brand);
  border-color: var(--line-strong);
}

button.ghost:hover {
  background: var(--brand-soft);
  border-color: rgba(27, 94, 167, 0.38);
  color: var(--text);
}

button.mini {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
  border-color: var(--line);
}

button.radar-metric-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

button.radar-metric-link:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
  color: var(--text);
}

button.radar-metric-link:active {
  transform: none;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  flex: 1;
}

.quick-list {
  display: grid;
  gap: 6px;
}

.quick-item {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid rgba(201, 219, 210, 0.75);
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(27, 94, 167, 0.07), rgba(15, 140, 109, 0.03));
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) {
  background: rgba(27, 94, 167, 0.035);
}

tbody tr:hover {
  background: rgba(15, 140, 109, 0.1);
}

html[data-density="compact"] .panel {
  padding: 12px;
}

html[data-density="compact"] table {
  font-size: 12px;
}

html[data-density="compact"] th,
html[data-density="compact"] td {
  padding: 6px 6px;
}

html[data-density="compact"] .signal-deep-controls {
  gap: 6px;
}

html[data-density="compact"] .raw-input,
html[data-density="compact"] .control-select,
html[data-density="compact"] input,
html[data-density="compact"] button {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

html[data-density="compact"] .cards {
  gap: 9px;
}

.meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-size: 13px;
}

.state-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: var(--surface-1);
}

.state-marker {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

.state-copy {
  min-width: 0;
}

.state-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.state-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.state-empty {
  border-color: color-mix(in srgb, var(--line) 80%, var(--brand-2) 20%);
}

.state-empty .state-marker {
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.state-error {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line) 52%);
  background: color-mix(in srgb, var(--danger) 7%, var(--surface-1) 93%);
}

.state-error .state-marker {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
}

.loading-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 140, 109, 0.08), rgba(27, 94, 167, 0.08)),
    var(--surface-1);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.loading-shell.compact {
  padding: 10px;
  gap: 8px;
}

.loading-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-copy {
  min-width: 0;
}

.loading-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.loading-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(27, 94, 167, 0.2);
  border-top-color: var(--brand-2);
  border-right-color: var(--brand);
  animation: loading-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.loading-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.loading-skeleton-grid.cols-1 {
  grid-template-columns: 1fr;
}

.loading-skeleton-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loading-skeleton-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loading-skeleton-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 94, 167, 0.18);
  background:
    linear-gradient(90deg, rgba(27, 94, 167, 0.08), rgba(15, 140, 109, 0.2), rgba(27, 94, 167, 0.08)),
    var(--surface-2);
  background-size: 220% 100%;
  animation: loading-shimmer 1.4s ease-in-out infinite;
}

.loading-skeleton-bar.w-92 {
  width: 92%;
}

.loading-skeleton-bar.w-78 {
  width: 78%;
}

.loading-skeleton-bar.w-64 {
  width: 64%;
}

.mega-loading-card {
  pointer-events: none;
}

.mega-loading-row {
  margin-top: 8px;
}

.btn-busy {
  cursor: wait;
  opacity: 0.92;
}

.btn-inline-loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  vertical-align: -2px;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .loading-skeleton-bar,
  .btn-inline-loader {
    animation: none;
  }

  .app-toast,
  .app-toast.hide {
    animation: none;
  }
}

.hidden {
  display: none !important;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.alert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.alert-title,
.evidence-title {
  font-weight: 700;
}

.alert-summary {
  margin-top: 6px;
  font-size: 13px;
}

.alert-action {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 700;
}

.severity-high {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.severity-medium {
  border: 1px solid #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.severity-low {
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  background: #eff6ff;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: linear-gradient(132deg, rgba(15, 140, 109, 0.09), rgba(27, 94, 167, 0.04));
}

.evidence-headline {
  font-size: 13px;
  margin-top: 6px;
}

.evidence-context {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.evidence-meta {
  margin-top: 6px;
  font-size: 12px;
}

.evidence-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.evidence-kind {
  display: inline-block;
  min-width: 60px;
  font-size: 11px;
  color: var(--brand-2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.signal-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.signal-box h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.signal-action-btn {
  padding: 5px 8px;
  font-size: 12px;
}

.signal-entity-cell {
  display: grid;
  gap: 4px;
}

.signal-entity-sub {
  font-size: 11px;
  color: var(--muted);
}

.signal-deep-box {
  margin-top: 10px;
  background: linear-gradient(140deg, rgba(11, 143, 101, 0.08), rgba(18, 95, 138, 0.04));
}

.signal-deep-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.signal-deep-controls {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.signal-deep-controls.align-end {
  align-items: end;
}

.signal-deep-controls select {
  min-width: 260px;
}

.analytics-chart-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.analytics-chart-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.analytics-chart-panel-full {
  grid-column: 1 / -1;
}

.analytics-chart-host {
  width: 100%;
  min-width: 0;
}

.analytics-chart-host.chart-lg {
  height: 340px;
}

.analytics-chart-host.chart-md {
  height: 320px;
}

.analytics-chart-host.chart-sm {
  height: 280px;
}

.newsfeed-kpi-card .v {
  font-size: clamp(20px, 1.8vw, 25px);
}

.newsfeed-visual-board {
  margin-top: 10px;
}

.newsfeed-visual-grid {
  margin-top: 0;
}

.newsfeed-visual-card {
  padding: 12px;
}

.newsfeed-highlight-strip {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsfeed-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
}

.newsfeed-pill-label {
  color: var(--muted);
  font-weight: 600;
}

.newsfeed-pill-value {
  color: var(--text);
  font-weight: 700;
}

.newsfeed-severity-risk {
  border-color: color-mix(in srgb, #dc2626 36%, var(--line) 64%);
  background: color-mix(in srgb, #dc2626 8%, var(--surface-2) 92%);
}

.newsfeed-severity-watch {
  border-color: color-mix(in srgb, #d97706 34%, var(--line) 66%);
  background: color-mix(in srgb, #d97706 9%, var(--surface-2) 91%);
}

.newsfeed-severity-good {
  border-color: color-mix(in srgb, #16a34a 34%, var(--line) 66%);
  background: color-mix(in srgb, #16a34a 9%, var(--surface-2) 91%);
}

.newsfeed-severity-info {
  border-color: color-mix(in srgb, #2563eb 34%, var(--line) 66%);
  background: color-mix(in srgb, #2563eb 8%, var(--surface-2) 92%);
}

.newsfeed-insight-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.newsfeed-insight-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
}

.newsfeed-insight-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.newsfeed-insight-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.newsfeed-progress-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.newsfeed-progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) minmax(132px, 190px);
  gap: 8px;
  align-items: center;
}

.newsfeed-progress-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.newsfeed-progress-track {
  height: 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 86%, var(--line) 14%);
  overflow: hidden;
}

.newsfeed-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.newsfeed-progress-fill.tone-risk {
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.newsfeed-progress-fill.tone-watch {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.newsfeed-progress-fill.tone-good {
  background: linear-gradient(90deg, #059669, #10b981);
}

.newsfeed-progress-fill.tone-info {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
}

.newsfeed-progress-value {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.newsfeed-cell-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.newsfeed-table-shell {
  max-height: min(44vh, 360px);
}

.newsfeed-table-shell table {
  min-width: 640px;
}

.newsfeed-table-shell table td:last-child,
.newsfeed-table-shell table th:last-child {
  position: static;
}

.newsfeed-table-shell table td[data-col-key="entity"],
.newsfeed-table-shell table td[data-col-key="page"],
.newsfeed-table-shell table td[data-col-key="assets"] {
  white-space: normal;
}

.all-ads-controls .inline-control {
  min-width: 170px;
}

.all-ads-controls .signals-search-control {
  min-width: min(320px, 100%);
  flex: 1 1 280px;
}

.all-ads-group-strip {
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.all-ads-group-pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.all-ads-group-pill strong {
  font-weight: 700;
  color: var(--text);
}

.all-ads-group-pill .meta {
  color: var(--muted);
}

.all-ads-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#marketOpportunityAllAdsCards > .all-ads-card-grid {
  grid-column: 1 / -1;
  width: 100%;
}

.all-ads-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
}

.all-ads-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.all-ads-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.all-ads-card-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.all-ads-seen-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.all-ads-media-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-2) 86%, #000 14%);
  aspect-ratio: 4 / 3;
}

.all-ads-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.all-ads-media-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
}

.all-ads-creative {
  display: grid;
  gap: 4px;
}

.all-ads-headline {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.all-ads-message {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.all-ads-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.all-ads-link-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-2);
  color: var(--text);
  transition: all 0.16s ease;
}

.all-ads-link-chip:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.all-ads-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.all-ads-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
}

.all-ads-badge.status-mapped {
  color: #0f766e;
  border-color: color-mix(in srgb, #0f766e 35%, var(--line) 65%);
  background: color-mix(in srgb, #0f766e 10%, var(--surface-2) 90%);
}

.all-ads-badge.status-pending_review {
  color: #b45309;
  border-color: color-mix(in srgb, #b45309 35%, var(--line) 65%);
  background: color-mix(in srgb, #b45309 10%, var(--surface-2) 90%);
}

.all-ads-badge.status-quarantine {
  color: #b91c1c;
  border-color: color-mix(in srgb, #b91c1c 35%, var(--line) 65%);
  background: color-mix(in srgb, #b91c1c 10%, var(--surface-2) 90%);
}

.all-ads-badge.status-unmapped {
  color: var(--muted);
}

.all-ads-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.all-ads-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--surface-2);
}

.all-ads-metric .k {
  font-size: 11px;
  color: var(--muted);
}

.all-ads-metric .v {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.all-ads-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  font-size: 12px;
}

.all-ads-detail-grid .k {
  color: var(--muted);
}

.all-ads-detail-grid .v {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.mega-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: end;
}

.mega-filters-grid > .raw-input,
.mega-filters-grid > .control-select,
.mega-filters-grid > button {
  width: 100%;
}

.strategy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.strategy-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 8px;
}

.strategy-subtab-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.strategy-subtab-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.strategy-subtab-btn.active {
  border-color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 18%, var(--surface-2));
  color: var(--text);
  box-shadow: 0 8px 18px rgba(27, 94, 167, 0.18);
}

.strategy-pane {
  display: none;
  margin-top: 2px;
}

.strategy-pane.active {
  display: block;
}

#signalsLayoutHint {
  margin: 2px 2px 10px;
}

.signals-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 8px;
  margin-bottom: 10px;
}

.signals-subtab-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.signals-subtab-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.signals-subtab-btn.active {
  border-color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 18%, var(--surface-2));
  color: var(--text);
  box-shadow: 0 8px 18px rgba(27, 94, 167, 0.18);
}

.signals-pane {
  display: none;
}

.signals-pane.active {
  display: block;
}

#pageSignals .signals-pane[data-signals-pane="product"] {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

#pageSignals .signals-pane[data-signals-pane="trending"] {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

#pageSignals .signals-pane[data-signals-pane="product"] > *,
#pageSignals .signals-pane[data-signals-pane="product"] .product-tab-panel,
#pageSignals .signals-pane[data-signals-pane="product"] .product-status-lanes,
#pageSignals .signals-pane[data-signals-pane="product"] .product-support-grid,
#pageSignals .signals-pane[data-signals-pane="product"] .product-insight-list,
#pageSignals .signals-pane[data-signals-pane="product"] .product-detail-summary,
#pageSignals .signals-pane[data-signals-pane="product"] .product-trust-strip,
#pageSignals .signals-pane[data-signals-pane="product"] .product-saved-views,
#pageSignals .signals-pane[data-signals-pane="product"] .table-shell,
#pageSignals .signals-pane[data-signals-pane="product"] .chart-card,
#pageSignals .signals-pane[data-signals-pane="product"] .cards,
#pageSignals .signals-pane[data-signals-pane="product"] .card,
#pageSignals .signals-pane[data-signals-pane="trending"] > *,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-tab-panel,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lanes,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-support-grid,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-insight-list,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-detail-summary,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-saved-views,
#pageSignals .signals-pane[data-signals-pane="trending"] .table-shell,
#pageSignals .signals-pane[data-signals-pane="trending"] .chart-card,
#pageSignals .signals-pane[data-signals-pane="trending"] .cards,
#pageSignals .signals-pane[data-signals-pane="trending"] .card {
  min-width: 0;
  max-width: 100%;
}

.product-tab-panel + .product-tab-panel {
  margin-top: 10px;
}

#pageSignals .signals-pane[data-signals-pane="product"] .product-tab-panel {
  overflow-x: clip;
}

#signalsProductOverviewCards.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#signalsTrendingOverviewCards.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-trust-strip {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-saved-views,
.product-detail-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-saved-view-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-saved-view-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-ops-top-strip {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.product-workspace-top-controls {
  align-items: end;
}

.product-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-workspace-tab,
.product-workbench-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.product-workspace-tab:hover,
.product-workspace-tab:focus,
.product-workspace-tab:focus-visible,
.product-workspace-tab.active,
.product-workbench-tab:hover,
.product-workbench-tab:focus,
.product-workbench-tab:focus-visible,
.product-workbench-tab.active {
  border-color: color-mix(in srgb, var(--brand-2) 52%, var(--line));
  background: color-mix(in srgb, var(--brand-2) 12%, var(--surface-1));
  color: var(--brand-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 18%, transparent);
  outline: none;
}

.product-workspace-panel[hidden],
.product-workbench-panel.hidden {
  display: none !important;
}

.product-workbench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 92%, transparent), color-mix(in srgb, var(--surface-0) 96%, transparent));
}

.product-workbench-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.product-workbench-creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.product-workbench-creative-card,
.product-workbench-explain-card,
.product-workbench-action-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.product-workbench-creative-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: rgba(255, 255, 255, 0.04);
}

.product-workbench-explain-list,
.product-workbench-action-list {
  display: grid;
  gap: 10px;
}

.product-workbench-action-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

#signalsProductOverviewCards .product-overview-card,
.product-status-lanes > .product-status-lane,
.product-support-grid > .product-tab-panel,
.product-insight-list > .product-insight-card,
#pageSignals .signals-pane[data-signals-pane="product"] .product-detail-card,
#pageSignals .signals-pane[data-signals-pane="product"] .product-detail-links,
#pageSignals .signals-pane[data-signals-pane="product"] .product-trust-strip,
#pageSignals .signals-pane[data-signals-pane="product"] .product-saved-views {
  min-width: 0;
  max-width: 100%;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lanes > .product-status-lane,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-support-grid > .trending-tab-panel,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-insight-list > .product-insight-card,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-detail-card,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-detail-links,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-saved-views {
  min-width: 0;
  max-width: 100%;
}

#signalsProductOverviewCards .product-overview-card {
  overflow: hidden;
}

.product-trust-chip,
.product-lane-chip,
.product-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

#pageSignals .signals-pane[data-signals-pane="product"] .product-trust-chip,
#pageSignals .signals-pane[data-signals-pane="product"] .product-lane-chip,
#pageSignals .signals-pane[data-signals-pane="product"] .product-tag-chip,
#pageSignals .signals-pane[data-signals-pane="product"] .product-count-btn,
#pageSignals .signals-pane[data-signals-pane="product"] .product-link-btn,
#pageSignals .signals-pane[data-signals-pane="product"] .product-saved-view-btn,
#pageSignals .signals-pane[data-signals-pane="product"] .product-deep-link,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-trust-chip,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-lane-chip,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-tag-chip,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-count-btn,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-link-btn,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-saved-view-btn,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-deep-link {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-status-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.product-status-lane {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.product-status-lane h3,
.product-detail-head h3 {
  margin: 0;
  font-size: 14px;
}

.product-status-lane ul,
.product-detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.product-controls {
  margin-top: 8px;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.product-search-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-2);
}

.product-search-loading-badge[hidden] {
  display: none !important;
}

.product-search-loading-badge::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-top-color: var(--brand-2);
  animation: loading-spin 0.8s linear infinite;
}

.signals-search-control[data-busy="1"] .raw-input {
  border-color: color-mix(in srgb, var(--brand-2) 56%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 18%, transparent);
}

#signalsProductPriorityTable {
  position: relative;
  transition: opacity 0.18s ease;
}

#signalsProductEntityBoardTable {
  position: relative;
  transition: opacity 0.18s ease;
}

#signalsProductNewMarketTable {
  position: relative;
  transition: opacity 0.18s ease;
}

#signalsProductPriorityTable[data-busy="1"] .table-shell,
#signalsProductPriorityTable[data-busy="1"] > .state-card,
#signalsProductPriorityTable[data-busy="1"] > .loading-shell {
  opacity: 0.62;
  pointer-events: none;
}

#signalsProductEntityBoardTable[data-busy="1"] .table-shell,
#signalsProductEntityBoardTable[data-busy="1"] > .state-card,
#signalsProductEntityBoardTable[data-busy="1"] > .loading-shell {
  opacity: 0.62;
  pointer-events: none;
}

#signalsProductNewMarketTable[data-busy="1"] .table-shell,
#signalsProductNewMarketTable[data-busy="1"] > .state-card,
#signalsProductNewMarketTable[data-busy="1"] > .loading-shell {
  opacity: 0.62;
  pointer-events: none;
}

.product-priority-pager[data-busy="1"] {
  opacity: 0.7;
}

.product-priority-pager[data-busy="1"] .ghost {
  pointer-events: none;
}

.product-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.product-inline-check > .meta {
  line-height: 1.35;
}

.product-asset-stack {
  display: grid;
  gap: 4px;
}

.product-asset-stack > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

#signalsProductPriorityTable .table-shell {
  overflow-x: auto;
  overflow-y: visible;
}

#signalsProductEntityBoardTable .table-shell {
  overflow-x: auto;
  overflow-y: visible;
}

#signalsProductNewMarketTable .table-shell {
  overflow-x: auto;
  overflow-y: visible;
}

#signalsProductPriorityTable .table-shell table {
  width: max-content;
  min-width: 1560px;
  table-layout: auto;
}

#signalsProductEntityBoardTable .table-shell table {
  width: max-content;
  min-width: 1600px;
  table-layout: auto;
}

#signalsProductNewMarketTable .table-shell table {
  width: max-content;
  min-width: 1600px;
  table-layout: auto;
}

#signalsProductPriorityTable .table-shell table th,
#signalsProductPriorityTable .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 118px;
}

#signalsProductEntityBoardTable .table-shell table th,
#signalsProductEntityBoardTable .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 118px;
}

#signalsProductNewMarketTable .table-shell table th,
#signalsProductNewMarketTable .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 118px;
}

#signalsProductPriorityTable .table-shell table td[data-col-key="product"],
#signalsProductPriorityTable .table-shell table td[data-col-key="what_changed"],
#signalsProductPriorityTable .table-shell table td[data-col-key="why"],
#signalsProductPriorityTable .table-shell table td[data-col-key="assets"],
#signalsProductPriorityTable .table-shell table td[data-col-key="similar_products"] {
  white-space: normal;
  min-width: 240px;
}

#signalsProductEntityBoardTable .table-shell table td[data-col-key="product"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="what_changed"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="why"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="assets"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="similar_products"] {
  white-space: normal;
  min-width: 240px;
}

#signalsProductNewMarketTable .table-shell table td[data-col-key="product"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="what_changed"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="why"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="assets"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="similar_products"] {
  white-space: normal;
  min-width: 240px;
}

#signalsProductPriorityTable .table-shell table td[data-col-key="status"],
#signalsProductPriorityTable .table-shell table td[data-col-key="spread"],
#signalsProductPriorityTable .table-shell table td[data-col-key="phase_metrics"],
#signalsProductPriorityTable .table-shell table td[data-col-key="action_priority"] {
  min-width: 190px;
}

#signalsProductEntityBoardTable .table-shell table td[data-col-key="status"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="spread"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="phase_metrics"],
#signalsProductEntityBoardTable .table-shell table td[data-col-key="action_priority"] {
  min-width: 190px;
}

#signalsProductNewMarketTable .table-shell table td[data-col-key="status"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="spread"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="phase_metrics"],
#signalsProductNewMarketTable .table-shell table td[data-col-key="action_priority"] {
  min-width: 190px;
}

#signalsProductPriorityTable .table-shell table td[data-col-key="trend"] {
  min-width: 128px;
  text-align: center;
}

#signalsProductEntityBoardTable .table-shell table td[data-col-key="trend"] {
  min-width: 128px;
  text-align: center;
}

#signalsProductNewMarketTable .table-shell table td[data-col-key="trend"] {
  min-width: 128px;
  text-align: center;
}

.signals-product-entity-panel {
  display: grid;
  gap: 12px;
}

.signals-product-entity-searchbar,
.signals-product-entity-advanced {
  align-items: end;
}

.signals-product-entity-searchbar > *,
.signals-product-entity-advanced > * {
  min-width: 0;
}

.signals-product-entity-searchbar .ghost,
.signals-product-entity-advanced .ghost {
  min-height: 40px;
}

.product-entity-window-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface-1) 92%, var(--surface-2));
  font-weight: 700;
}

.product-entity-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.product-entity-summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--surface-1) 88%, var(--surface-2));
}

.product-entity-summary-card .label {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-entity-summary-card strong,
.product-entity-summary-card .meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-entity-candidate-chooser {
  display: grid;
  gap: 10px;
}

.product-entity-chooser-head {
  display: grid;
  gap: 4px;
}

.product-entity-chooser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.product-entity-candidate-btn {
  appearance: none;
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-1) 92%, var(--surface-2));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-entity-candidate-btn:hover,
.product-entity-candidate-btn:focus,
.product-entity-candidate-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-2) 42%, var(--line));
  background: color-mix(in srgb, var(--brand-2) 10%, var(--surface-1));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.product-entity-candidate-btn strong,
.product-entity-candidate-btn .meta {
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-cell-stack {
  display: grid;
  gap: 6px;
}

.product-cell-stack > div {
  min-width: 0;
}

.product-market-row {
  display: grid;
  gap: 6px;
}

.product-market-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-market-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.product-market-flag {
  font-size: 14px;
  line-height: 1;
}

.product-cell-section {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-2) 92%, var(--surface-3));
}

.product-cell-section-support {
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
  border-color: color-mix(in srgb, var(--line) 62%, transparent);
}

.product-cell-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.product-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}

.product-token-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-tag-chip-subtle {
  background: rgba(27, 47, 77, 0.78);
  border-color: color-mix(in srgb, var(--line) 72%, var(--brand-2));
  color: color-mix(in srgb, var(--text-2) 82%, var(--brand-2));
}

.product-priority-metric {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

#pageSignals .signals-pane[data-signals-pane="product"] .product-controls > *,
#pageSignals .signals-pane[data-signals-pane="product"] .product-tab-panel .signal-deep-controls > *,
#pageSignals .signals-pane[data-signals-pane="product"] .product-status-lane > *,
#pageSignals .signals-pane[data-signals-pane="product"] .product-insight-card > *,
#pageSignals .signals-pane[data-signals-pane="product"] .product-detail-drawer > *,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-controls > *,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-tab-panel .signal-deep-controls > *,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lane > *,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-insight-card > *,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-detail-drawer > * {
  min-width: 0;
}

#pageSignals .signals-pane[data-signals-pane="product"] .signals-search-control {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

#pageSignals .signals-pane[data-signals-pane="trending"] .signals-search-control {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

#pageSignals .signals-pane[data-signals-pane="product"] .signals-search-control .raw-input,
#pageSignals .signals-pane[data-signals-pane="product"] .control-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .signals-search-control .raw-input,
#pageSignals .signals-pane[data-signals-pane="trending"] .control-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.product-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.trending-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.trending-support-grid-top {
  grid-template-columns: 1fr;
}

.trending-support-grid-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trending-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lanes {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: stretch;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lane,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-detail-card,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-compare-grid > * {
  overflow: hidden;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lane h3,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-status-lane li,
#pageSignals .signals-pane[data-signals-pane="trending"] .product-detail-card li,
#pageSignals .signals-pane[data-signals-pane="trending"] .trending-compare-grid li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .trending-compare-grid .product-detail-list {
  padding-left: 18px;
}

#pageSignals .signals-pane[data-signals-pane="product"] .chart-card,
#pageSignals .signals-pane[data-signals-pane="product"] .table-shell {
  width: 100%;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .chart-card,
#pageSignals .signals-pane[data-signals-pane="trending"] .table-shell {
  width: 100%;
}

#pageSignals .signals-pane[data-signals-pane="product"] .chart-card {
  overflow: hidden;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .chart-card {
  overflow: hidden;
}

#pageSignals .signals-pane[data-signals-pane="product"] .chart-card > div,
#pageSignals .signals-pane[data-signals-pane="product"] .chart-card svg,
#pageSignals .signals-pane[data-signals-pane="product"] .chart-card canvas {
  max-width: 100% !important;
}

#pageSignals .signals-pane[data-signals-pane="trending"] .chart-card > div,
#pageSignals .signals-pane[data-signals-pane="trending"] .chart-card svg,
#pageSignals .signals-pane[data-signals-pane="trending"] .chart-card canvas {
  max-width: 100% !important;
}

.product-insight-list {
  display: grid;
  gap: 10px;
}

.product-insight-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.product-insight-card h3 {
  margin: 0;
  font-size: 14px;
}

.product-count-btn,
.product-link-btn,
.product-saved-view-btn,
.product-deep-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand-2);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
  font-weight: 700;
}

.product-count-btn:hover,
.product-link-btn:hover,
.product-saved-view-btn:hover,
.product-deep-link:hover {
  text-decoration: underline;
}

.product-saved-view-btn,
.product-deep-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
}

.product-saved-view-btn.active {
  border-color: var(--brand-2);
  color: var(--brand-2);
}

.product-deep-link {
  font-weight: 600;
}

.product-trend-cell {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  color: var(--text);
}

.product-trend-trigger {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  border-radius: 10px;
  padding: 4px 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.product-trend-trigger:hover,
.product-trend-trigger:focus,
.product-trend-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--brand-2) 55%, var(--line));
  background: color-mix(in srgb, var(--brand-2) 10%, var(--surface-1));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 30%, transparent);
  outline: none;
}

.product-trend-sparkline {
  display: block;
  color: var(--text);
}

.product-trend-dual-sparkline {
  display: grid;
  gap: 4px;
  min-width: 112px;
  width: 100%;
}

.product-trend-mini {
  display: grid;
  grid-template-columns: 24px minmax(80px, 1fr);
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-1) 86%, transparent);
}

.product-trend-mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-trend-mini-observed .product-trend-mini-label {
  color: color-mix(in srgb, var(--text) 78%, #8ed3ff 22%);
}

.product-trend-mini-new .product-trend-mini-label {
  color: #6de37f;
}

.product-trend-mini-observed {
  border-color: color-mix(in srgb, #8ed3ff 22%, var(--line));
  background: color-mix(in srgb, #8ed3ff 7%, var(--surface-1));
}

.product-trend-mini-new {
  border-color: color-mix(in srgb, #69f08a 24%, var(--line));
  background: color-mix(in srgb, #69f08a 7%, var(--surface-1));
}

.product-trend-sparkline-observed {
  color: color-mix(in srgb, var(--text) 88%, #8ed3ff 12%);
}

.product-trend-bar-sparkline-new {
  color: #4fd36f;
}

.product-trend-hovercard-template {
  display: none;
}

.product-trend-hovercard-portal {
  position: fixed;
  left: -9999px;
  top: -9999px;
  transform: none;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, var(--line));
  border-radius: 14px;
  background: linear-gradient(180deg, #13263f 0%, #0c1829 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 240;
  overflow: auto;
  overscroll-behavior: contain;
  backdrop-filter: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.product-trend-hovercard-portal.trend-card-open {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.product-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-trend-head .meta,
.product-trend-stat .meta,
.product-trend-recent-title {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-trend-window-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
}

.product-trend-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-1) 84%, transparent);
  padding: 8px;
}

.product-trend-svg-lg,
.product-trend-sparkline {
  width: 100%;
  height: auto;
}

.product-trend-svg-lg {
  color: var(--brand-2);
}

.product-trend-svg-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-linecap: round;
}

.product-trend-svg-line-observed {
  filter: drop-shadow(0 0 2px rgba(142, 211, 255, 0.18));
}

.product-trend-svg-dot {
  fill: var(--brand-2);
  stroke: color-mix(in srgb, var(--surface-0) 80%, transparent);
  stroke-width: 1.5;
}

.product-trend-svg-dot-observed {
  fill: #d9f1ff;
}

.product-trend-bar {
  fill: currentColor;
  opacity: 0.94;
}

.product-trend-bar-new {
  fill: color-mix(in srgb, #69f08a 90%, #cbffd3 10%);
  filter: drop-shadow(0 0 3px rgba(80, 214, 111, 0.18));
}

.product-trend-bar-baseline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.52;
}

.product-trend-chart-grid {
  display: grid;
  gap: 8px;
}

.product-trend-chart-card {
  display: grid;
  gap: 6px;
}

.product-trend-chart-card-observed .product-trend-chart {
  border-color: color-mix(in srgb, #8ed3ff 26%, var(--line));
  background: color-mix(in srgb, #8ed3ff 5%, var(--surface-1));
}

.product-trend-chart-card-new .product-trend-chart {
  border-color: color-mix(in srgb, #69f08a 26%, var(--line));
  background: color-mix(in srgb, #69f08a 6%, var(--surface-1));
}

.product-trend-chart-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.product-trend-chart-series-head strong {
  flex: 1 1 auto;
  font-size: 12px;
}

.product-trend-series-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
}

.product-trend-series-dot-observed {
  background: color-mix(in srgb, var(--text) 72%, #8ed3ff 28%);
  box-shadow: 0 0 0 3px rgba(142, 211, 255, 0.12);
}

.product-trend-series-dot-new {
  background: #59da73;
  box-shadow: 0 0 0 3px rgba(89, 218, 115, 0.12);
}

.product-trend-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-trend-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.product-trend-stat .label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-trend-stat strong {
  font-size: 18px;
  line-height: 1.1;
}

.product-trend-recent ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.product-trend-recent li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.product-trend-recent li strong {
  font-size: 12px;
}

.product-trend-recent-new {
  color: #72e189;
}

.product-trend-empty {
  color: var(--muted);
}

html.app-modal-open,
body.app-modal-open {
  overflow: hidden;
}

body.app-modal-open {
  padding-right: var(--app-scroll-lock-pad, 0px);
}

.product-trend-modal {
  position: fixed;
  inset: 0;
  z-index: 342;
  padding: 24px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.product-trend-modal-surface {
  width: min(1240px, calc(100vw - 24px));
  max-width: 100%;
  max-height: calc(100vh - 48px);
  border: 1px solid color-mix(in srgb, var(--brand-2) 26%, var(--line));
  border-radius: 20px;
  background: #0c1828;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48);
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 14px;
  padding: 18px;
  pointer-events: auto;
}

.product-name-family-modal .product-trend-modal-surface {
  width: min(1820px, calc(100vw - 16px));
  max-height: calc(100vh - 24px);
  padding: 18px;
}

.product-asset-detail-modal .product-trend-modal-surface {
  width: min(1700px, calc(100vw - 16px));
  max-height: calc(100vh - 24px);
}

.product-branch-detail-modal .product-trend-modal-surface {
  width: min(1620px, calc(100vw - 16px));
  max-height: calc(100vh - 24px);
}

.product-trend-modal-surface > * {
  min-width: 0;
}

.product-trend-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.98) 0%, rgba(12, 24, 40, 0.96) 100%);
  backdrop-filter: blur(12px);
}

.product-trend-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-trend-window-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-trend-window-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 34px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.product-trend-window-btn:hover,
.product-trend-window-btn:focus,
.product-trend-window-btn:focus-visible,
.product-trend-window-btn.active {
  border-color: color-mix(in srgb, var(--brand-2) 52%, var(--line));
  background: color-mix(in srgb, var(--brand-2) 12%, var(--surface-1));
  color: var(--brand-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 20%, transparent);
  outline: none;
}

.product-trend-window-btn[data-busy="1"] {
  position: relative;
  padding-right: 28px;
}

.product-trend-window-btn[data-busy="1"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--brand-2) 28%, transparent);
  border-top-color: var(--brand-2);
  animation: product-chip-spin 0.8s linear infinite;
}

@keyframes product-chip-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.product-trend-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.product-trend-insight-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.product-trend-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-trend-chart-head-responsive {
  flex-wrap: wrap;
}

.product-trend-chart-head h4 {
  margin: 0;
}

.product-trend-chart-head .meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-trend-insight-chart-surface {
  min-height: 300px;
}

.product-trend-grouping-chips {
  justify-content: flex-end;
}

.product-trend-grouping-btn {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
}

.product-trend-caption-card {
  border-color: color-mix(in srgb, #7dd3fc 22%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, #7dd3fc 4%, #0f2035 96%), #0f2035);
}

.product-asset-modal-grid {
  grid-template-columns: minmax(0, 1fr);
}

#signalsProductNameFamilyDetailList .table-shell {
  overflow-x: auto;
  overflow-y: visible;
}

#signalsProductNameFamilyDetailList .table-shell table {
  width: max-content;
  min-width: 2460px;
  table-layout: auto;
}

#signalsProductNameFamilyDetailList .table-shell table th,
#signalsProductNameFamilyDetailList .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 140px;
}

#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="product_name"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="family_match"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="what_changed"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="why"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="spread"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="assets"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="similar_products"] {
  min-width: 240px;
}

#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="status"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="phase_metrics"],
#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="action_priority"] {
  min-width: 190px;
}

#signalsProductNameFamilyDetailList .table-shell table td[data-col-key="trend"] {
  min-width: 136px;
  text-align: center;
}

.product-trend-modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.product-trend-modal .chart-card {
  min-height: 320px;
  background: #0f2035;
  border-color: color-mix(in srgb, var(--brand-2) 16%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.product-asset-modal-list {
  display: grid;
  gap: 10px;
  align-self: stretch;
  min-width: 0;
}

.product-asset-modal-list .table-shell {
  margin: 0;
}

#signalsProductBranchDetailList .table-shell {
  overflow-x: auto;
  overflow-y: visible;
}

#signalsProductBranchDetailList .table-shell table {
  width: max-content;
  min-width: 1280px;
  table-layout: auto;
}

#signalsProductBranchDetailList .table-shell table th,
#signalsProductBranchDetailList .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 112px;
}

#signalsProductBranchDetailList .table-shell table td[data-col-key="business"] {
  min-width: 220px;
}

.product-asset-modal-list .table-wrap {
  max-height: clamp(360px, 46vh, 620px);
}

.product-asset-detail-modal #signalsProductAssetDetailChart {
  min-height: 360px;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-shell,
.product-asset-detail-modal .product-asset-modal-list .table-shell {
  width: 100%;
  min-width: 0;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-shell table,
.product-asset-detail-modal .product-asset-modal-list .table-shell table {
  width: 100%;
  min-width: max(100%, 1240px);
  table-layout: fixed;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-head-viewport,
.product-asset-detail-modal .product-asset-modal-list .data-grid-body-viewport {
  width: 100%;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-body-viewport {
  max-height: clamp(360px, 46vh, 620px);
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-head-cell,
.product-asset-detail-modal .product-asset-modal-list .data-grid-sort-label {
  min-width: 0;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-head-table th,
.product-asset-detail-modal .product-asset-modal-list .data-grid-body-table td,
.product-asset-detail-modal .product-asset-modal-list .table-shell table th,
.product-asset-detail-modal .product-asset-modal-list .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-head-table th.num,
.product-asset-detail-modal .product-asset-modal-list .data-grid-body-table td.num {
  white-space: nowrap;
}

.product-asset-detail-modal .product-asset-modal-list .data-grid-filter-input {
  min-width: 0;
}

.product-trend-modal-recent .product-detail-card,
.product-asset-modal-list .table-shell,
.product-trend-modal-stats .product-trend-stat {
  background: #10233a;
  border-color: color-mix(in srgb, var(--brand-2) 14%, var(--line));
}

.product-trend-modal-recent .product-detail-list {
  margin: 0;
}

.product-trend-modal-recent .product-trend-recent-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-trend-modal-recent .product-trend-recent-head,
.product-trend-modal-recent .product-detail-list.product-trend-recent-grid li {
  display: grid;
  grid-template-columns: minmax(92px, 1.15fr) repeat(4, minmax(56px, 0.7fr));
  gap: 10px;
  align-items: center;
}

.product-trend-modal-recent .product-trend-recent-head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-trend-modal-recent .product-detail-list li {
  gap: 10px;
}

.product-trend-modal-recent .product-detail-list.product-trend-recent-grid li strong {
  text-align: right;
}

.product-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 18, 0.76);
  backdrop-filter: blur(8px);
  z-index: 340;
}

.product-detail-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(1520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-0);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  z-index: 341;
  padding: 18px 20px 20px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}

.product-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.product-workbench-state-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.product-detail-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 12px;
}

.product-detail-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.product-detail-card.active-flash {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 28%, transparent);
}

@media (max-width: 1180px) {
  #signalsProductOverviewCards.cards,
  .product-status-lanes,
  .product-support-grid,
  #signalsTrendingOverviewCards.cards,
  .trending-support-grid-bottom,
  .trending-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trending-support-grid-top {
    grid-template-columns: 1fr;
  }

  .product-entity-chooser-grid,
  .product-entity-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #signalsProductOverviewCards.cards,
  .product-status-lanes,
  .product-support-grid,
  .product-detail-summary,
  #signalsTrendingOverviewCards.cards,
  .trending-support-grid-top,
  .trending-support-grid-bottom,
  .trending-compare-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-drawer {
    top: 8px;
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
  }

  .product-trend-modal {
    padding: 8px;
  }

  .product-trend-modal-surface {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 14px;
    border-radius: 16px;
  }

  .product-name-family-modal .product-trend-modal-surface {
    width: 100%;
    max-height: calc(100vh - 12px);
    padding: 12px;
  }

  .product-trend-hovercard-portal {
    width: min(320px, calc(100vw - 32px));
  }

  .product-trend-modal-grid,
  .product-trend-modal-stats,
  .product-trend-stats {
    grid-template-columns: 1fr;
  }

  .product-trend-modal-recent .product-trend-recent-head,
  .product-trend-modal-recent .product-detail-list.product-trend-recent-grid li {
    grid-template-columns: minmax(84px, 1fr) repeat(4, minmax(48px, 0.7fr));
  }
}

.strategy-layout > .panel {
  min-width: 0;
}

.strategy-layout > .panel:only-child {
  grid-column: 1 / -1;
}

.strategy-layout-bottom {
  grid-template-columns: 1fr;
}

.strategy-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.strategy-control-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: end;
}

.strategy-control-label {
  min-height: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.strategy-control-label-ghost {
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.strategy-filters > .strategy-control-field > .raw-input,
.strategy-filters > .strategy-control-field > .control-select,
.strategy-filters > .strategy-control-field > button {
  width: 100%;
  min-width: 0;
}

#strategyGraphPanelHost {
  scroll-margin-top: 150px;
}

.strategy-graph-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: color-mix(in srgb, var(--surface-2) 76%, var(--surface-1));
}

.strategy-graph-view-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text);
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.strategy-graph-view-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.strategy-graph-view-btn.active {
  border-color: color-mix(in srgb, var(--brand-2) 58%, var(--line));
  background: color-mix(in srgb, var(--brand-2) 14%, var(--surface-2));
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.strategy-graph-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.strategy-graph-panel.graph-view-mode-graph #strategyGraphTable {
  display: none;
}

.strategy-graph-panel.graph-view-mode-table #strategyGraphViz {
  display: none;
}

.strategy-graph-panel.graph-view-mode-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.strategy-graph-panel.graph-view-mode-split #strategyGraphTable {
  margin-top: 8px;
}

#pageStrategy {
  gap: 14px;
  overflow-x: hidden;
}

#pageStrategy .panel {
  background:
    linear-gradient(170deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent 38%),
    linear-gradient(0deg, var(--panel) 0%, var(--panel) 100%);
  overflow: hidden;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

#pageStrategy .table-shell {
  max-width: 100%;
  max-height: min(58vh, 560px);
}

#pageStrategy .signal-deep-controls select {
  min-width: 0;
}

#pageStrategy .title-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

#pageStrategy .title-row h3,
#pageStrategy .title-row h4 {
  margin: 0;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.35;
  flex: 1 1 260px;
  min-width: 0;
}

#pageStrategy .title-row .term-help {
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 2px;
}

#pageStrategy .cards .card {
  min-height: 92px;
}

#pageStrategy .strategy-filters > .strategy-control-field > .raw-input,
#pageStrategy .strategy-filters > .strategy-control-field > .control-select,
#pageStrategy .strategy-filters > .strategy-control-field > button {
  min-height: 44px;
}

#pageStrategy .table-shell table {
  min-width: 640px;
}

#pageStrategy .table-shell table th,
#pageStrategy .table-shell table td {
  white-space: nowrap;
  vertical-align: top;
  line-height: 1.45;
  font-size: 12px;
  padding: 8px 8px;
}

#pageStrategy .table-shell table td.num,
#pageStrategy .table-shell table th.num {
  white-space: nowrap;
}

#pageStrategy .table-shell table th {
  font-size: 12px;
}

#pageStrategy .table-shell table td:last-child,
#pageStrategy .table-shell table th:last-child {
  position: static;
  background: transparent;
}

#pageStrategy .table-shell table td[data-col-key] {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pageStrategy .table-shell table td[data-col-key="action"],
#pageStrategy .table-shell table td[data-col-key="root"],
#pageStrategy .table-shell table td[data-col-key="context"],
#pageStrategy .table-shell table td[data-col-key="headline"],
#pageStrategy .table-shell table td[data-col-key="sample"],
#pageStrategy .table-shell table td[data-col-key="url_sample"],
#pageStrategy .table-shell table td[data-col-key="price_sample"] {
  white-space: normal;
  max-width: 320px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#pageStrategy .table-shell table td[data-col-key="entity"],
#pageStrategy .table-shell table td[data-col-key="product"],
#pageStrategy .table-shell table td[data-col-key="rival"],
#pageStrategy .table-shell table td[data-col-key="title"] {
  max-width: 200px;
}

.genealogy-viz-shell {
  margin-top: 8px;
}

.genealogy-viz {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.genealogy-viz-head {
  display: grid;
  gap: 4px;
}

.genealogy-viz-head h4 {
  margin: 0;
  font-size: 15px;
}

.genealogy-viz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.genealogy-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.genealogy-filter-label {
  font-weight: 700;
  margin-right: 2px;
}

.genealogy-filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  min-height: 32px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.genealogy-filter-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.genealogy-filter-btn.active {
  border-color: color-mix(in srgb, var(--brand-2) 62%, var(--line));
  background: color-mix(in srgb, var(--brand-2) 16%, var(--surface-2));
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.genealogy-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
}

.genealogy-dot.type-sub_entity { background: #3bb3ff; }
.genealogy-dot.type-domain { background: #2ac6b0; }
.genealogy-dot.type-landing { background: #6ea9ff; }
.genealogy-dot.type-fanpage { background: #ffb443; }
.genealogy-dot.type-pixel { background: #f372a6; }
.genealogy-dot.type-form { background: #f97373; }
.genealogy-dot.type-product { background: #8fd66c; }
.genealogy-dot.type-creative { background: #b68bff; }

.asset-pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.asset-pattern-grid-tight {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
}

.asset-pattern-cards {
  margin-top: 8px;
  margin-bottom: 10px;
}

.asset-pattern-chip-row {
  margin-top: 6px;
  margin-bottom: 10px;
}

.asset-pattern-evidence-box {
  margin-top: 12px;
}

#pageAsset .asset-pattern-grid .signal-box,
#pageAsset .asset-pattern-evidence-box,
#pageAsset .asset-pattern-grid > div,
#pageAsset .asset-pattern-grid > section {
  min-width: 0;
  max-width: 100%;
}

#pageAsset .asset-pattern-grid .table-shell,
#pageAsset .asset-pattern-evidence-box .table-shell {
  max-width: 100%;
}

@media (max-width: 980px) {
  .asset-pattern-grid-tight {
    grid-template-columns: 1fr;
  }
}

.genealogy-count {
  opacity: 0.86;
  font-weight: 800;
}

.genealogy-action-group {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.genealogy-action-btn {
  min-height: 32px;
  padding: 4px 10px;
}

.genealogy-viz-help {
  margin: 0;
}

.genealogy-viz-canvas {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(820px 320px at 12% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 56%),
    radial-gradient(760px 340px at 88% 0%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 56%),
    linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

.genealogy-svg {
  display: block;
  width: 100%;
  height: min(58vh, 560px);
  min-height: 420px;
  touch-action: none;
  cursor: grab;
}

.genealogy-svg:active {
  cursor: grabbing;
}

.genealogy-edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-opacity: 0.48;
}

.genealogy-edge.edge-contains {
  stroke: color-mix(in srgb, var(--brand-2) 48%, var(--line-strong));
  stroke-opacity: 0.66;
}

.genealogy-edge.edge-shared {
  stroke: color-mix(in srgb, var(--brand) 44%, var(--line-strong));
}

.genealogy-edge.edge-cluster {
  stroke: color-mix(in srgb, var(--warn) 46%, var(--line-strong));
}

.genealogy-node circle {
  stroke-width: 1.6;
  stroke: var(--line-strong);
  fill: var(--surface-2);
}

.genealogy-node.node-entity circle {
  fill: color-mix(in srgb, var(--brand-2) 40%, var(--surface-2));
  stroke: color-mix(in srgb, var(--brand-2) 78%, var(--line-strong));
}

.genealogy-node.node-sub_entity circle {
  fill: color-mix(in srgb, #3bb3ff 34%, var(--surface-2));
  stroke: color-mix(in srgb, #3bb3ff 74%, var(--line-strong));
}

.genealogy-node.node-domain circle {
  fill: color-mix(in srgb, #2ac6b0 34%, var(--surface-2));
  stroke: color-mix(in srgb, #2ac6b0 72%, var(--line-strong));
}

.genealogy-node.node-landing circle {
  fill: color-mix(in srgb, #6ea9ff 34%, var(--surface-2));
  stroke: color-mix(in srgb, #6ea9ff 72%, var(--line-strong));
}

.genealogy-node.node-fanpage circle {
  fill: color-mix(in srgb, #ffb443 30%, var(--surface-2));
  stroke: color-mix(in srgb, #ffb443 72%, var(--line-strong));
}

.genealogy-node.node-pixel circle {
  fill: color-mix(in srgb, #f372a6 32%, var(--surface-2));
  stroke: color-mix(in srgb, #f372a6 74%, var(--line-strong));
}

.genealogy-node.node-form circle {
  fill: color-mix(in srgb, #f97373 32%, var(--surface-2));
  stroke: color-mix(in srgb, #f97373 74%, var(--line-strong));
}

.genealogy-node.node-product circle {
  fill: color-mix(in srgb, #8fd66c 32%, var(--surface-2));
  stroke: color-mix(in srgb, #8fd66c 72%, var(--line-strong));
}

.genealogy-node.node-creative circle {
  fill: color-mix(in srgb, #b68bff 34%, var(--surface-2));
  stroke: color-mix(in srgb, #b68bff 74%, var(--line-strong));
}

.genealogy-label {
  fill: var(--text);
  font-size: 10px;
  text-anchor: middle;
  pointer-events: none;
  font-family: var(--font-body);
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--surface-1) 70%, transparent);
  stroke-width: 2px;
}

.genealogy-label.label-entity {
  font-size: 12px;
  font-weight: 800;
}

.genealogy-label.label-sub_entity {
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1360px) {
  .strategy-layout,
  .strategy-layout-bottom {
    grid-template-columns: 1fr;
  }

  #pageStrategy .table-shell table {
    min-width: 560px;
  }
}

@media (max-width: 920px) {
  .strategy-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .strategy-control-label-ghost {
    display: none;
  }

  .strategy-subtabs {
    padding: 7px;
  }

  .strategy-subtab-btn {
    flex: 1 1 100%;
  }

  .signals-subtabs {
    padding: 7px;
  }

  .signals-subtab-btn {
    flex: 1 1 100%;
  }

  .strategy-graph-view-btn {
    flex: 1 1 100%;
  }

  #pageStrategy .title-row .term-help {
    margin-left: 0;
  }

  #pageStrategy .table-shell {
    max-height: min(52vh, 500px);
  }

  .genealogy-viz-toolbar {
    align-items: flex-start;
  }

  .genealogy-action-group {
    margin-left: 0;
  }

  .genealogy-svg {
    height: min(54vh, 460px);
    min-height: 320px;
  }

  .strategy-graph-panel.graph-view-mode-split {
    grid-template-columns: 1fr;
  }
}

.mega-group-stack {
  display: grid;
  gap: 10px;
}

.mega-group-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 8%, transparent), transparent 48%);
}

.mega-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mega-group-head h4 {
  margin: 0;
}

#megaTable .data-grid-shell .data-grid-body-table tr[data-mega-row='1'] {
  cursor: pointer;
}

#megaTable .data-grid-shell .data-grid-body-table tr.expanded td {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2) 90%);
}

#megaTable .data-grid-shell .data-grid-body-table tr.expanded td[data-col-frozen='1'] {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2) 90%);
}

.mega-detail-host {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 42%),
    var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mega-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.mega-detail-heading {
  display: grid;
  gap: 4px;
}

.mega-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#pageAsset .panel {
  background:
    linear-gradient(175deg, rgba(15, 140, 109, 0.08), transparent 34%),
    linear-gradient(0deg, var(--panel) 0%, var(--panel) 100%);
}

#pageAsset .asset-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#pageAsset .asset-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

#pageAsset .asset-main {
  display: grid;
  gap: 12px;
}

#pageAsset .asset-control-panel .section-head,
#pageAsset .asset-output-panel .section-head {
  margin-bottom: 4px;
}

#pageAsset .asset-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: stretch;
}

#pageAsset .asset-control-grid > .raw-input,
#pageAsset .asset-control-grid > .control-select,
#pageAsset .asset-control-grid > button {
  width: 100%;
}

#pageAsset .asset-control-grid > button {
  justify-self: stretch;
}

#pageAsset .asset-mode-head {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

#pageAsset .asset-mode-tabs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

#pageAsset .asset-mode-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

#pageAsset .asset-mode-btn:hover {
  border-color: var(--brand-2);
  background: var(--surface-2);
}

#pageAsset .asset-mode-btn.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), color-mix(in srgb, var(--brand-2) 12%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent) inset;
}

#pageClone .clone-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#pageClone .clone-anchor-panel {
  scroll-margin-top: 92px;
}

#pageClone .clone-journey-panel {
  padding: 16px;
}

#pageClone .clone-journey-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#pageClone .clone-journey-chip {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 170, 255, 0.22);
  background: linear-gradient(180deg, rgba(17, 41, 74, 0.72), rgba(8, 19, 38, 0.78));
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#pageClone .clone-journey-chip:hover {
  border-color: rgba(145, 210, 255, 0.5);
  transform: translateY(-1px);
}

#pageClone .clone-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

#pageClone .clone-ops-stack {
  display: grid;
  gap: 16px;
}

#pageClone .clone-library-controls,
#pageClone .clone-builder-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
}

#pageClone .clone-library-toolbar,
#pageClone .clone-builder-manager-toolbar {
  display: grid;
  gap: 12px;
}

#pageClone .clone-library-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

#pageClone .clone-library-action-row,
#pageClone .clone-builder-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#pageClone .clone-builder-tag-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

#pageClone .clone-builder-mini-btn {
  min-height: 32px;
  padding: 6px 10px;
}

#pageClone .clone-builder-manager-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#pageClone .clone-builder-manager-rail,
#pageClone .clone-builder-manager-main,
#pageClone .clone-builder-detail-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#pageClone .clone-builder-manager-block,
#pageClone .clone-builder-detail-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(102, 170, 255, 0.14);
  background: rgba(7, 18, 34, 0.48);
}

#pageClone .clone-builder-saved-views,
#pageClone .clone-builder-tag-rail,
#pageClone .clone-builder-tag-row,
#pageClone .clone-builder-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#pageClone .clone-builder-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

#pageClone .clone-builder-preference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: center;
}

#pageClone .clone-builder-secondary-block .cards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#pageClone .clone-builder-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 30px;
  padding: 6px 12px;
  background: rgba(27, 94, 167, 0.08);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

#pageClone .clone-builder-chip.is-active,
#pageClone .clone-builder-chip:hover {
  border-color: rgba(102, 170, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(102, 170, 255, 0.18) inset;
}

#pageClone .clone-builder-chip.is-static {
  cursor: default;
}

#pageClone .clone-builder-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-2);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

#pageClone .clone-builder-cell-stack,
#pageClone .clone-builder-metric-stack {
  display: grid;
  gap: 6px;
}

#pageClone .clone-builder-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#pageClone .clone-builder-detail-head h4 {
  margin: 0;
}

#pageClone .clone-builder-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

#pageClone .clone-builder-fact-grid strong {
  display: block;
  margin-top: 2px;
}

#pageClone .clone-builder-detail-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#pageClone .clone-builder-empty-guide h4 {
  margin: 0;
}

#pageClone .clone-builder-empty-guide .meta {
  margin-top: 8px;
}

#pageClone .clone-builder-inline-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#pageClone #cloneBuilderConflictTable,
#pageClone #cloneBuilderCleanupTable,
#pageClone #cloneBuilderTemplateTable,
#pageClone #cloneBuilderNotificationTable {
  border-top: 1px solid rgba(102, 170, 255, 0.12);
  padding-top: 10px;
}

#pageClone #cloneBuilderConflictTable .table-shell,
#pageClone #cloneBuilderCleanupTable .table-shell,
#pageClone #cloneBuilderTemplateTable .table-shell,
#pageClone #cloneBuilderNotificationTable .table-shell {
  max-height: clamp(180px, 28vh, 340px);
}

#pageClone #cloneBuilderInventoryTable .table-shell,
#pageClone #cloneBuilderActivityTable .table-shell {
  max-height: clamp(240px, 34vh, 460px);
}

#pageClone #cloneLibrarySearchInput {
  grid-column: 1 / span 2;
}

#pageClone #cloneLibrarySummaryCards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#pageClone .clone-ops-stack > .panel,
#pageClone .clone-main-grid > .panel,
#pageClone .clone-history-grid > .panel,
#pageClone .clone-qa-grid > .panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  min-width: 0;
}

#pageClone .clone-ops-stack .table-shell,
#pageClone .clone-main-grid .table-shell,
#pageClone .clone-history-grid .table-shell,
#pageClone .clone-qa-grid .table-shell,
#pageClone #cloneQaTable,
#pageClone #cloneZoneList {
  flex: 1 1 auto;
  max-height: clamp(240px, 38vh, 560px);
  overflow: auto;
}

#pageClone #cloneRecentArchivesTable .table-shell,
#pageClone #cloneRecentTemplatesTable .table-shell,
#pageClone #cloneRecentQaTable .table-shell {
  max-height: clamp(220px, 28vh, 420px);
}

#pageClone .clone-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

#pageClone .clone-history-grid,
#pageClone .clone-qa-grid {
  grid-template-columns: 1fr;
}

#pageClone .clone-builder-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

#pageClone .clone-builder-section-panel,
#pageClone .clone-preview-frame-shell,
#pageClone .clone-iframe-device {
  min-width: 0;
}

#pageClone .clone-builder-stack > .clone-builder-section-panel:last-child {
  grid-column: 1 / -1;
}

#pageClone .clone-builder-section-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(102, 170, 255, 0.12);
  background: rgba(7, 18, 34, 0.54);
}

#pageClone .clone-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#pageClone .clone-section-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pageClone .clone-section-drop-zone {
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(120, 180, 255, 0.2);
  background: rgba(6, 15, 29, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#pageClone .clone-section-drop-zone.is-over {
  border-color: rgba(120, 180, 255, 0.5);
  background: rgba(18, 39, 72, 0.58);
}

#pageClone .clone-section-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(102, 170, 255, 0.15);
  background: linear-gradient(180deg, rgba(18, 41, 72, 0.62), rgba(8, 19, 38, 0.72));
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#pageClone .clone-section-card:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 192, 255, 0.34);
}

#pageClone .clone-section-card.is-active {
  border-color: rgba(151, 214, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(151, 214, 255, 0.16) inset;
}

#pageClone .clone-section-card.is-dragging {
  opacity: 0.4;
}

#pageClone .clone-section-card .meta {
  font-size: 12px;
}

#pageClone .clone-tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#pageClone .clone-tracking-grid textarea {
  min-height: 90px;
}

#pageClone .clone-preview-frame-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(620px, calc(100vh - 250px), 920px);
  padding: 8px;
  border: 1px solid rgba(102, 170, 255, 0.12);
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(77, 140, 255, 0.12), rgba(8, 18, 36, 0.2));
  overflow: auto;
}

#pageClone .clone-iframe-device {
  position: relative;
  box-sizing: border-box;
  width: min(428px, 100%);
  min-height: 0;
  border-radius: 30px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.98), rgba(4, 10, 20, 0.98));
  border: 1px solid rgba(138, 191, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

#pageClone #clonePreviewFrame {
  box-sizing: border-box;
  width: 100%;
  min-height: 844px;
  border: 0;
  border-radius: 24px;
  background: #07111f;
}

#pageClone #clonePreviewFrame.is-frame-empty {
  opacity: 0;
  pointer-events: none;
}

#pageClone .clone-frame-empty {
  position: absolute;
  inset: 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px dashed rgba(102, 170, 255, 0.24);
  background:
    radial-gradient(circle at top, rgba(77, 140, 255, 0.12), rgba(8, 18, 36, 0.88)),
    rgba(7, 17, 31, 0.96);
  color: rgba(226, 237, 255, 0.84);
  text-align: center;
  z-index: 1;
}

#pageClone .clone-frame-empty strong {
  font-size: 16px;
  color: #f5fbff;
}

#pageClone .clone-frame-empty span {
  max-width: 280px;
  line-height: 1.5;
  font-size: 13px;
}

#pageClone .clone-main-grid > .panel:last-child {
  position: sticky;
  top: 20px;
}

#pageClone #cloneZoneList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

#pageClone .clone-zone-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(102, 170, 255, 0.14);
  background: rgba(8, 20, 42, 0.56);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#pageClone .clone-zone-item.is-active {
  border-color: rgba(255, 209, 102, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.3), 0 16px 28px rgba(0, 0, 0, 0.18);
  background: rgba(28, 34, 56, 0.9);
}

#pageClone .clone-zone-item .meta {
  font-size: 12px;
}

#pageClone .clone-zone-item input,
#pageClone .clone-zone-item textarea {
  width: 100%;
}

#pageClone .clone-quick-edit-card {
  margin: 14px 0;
  border: 1px solid rgba(255, 209, 102, 0.24);
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.94), rgba(10, 18, 34, 0.92));
}

#pageClone #cloneQuickEditInput {
  width: 100%;
  min-height: 96px;
}

#pageClone .clone-library-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#pageLandingDomains .domain-manager-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#pageLandingDomains .domain-manager-hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(780px 240px at 0% 0%, rgba(37, 201, 151, 0.14), transparent 58%),
    radial-gradient(720px 240px at 100% 0%, rgba(106, 175, 255, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(18, 34, 49, 0.96), rgba(13, 26, 39, 0.98));
}

#pageLandingDomains .domain-manager-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 201, 151, 0.18), transparent 66%);
  pointer-events: none;
}

#pageLandingDomains .domain-manager-hero-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

#pageLandingDomains .domain-manager-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 201, 151, 0.24);
  background: rgba(37, 201, 151, 0.12);
  color: #bff7e5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#pageLandingDomains .domain-manager-lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(228, 239, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}

#pageLandingDomains .domain-manager-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#pageLandingDomains .domain-manager-step-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  min-height: 108px;
  border-radius: 18px;
  border: 1px solid rgba(106, 175, 255, 0.16);
  background: linear-gradient(180deg, rgba(19, 37, 54, 0.96), rgba(14, 28, 42, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#pageLandingDomains .domain-manager-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 201, 151, 0.22), rgba(106, 175, 255, 0.22));
  color: #f3fbff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

#pageLandingDomains .domain-manager-step-card strong,
#pageLandingDomains .domain-manager-hostline strong,
#pageLandingDomains .domain-manager-detail-hero h3,
#pageLandingDomains .domain-manager-metric strong {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

#pageLandingDomains .domain-manager-toolbar {
  margin-top: 16px;
}

#pageLandingDomains #landingDomainManagerSummaryCards {
  margin-top: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#pageLandingDomains .domain-manager-grid {
  grid-template-columns: minmax(380px, 0.98fr) minmax(0, 1.02fr);
  align-items: start;
}

#pageLandingDomains .domain-manager-detail-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

#pageLandingDomains .domain-manager-bind-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  position: sticky;
  top: 16px;
}

#pageLandingDomains .domain-manager-storefront-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(102, 170, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(12, 28, 52, 0.88), rgba(9, 20, 38, 0.94)),
    radial-gradient(circle at top left, rgba(37, 201, 151, 0.12), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#pageLandingDomains .builder-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#pageLandingDomains .builder-field {
  display: grid;
  gap: 6px;
}

#pageLandingDomains .builder-field-full {
  grid-column: 1 / -1;
}

#pageLandingDomains .builder-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#pageLandingDomains .builder-list {
  display: grid;
  gap: 10px;
}

#pageLandingDomains .domain-manager-quickstart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

#pageLandingDomains .domain-manager-quickstart-pill {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(106, 175, 255, 0.16);
  background: rgba(11, 26, 43, 0.72);
}

#pageLandingDomains .domain-manager-inventory-list {
  display: grid;
  gap: 12px;
}

#pageLandingDomains .domain-manager-inventory-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(102, 170, 255, 0.12);
  background: linear-gradient(180deg, rgba(15, 30, 48, 0.86), rgba(10, 20, 34, 0.96));
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#pageLandingDomains .domain-manager-inventory-card:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 175, 255, 0.24);
  box-shadow: var(--shadow-md);
}

#pageLandingDomains .domain-manager-inventory-card.is-selected {
  border-color: rgba(37, 201, 151, 0.28);
  box-shadow: 0 0 0 1px rgba(37, 201, 151, 0.16) inset, var(--shadow-md);
}

#pageLandingDomains .domain-manager-inventory-head,
#pageLandingDomains .domain-manager-hostline,
#pageLandingDomains .domain-manager-dns-card-head,
#pageLandingDomains .domain-manager-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#pageLandingDomains .domain-manager-inventory-head {
  justify-content: space-between;
}

#pageLandingDomains .domain-manager-host-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#pageLandingDomains .domain-manager-hostline strong {
  font-size: 18px;
  color: #f6fbff;
}

#pageLandingDomains .domain-manager-detail-hero h3 {
  margin: 0;
  font-size: 22px;
  color: #f6fbff;
}

#pageLandingDomains .domain-manager-peek-btn {
  white-space: nowrap;
}

#pageLandingDomains .domain-manager-inventory-metrics,
#pageLandingDomains .domain-manager-storefront-grid,
#pageLandingDomains .domain-manager-storefront-facts {
  display: grid;
  gap: 12px;
}

#pageLandingDomains .domain-manager-inventory-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#pageLandingDomains .domain-manager-storefront-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pageLandingDomains .domain-manager-storefront-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#pageLandingDomains .domain-manager-industry-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(102, 170, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 20, 42, 0.48), rgba(7, 16, 30, 0.62));
}

#pageLandingDomains .domain-manager-industry-summary strong {
  color: #f6fbff;
  font-size: 15px;
}

#pageLandingDomains .domain-manager-industry-summary ul {
  margin: 0;
  padding-left: 18px;
}

#pageLandingDomains .domain-manager-industry-summary li {
  color: rgba(228, 237, 255, 0.88);
  line-height: 1.6;
}

#pageLandingDomains .domain-manager-metric,
#pageLandingDomains .domain-manager-subcard {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(102, 170, 255, 0.12);
  background: rgba(10, 22, 38, 0.64);
}

#pageLandingDomains .domain-manager-metric .k,
#pageLandingDomains .domain-manager-dns-card-row .k {
  color: rgba(171, 192, 214, 0.78);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#pageLandingDomains .domain-manager-metric strong {
  font-size: 15px;
  color: #eff7ff;
}

#pageLandingDomains .builder-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(102, 170, 255, 0.18);
  color: rgba(226, 237, 255, 0.72);
  background: rgba(8, 16, 30, 0.3);
}

#pageLandingDomains .domain-manager-dns-card,
#pageLandingDomains .domain-manager-dns-item,
#pageLandingDomains .domain-manager-event {
  border-radius: 16px;
  border: 1px solid rgba(102, 170, 255, 0.16);
  background: rgba(8, 20, 42, 0.56);
}

#pageLandingDomains .domain-manager-dns-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

#pageLandingDomains .domain-manager-dns-grid,
#pageLandingDomains .domain-manager-detail-kpis,
#pageLandingDomains .domain-manager-detail-stack {
  display: grid;
  gap: 12px;
}

#pageLandingDomains .domain-manager-dns-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#pageLandingDomains .domain-manager-dns-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#pageLandingDomains .domain-manager-dns-card-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

#pageLandingDomains .domain-manager-dns-card-row strong {
  word-break: break-word;
}

#pageLandingDomains .domain-manager-dns-card-row-full {
  grid-column: 1 / -1;
}

#pageLandingDomains .domain-manager-dns-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

#pageLandingDomains .domain-manager-detail-kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#pageLandingDomains .domain-manager-binding-summary {
  display: grid;
  gap: 4px;
}

#pageLandingDomains .domain-manager-detail-hero {
  background:
    linear-gradient(180deg, rgba(15, 32, 54, 0.98), rgba(10, 22, 40, 0.96)),
    radial-gradient(circle at top left, rgba(37, 201, 151, 0.12), transparent 42%);
}

#pageLandingDomains .domain-manager-locale-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#pageLandingDomains .domain-manager-locale-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(102, 170, 255, 0.16);
  background: rgba(7, 18, 34, 0.44);
  color: rgba(228, 237, 255, 0.92);
}

#pageLandingDomains .domain-manager-locale-chip:hover {
  border-color: rgba(37, 201, 151, 0.28);
  background: rgba(16, 32, 52, 0.84);
}

#pageLandingDomains .domain-manager-locale-chip input {
  width: 16px;
  height: 16px;
}

#pageLandingDomains .domain-manager-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#pageLandingDomains .domain-manager-detail-actions {
  margin-top: 12px;
}

#pageLandingDomains .domain-manager-event {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

#pageLandingDomains .domain-manager-event-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

#pageLandingDomains .domain-manager-copy-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

#pageClone .table-shell table {
  min-width: 100%;
  width: 100%;
  table-layout: fixed;
}

#pageClone .table-shell table th,
#pageClone .table-shell table td {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

#pageClone .table-shell table td[data-col-key] {
  max-width: none;
}

#pageClone .table-shell table td:last-child,
#pageClone .table-shell table th:last-child {
  position: static;
}

@media (max-width: 1320px) {
  #pageClone .clone-builder-manager-layout {
    grid-template-columns: 1fr;
  }

  #pageClone .clone-library-filter-grid {
    grid-template-columns: 1fr;
  }

  #pageClone .clone-builder-tag-composer {
    grid-template-columns: 1fr;
  }

  #pageClone .clone-builder-controls,
  #pageClone .clone-library-controls {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  }

  #pageClone #cloneLibrarySearchInput {
    grid-column: 1 / -1;
  }

  #pageClone #cloneLibrarySummaryCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pageLandingDomains .domain-manager-hero-strip,
  #pageLandingDomains .domain-manager-step-strip,
  #pageLandingDomains #landingDomainManagerSummaryCards,
  #pageLandingDomains .domain-manager-storefront-grid,
  #pageLandingDomains .domain-manager-quickstart,
  #pageLandingDomains .domain-manager-inventory-metrics {
    grid-template-columns: 1fr;
  }

  #pageLandingDomains .domain-manager-grid,
  #pageLandingDomains .domain-manager-detail-grid {
    grid-template-columns: 1fr;
  }

  #pageLandingDomains .domain-manager-bind-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  #pageClone .clone-builder-filter-grid,
  #pageClone .clone-builder-preference-grid,
  #pageClone .clone-builder-fact-grid,
  #pageClone .clone-builder-secondary-block .cards,
  #pageLandingDomains .builder-style-grid,
  #pageLandingDomains .domain-manager-locale-picker,
  #pageLandingDomains .domain-manager-dns-card-grid {
    grid-template-columns: 1fr;
  }

  #pageLandingDomains .domain-manager-inventory-card,
  #pageLandingDomains .domain-manager-subcard,
  #pageLandingDomains .domain-manager-storefront-panel {
    padding: 14px;
  }
}

#pageAsset .asset-action-grid {
  margin-top: 8px;
}

#pageAsset .asset-action-grid [data-asset-action-mode] {
  transition: opacity 0.15s ease;
}

#pageAsset .asset-action-grid [data-asset-action-mode][hidden] {
  display: none !important;
}

#assetWorkbenchBody .insight-section {
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(27, 94, 167, 0.03), rgba(15, 140, 109, 0.03)),
    var(--panel-soft);
}

#assetSummaryCards .card,
#megaSummaryCards .card,
#summaryCards .card {
  min-height: 104px;
}

@media (max-width: 1040px) {
  #pageClone .clone-main-grid {
    grid-template-columns: 1fr;
  }

  #pageClone .clone-main-grid > .panel:last-child {
    position: static;
  }
}

@media (min-width: 1540px) {
  #pageClone .clone-main-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  }

  #pageClone .clone-history-grid,
  #pageClone .clone-qa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-page .panel {
  animation: riseIn 0.32s ease both;
}

.dash-page .panel:nth-child(2) {
  animation-delay: 0.04s;
}

.dash-page .panel:nth-child(3) {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.signal-deep-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.signal-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: var(--surface-1);
}

.signal-kpi .k {
  font-size: 11px;
  color: var(--muted);
}

.signal-kpi .v {
  margin-top: 4px;
  font-weight: 700;
  font-size: 15px;
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-1);
}

.signal-panel h4 {
  margin: 0 0 8px;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.signal-band {
  display: inline-block;
  margin-right: 6px;
}

.deep-signal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 95, 138, 0.06), rgba(18, 95, 138, 0));
}

.deep-signal-controls-label {
  min-width: 84px;
  font-weight: 700;
  color: var(--muted);
}

.deep-signal-controls-count {
  margin-left: auto;
}

.deep-signal-search .raw-input {
  min-width: 260px;
}

.deep-signal-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.deep-signal-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(140deg, rgba(11, 143, 101, 0.08), rgba(18, 95, 138, 0.04));
}

.product-intel-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-intel-tabs {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}

.product-intel-tab-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 11px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.product-intel-tab-btn:hover {
  border-color: var(--line-strong);
  background: rgba(37, 99, 235, 0.08);
}

.product-intel-tab-btn.active {
  border-color: var(--brand-2);
  background: rgba(37, 99, 235, 0.14);
  color: var(--text);
}

.product-intel-pane {
  display: none;
  margin-top: 10px;
}

.product-intel-pane.active {
  display: block;
}

.product-intel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(140deg, rgba(27, 94, 167, 0.08), rgba(15, 140, 109, 0.05));
  color: var(--text);
}

.product-intel-card h5 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.product-intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-intel-head .severity-badge {
  margin-left: auto;
}

.product-intel-card .meta {
  color: var(--muted);
}

.product-intel-card .brief-list,
.product-intel-card .brief-list li {
  color: var(--text);
}

.product-intel-quick-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: linear-gradient(130deg, rgba(11, 143, 101, 0.08), rgba(37, 99, 235, 0.05));
}

.product-intel-quick-note .meta {
  color: var(--text);
}

.subbiz-controls {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: end;
}

.subbiz-loading-shell {
  display: grid;
  gap: 10px;
}

.subbiz-controls > .raw-input,
.subbiz-controls > .control-select,
.subbiz-controls > button {
  width: 100%;
}

.subbiz-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subbiz-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 10%, transparent), color-mix(in srgb, var(--brand-2) 8%, transparent));
}

.subbiz-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.subbiz-top h5 {
  margin: 0;
  font-size: 14px;
}

.subbiz-signal {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.subbiz-domains {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.subbiz-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.subbiz-rel-kpis .card .meta {
  margin-top: 6px;
  font-size: 12px;
}

.subbiz-all-nav {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
}

.subbiz-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subbiz-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.subbiz-related-link .name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subbiz-related-link .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.subbiz-related-empty {
  font-size: 12px;
}

.subbiz-relation-summary {
  min-width: 280px;
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.subbiz-relation-line {
  color: var(--muted);
}

.subbiz-actions .subbiz-related-links {
  width: 100%;
  margin-top: 4px;
}

.subbiz-pagination-shell {
  padding-top: 0;
}

.subbiz-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subbiz-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deep-signal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.deep-signal-head h4 {
  margin: 0;
}

.deep-signal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deep-signal-split {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 920px) {
  .deep-signal-split {
    grid-template-columns: 1fr;
  }

  .product-intel-grid {
    grid-template-columns: 1fr;
  }

  .subbiz-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1160px) {
  .intel-layout {
    grid-template-columns: 1fr;
  }

  .score-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #pageAsset .asset-shell {
    grid-template-columns: 1fr;
  }

  #pageAsset .asset-rail {
    position: static;
  }
}

@media (max-width: 920px) {
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-main {
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .db-freshness-value {
    font-size: 14px;
  }

  .inline-control {
    width: 100%;
    justify-content: space-between;
  }

  .inline-control .control-select {
    min-width: 150px;
  }

  #pageAsset .asset-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-form {
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 72px minmax(0, 1fr) 42px;
  }

  .intel-pack-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .newsfeed-progress-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .newsfeed-progress-value {
    text-align: left;
  }

  .newsfeed-insight-grid {
    grid-template-columns: 1fr;
  }

  .newsfeed-table-shell table {
    min-width: 560px;
  }

  .all-ads-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .all-ads-seen-row {
    flex-direction: column;
    gap: 3px;
  }

  .all-ads-detail-grid {
    grid-template-columns: 1fr;
  }

  .signal-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-deep-grid {
    grid-template-columns: 1fr;
  }

  #pageAsset .asset-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #pageAsset .asset-mode-tabs {
    grid-template-columns: 1fr;
  }
}

/* UI clarity pass v3: professional visual system + stronger readability */
:root {
  --bg-0: #f5f8fc;
  --bg-1: #eef3fb;
  --bg-accent-1: #dceff0;
  --bg-accent-2: #dce8ff;
  --panel: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f5f8fe;
  --panel-soft: #f9fbff;
  --line: #d5dfeb;
  --line-strong: #b8c8dc;
  --text: #0f1f33;
  --muted: #51627b;
  --brand: #0f766e;
  --brand-2: #2563eb;
  --brand-soft: #e2f3ef;
  --focus: #0b78ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #0f8a56;
  --shadow-sm: 0 10px 24px rgba(15, 31, 51, 0.08);
  --shadow-md: 0 22px 50px rgba(15, 31, 51, 0.13);
  --font-body: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

html[data-theme="dark"] {
  --bg-0: #09121f;
  --bg-1: #0c1727;
  --bg-accent-1: #10322f;
  --bg-accent-2: #102e52;
  --panel: #111f33;
  --surface-1: #14263b;
  --surface-2: #172d45;
  --panel-soft: #12273e;
  --line: #2c4563;
  --line-strong: #3b5a7e;
  --text: #e8f0fb;
  --muted: #adc0d7;
  --brand: #2ac6b0;
  --brand-2: #6ea9ff;
  --brand-soft: rgba(42, 198, 176, 0.16);
  --focus: #7cb7ff;
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 24px 52px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(1300px 620px at -8% -18%, rgba(42, 198, 176, 0.16), transparent 56%),
    radial-gradient(1100px 580px at 108% -20%, rgba(37, 99, 235, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 52%);
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px clamp(10px, 1vw, 16px) 44px;
  overflow-x: clip;
}

.topbar {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.86));
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, rgba(18, 39, 62, 0.92), rgba(14, 31, 50, 0.88));
}

h1 {
  font-size: clamp(28px, 2.4vw, 34px);
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(19px, 1.45vw, 23px);
}

.subtitle {
  max-width: 980px;
  font-size: 14px;
  line-height: 1.68;
}

.main-nav {
  margin: 12px 0 18px;
  padding: 8px;
  gap: 8px;
  border-radius: 14px;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.94), rgba(241, 247, 255, 0.9));
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .main-nav {
  background: linear-gradient(180deg, rgba(20, 42, 68, 0.9), rgba(16, 35, 57, 0.9));
}

.nav-btn {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
}

.nav-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.nav-btn.active {
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.48);
  background: linear-gradient(125deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.panel {
  padding: 18px;
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .panel {
  background: linear-gradient(180deg, rgba(19, 37, 58, 0.96), rgba(16, 31, 49, 0.94));
}

.panel::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0) 0%, rgba(15, 118, 110, 0.54) 40%, rgba(37, 99, 235, 0.56) 78%, rgba(37, 99, 235, 0) 100%);
}

.insight-section,
.signal-box,
.signal-panel,
.detail-box,
.deep-signal-card,
.alert-item,
.evidence-card {
  border-color: var(--line);
  background: var(--surface-1);
}

.cards {
  gap: 14px;
}

.card {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.card .v,
.score-card .v {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
  color: var(--text);
}

.score-card {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08));
}

html[data-theme="dark"] .product-intel-card {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.2), rgba(15, 118, 110, 0.2));
}

button {
  border-color: rgba(15, 118, 110, 0.92);
  background: linear-gradient(135deg, #0f766e 0%, #1b8a7f 48%, #1f66e3 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

button:hover {
  filter: brightness(1.035);
}

button.ghost {
  background: var(--surface-1);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

button.ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.36);
  color: var(--text);
}

input,
.raw-input,
.control-select {
  border-color: var(--line);
  background: var(--surface-1);
}

table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-1);
}

th {
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #2b4767;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.09));
  border-bottom-color: var(--line);
}

html[data-theme="dark"] th {
  color: #d8e6f8;
}

th,
td {
  padding: 10px 9px;
  border-bottom-color: rgba(181, 201, 223, 0.62);
}

tbody tr:nth-child(even) {
  background: rgba(37, 99, 235, 0.03);
}

tbody tr:hover {
  background: rgba(15, 118, 110, 0.12);
}

.meta {
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 920px) {
  .topbar {
    padding: 12px;
  }

  .panel {
    padding: 14px;
  }

  .nav-btn.active {
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
  }
}

/* IA phase 2: grouped navigation + workflow coach */
.main-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
}

.nav-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.7));
}

html[data-theme="dark"] .nav-group {
  background: linear-gradient(180deg, rgba(22, 45, 71, 0.86), rgba(18, 38, 61, 0.84));
}

.nav-group-label {
  display: block;
  margin: 0 0 6px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-coach {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: var(--line-strong);
  background:
    radial-gradient(700px 220px at 8% -35%, rgba(15, 118, 110, 0.22), transparent 60%),
    radial-gradient(700px 220px at 92% -35%, rgba(37, 99, 235, 0.2), transparent 62%),
    var(--panel);
}

.workflow-coach-main {
  min-width: 0;
}

.workflow-coach-label {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--brand-2);
}

#workflowCoachTitle {
  margin: 0;
  font-size: 20px;
}

#workflowCoachText {
  margin-top: 8px;
  font-size: 13px;
  max-width: 1000px;
}

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

#workflowCoachActionBtn {
  min-width: 180px;
}

@media (max-width: 1160px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 920px) {
  .main-nav {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .workflow-coach {
    flex-direction: column;
    align-items: flex-start;
  }

  #workflowCoachActionBtn {
    width: 100%;
    min-width: 0;
  }
}

/* Phase 3: page-specialized layouts + focus strip */
.page-focus-strip {
  margin-bottom: 14px;
}

.focus-toolbar {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.focus-inline {
  gap: 6px;
}

.focus-toolbar .control-select {
  min-width: 110px;
}

.focus-toolbar .meta {
  line-height: 1.2;
}

.focus-layout-hint-ok {
  color: var(--ok);
}

.focus-layout-hint-error {
  color: var(--danger);
}

.page-focus-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.page-focus-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  background: var(--surface-1);
  min-height: 92px;
  cursor: grab;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-focus-card:active {
  cursor: grabbing;
}

.page-focus-card.focus-card-sortable:hover {
  border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line));
  box-shadow: 0 12px 22px rgba(12, 28, 45, 0.18);
  transform: translateY(-1px);
}

.page-focus-card.is-dragging {
  opacity: 0.4;
}

.page-focus-card.drop-target {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-2) 45%, transparent);
}

.focus-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.focus-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1360px), (max-height: 820px) {
  .page {
    padding: 18px 14px 32px;
  }

  .topbar {
    margin-bottom: 12px;
    gap: 10px;
  }

  .topbar-main {
    gap: 6px;
  }

  .db-freshness-bar {
    padding: 8px 10px;
  }

  .main-nav {
    gap: 8px;
  }

  .nav-group {
    padding: 7px;
  }

  .workflow-coach {
    gap: 12px;
    margin-bottom: 12px;
  }

  #workflowCoachTitle {
    font-size: 18px;
  }

  #workflowCoachText {
    margin-top: 6px;
    font-size: 12px;
  }

  .focus-toolbar {
    gap: 6px;
  }

  .page-focus-cards {
    gap: 8px;
  }

  .page-focus-card {
    min-height: 82px;
    padding: 8px;
  }
}

@media (max-width: 1100px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.focus-chip-action {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.focus-chip-action:hover {
  border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line));
}

.focus-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  user-select: none;
}

.focus-studio {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(680px 180px at 10% -40%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(620px 180px at 90% -40%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 58%),
    var(--surface-1);
}

.focus-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.focus-studio-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel-soft);
}

.focus-drop-zone {
  margin-top: 8px;
  min-height: 74px;
  border: 1px dashed color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.focus-drop-zone.is-over {
  border-color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
}

.page-focus-cards.is-over {
  border-radius: 12px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-2) 42%, transparent);
}

.focus-drop-zone-empty {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.focus-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: grab;
}

.focus-chip:active {
  cursor: grabbing;
}

.focus-chip.is-dragging {
  opacity: 0.45;
}

.focus-viz-block {
  margin-top: 10px;
}

.focus-viz-chart {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.focus-viz-empty {
  color: var(--muted);
  font-size: 12px;
}

.focus-viz-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 2fr) auto;
  gap: 8px;
  align-items: center;
}

.focus-viz-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.focus-viz-value {
  font-size: 12px;
  font-weight: 700;
}

.focus-viz-progress {
  width: 100%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}

.focus-viz-progress::-webkit-progress-bar {
  background: var(--surface-2);
}

.focus-viz-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.focus-viz-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.page-focus-card .k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-focus-card .v {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
}

.page-focus-card.tone-alert {
  border-color: rgba(180, 35, 24, 0.34);
  background: rgba(180, 35, 24, 0.08);
}

.page-focus-card.tone-opportunity {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.08);
}

.page-focus-card.tone-neutral {
  border-color: var(--line-strong);
}

#pageEntities .intel-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

#pageEntities .intel-left {
  position: sticky;
  top: 168px;
  max-height: calc(100vh - 188px);
  overflow: auto;
  padding-right: 4px;
}

#pageEntities .insight-board {
  min-height: 680px;
}

#pageDomain .grid {
  grid-template-columns: 1fr;
}

#pageSignals .signal-lab-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

#pageSignals .signal-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

#pageSignals .signal-ops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#pageSignals .signal-ops-grid .signal-deep-box {
  grid-column: 1 / -1;
}

#pageSignals .analytics-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#pageSignals .analytics-chart-grid > .signal-box,
#pageSignals .signal-grid > .signal-box,
#pageSignals .signal-ops-grid > .signal-box {
  min-width: 0;
}

#pageSignals .signal-box {
  overflow: hidden;
}

#pageSignals .signals-search-control {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

#pageSignals .signals-search-control .raw-input {
  width: 100%;
  min-width: 220px;
}

#pageSignals .signals-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

#pageSignals .signals-pager .ghost {
  min-width: 78px;
}

#pageSignals .signals-pager .meta {
  min-width: 168px;
  text-align: center;
}

#pageSignals .signal-deep-controls.align-end .signals-pager {
  align-self: end;
}

#pageSignals .table-shell {
  margin-top: 10px;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

#pageSignals .table-shell table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

#pageSignals .table-shell table th,
#pageSignals .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

#pageSignals .table-shell table td[data-col-key] {
  max-width: none;
}

#pageSignals .table-shell table td[data-col-key="trend"] {
  text-align: center;
  min-width: 110px;
}

#pageSignals .table-shell table td:last-child,
#pageSignals .table-shell table th:last-child {
  position: static;
}

@media (max-width: 1120px) {
  #pageSignals .signals-pager {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  #pageSignals .signals-pager .meta {
    min-width: 0;
    text-align: left;
  }
}

#pageOps #dataSyncCards {
  margin-top: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#pageOps .sync-request-controls {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(240px, 1fr) minmax(180px, 240px);
  gap: 8px;
  align-items: center;
}

#pageOps .sync-request-controls .control-select {
  min-width: 0;
}

#pageOps .sync-request-controls input {
  min-height: 42px;
}

#pageOps #dataSyncRequestMeta {
  margin-top: 8px;
}

#pageOps #dataSyncMcrRuntimeBadgeRow {
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#pageOps #dataSyncMcrRuntimeBadgeRow .status-pill {
  font-size: 12px;
  padding: 4px 10px;
}

#pageOps .ops-sync-grid {
  margin-top: 10px;
  align-items: start;
  grid-template-columns: 1fr;
  gap: 14px;
}

#pageOps .ops-sync-grid > .signal-box {
  min-width: 0;
}

#pageOps .ops-sync-grid .table-shell {
  margin-top: 10px;
  max-height: min(56vh, 560px);
}

#pageOps .ops-sync-grid .table-shell table {
  min-width: 100%;
  width: max-content;
}

#pageOps .ops-sync-grid .table-shell th,
#pageOps .ops-sync-grid .table-shell td {
  vertical-align: top;
  line-height: 1.35;
}

#pageOps .ops-sync-grid .table-shell th {
  text-align: left;
}

#pageOps .ops-sync-grid .table-shell td[data-col-key="top_tables"],
#pageOps .ops-sync-grid .table-shell td[data-col-key="table_outcomes"],
#pageOps .ops-sync-grid .table-shell td[data-col-key="request_note"],
#pageOps .ops-sync-grid .table-shell td[data-col-key="result"] {
  white-space: normal;
  min-width: 280px;
  max-width: 520px;
  line-height: 1.4;
}

#pageOps .ops-sync-grid .table-shell td:last-child,
#pageOps .ops-sync-grid .table-shell th:last-child {
  position: static;
}

#pageOps .ops-sync-grid .state-card {
  margin-top: 10px;
}

#signalEventAlertsTable,
#signalPriorityQueueTable,
#signalEscalationTable {
  max-height: 360px;
  overflow: auto;
}

#pageGuide .guide-step-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#pageGuide .guide-step-rail {
  position: sticky;
  top: 168px;
}

#pageGuide .guide-step-rail h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

#pageGuide .guide-step-list {
  display: grid;
  gap: 8px;
}

#pageGuide .guide-progress {
  margin-bottom: 10px;
}

#pageGuide .guide-progress-track {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

#pageGuide .guide-progress-bar {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}

#pageGuide .guide-progress-bar::-webkit-progress-bar {
  background: var(--surface-2);
}

#pageGuide .guide-progress-bar::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

#pageGuide .guide-progress-bar::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

#pageGuide .guide-step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text);
  box-shadow: none;
  font-weight: 700;
  min-height: 44px;
}

#pageGuide .guide-step-link:hover {
  border-color: var(--line-strong);
  background: rgba(37, 99, 235, 0.08);
}

#pageGuide .guide-step-link.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(37, 99, 235, 0.16));
}

#pageGuide .guide-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-2);
  background: var(--surface-2);
}

#pageGuide .guide-step-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#pageGuide .guide-step-panel {
  scroll-margin-top: 156px;
  opacity: 0.9;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}

#pageGuide #guideModulesBody .insight-section {
  border-left: 3px solid rgba(37, 99, 235, 0.45);
}

#pageGuide .guide-step-panel.active {
  opacity: 1;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

#pageGuide .insight-section,
#pageGuide .table-shell,
#pageGuide #guidePlaybooksBody,
#pageGuide #guideModulesBody,
#pageGuide #guideBenchmarkBody,
#pageGuide #guideGlossaryBody,
#pageGuide #guideCoverageBody {
  min-width: 0;
}

#pageGuide .guide-benchmark-section {
  border-left: 3px solid rgba(15, 118, 110, 0.38);
}

#pageGuide #guideBenchmarkSummaryCards {
  margin-top: 10px;
}

#pageGuide #guideBenchmarkTopicTabs {
  margin-top: 12px;
  margin-bottom: 10px;
}

#pageGuide #guideBenchmarkBody {
  display: grid;
  gap: 12px;
}

#pageGuide .guide-benchmark-topic {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff 10%);
  overflow: hidden;
}

#pageGuide .guide-benchmark-topic[open] {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

#pageGuide .guide-benchmark-topic-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
}

#pageGuide .guide-benchmark-topic-summary::-webkit-details-marker {
  display: none;
}

#pageGuide .guide-benchmark-topic-body {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

#pageGuide .guide-benchmark-example {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  overflow: hidden;
}

#pageGuide .guide-benchmark-example summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
}

#pageGuide .guide-benchmark-example summary::-webkit-details-marker {
  display: none;
}

#pageGuide .guide-benchmark-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

#pageGuide .guide-benchmark-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-2);
  background: rgba(37, 99, 235, 0.08);
}

#pageGuide .guide-benchmark-headline {
  display: grid;
  gap: 8px;
}

#pageGuide .guide-benchmark-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#pageGuide .guide-benchmark-example-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 12px;
}

#pageGuide .guide-benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#pageGuide .guide-benchmark-answer-box {
  border-left: 3px solid rgba(37, 99, 235, 0.38);
}

#pageGuide .guide-benchmark-answer {
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

#pageGuide .guide-benchmark-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#pageGuide .guide-benchmark-notes {
  display: grid;
  gap: 6px;
}

#pageGuide .guide-benchmark-actions {
  display: flex;
  justify-content: flex-end;
}

#pageGuide .table-shell {
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
}

#pageGuide .table-shell table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

#pageGuide .table-shell table th,
#pageGuide .table-shell table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

#pageGuide .table-shell table td:last-child,
#pageGuide .table-shell table th:last-child {
  position: static;
}

#pageGuide .table-shell table td[data-col-key] {
  max-width: none;
}

#pageGuide #guideRouterTable .table-shell table th:nth-child(1),
#pageGuide #guideRouterTable .table-shell table td:nth-child(1) {
  width: 18%;
}

#pageGuide #guideRouterTable .table-shell table th:nth-child(2),
#pageGuide #guideRouterTable .table-shell table td:nth-child(2) {
  width: 18%;
}

#pageGuide #guideRouterTable .table-shell table th:nth-child(3),
#pageGuide #guideRouterTable .table-shell table td:nth-child(3) {
  width: 18%;
}

#pageGuide #guideRouterTable .table-shell table th:nth-child(4),
#pageGuide #guideRouterTable .table-shell table td:nth-child(4) {
  width: 18%;
}

#pageGuide #guideRouterTable .table-shell table th:nth-child(5),
#pageGuide #guideRouterTable .table-shell table td:nth-child(5) {
  width: 28%;
}

@media (max-width: 1280px) {
  .page-focus-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .focus-studio-grid {
    grid-template-columns: 1fr;
  }

  #pageSignals .signal-lab-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1160px) {
  #pageEntities .intel-layout {
    grid-template-columns: 1fr;
  }

  #pageEntities .intel-left {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #pageGuide .guide-step-shell {
    grid-template-columns: 1fr;
  }

  #pageGuide .guide-step-rail {
    position: static;
  }

  #pageGuide #guideRouterTable .table-shell table th,
  #pageGuide #guideRouterTable .table-shell table td {
    width: auto;
  }

  #pageGuide .guide-benchmark-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .page-focus-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-viz-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .focus-toolbar .ghost {
    flex: 1 1 220px;
  }

  #pageSignals .signal-ops-grid,
  #pageSignals .analytics-chart-grid {
    grid-template-columns: 1fr;
  }

  #pageOps #dataSyncCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pageOps .sync-request-controls {
    grid-template-columns: 1fr;
  }

  #pageOps .ops-sync-grid {
    grid-template-columns: 1fr;
  }
}

/* Final polish: heavy-data usability */
.table-shell {
  width: 100%;
  overflow: auto;
  max-height: min(68vh, 760px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.table-shell table {
  min-width: 760px;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.table-shell table th,
.table-shell table td {
  white-space: nowrap;
}

.table-shell table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  vertical-align: middle;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent), var(--surface-1));
  box-shadow: 0 1px 0 var(--line);
}

.table-shell table thead th .term-help-inline {
  margin-left: 6px;
}

.table-shell table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-1) 88%, var(--surface-2) 12%);
}

.table-shell table tbody tr:hover td {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-2) 92%);
}

.table-shell table td:last-child,
.table-shell table th:last-child {
  position: sticky;
  right: 0;
  background: var(--surface-1);
}

.table-shell table td[data-col-key] {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-shell table td.num,
.table-shell table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-grid-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  max-height: none;
}

.data-grid-shell table {
  min-width: max(100%, 980px);
  border-collapse: separate;
  border-spacing: 0;
  position: relative;
}

.data-grid-shell .data-grid-head-viewport {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-1);
}

.data-grid-shell .data-grid-body-viewport {
  overflow: auto;
  max-height: min(68vh, 760px);
}

.data-grid-shell table td:last-child,
.data-grid-shell table th:last-child {
  position: static;
  right: auto;
}

.data-grid-shell table thead tr.data-grid-head-row th {
  top: 0;
  z-index: 3;
}

.data-grid-shell table thead tr.data-grid-filter-row th {
  position: sticky;
  top: 44px;
  z-index: 2;
  background: color-mix(in srgb, var(--surface-1) 92%, var(--surface-2) 8%);
  box-shadow: 0 1px 0 var(--line);
}

.data-grid-shell .data-grid-head-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  overflow: visible;
}

.data-grid-shell .data-grid-head-stick,
.data-grid-shell .data-grid-filter-stick,
.data-grid-shell .data-grid-cell-stick {
  position: relative;
  display: block;
  min-width: 100%;
}

.data-grid-shell .data-grid-sort-btn {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.data-grid-shell .data-grid-drag-handle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: grab;
}

.data-grid-shell .data-grid-drag-handle:hover,
.data-grid-shell .data-grid-drag-handle:focus-visible {
  color: var(--brand);
}

.data-grid-shell .data-grid-freeze-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: -0.08em;
  cursor: pointer;
}

.data-grid-shell .data-grid-freeze-toggle:hover,
.data-grid-shell .data-grid-freeze-toggle:focus-visible,
.data-grid-shell .data-grid-freeze-toggle.is-active {
  color: var(--brand);
}

.data-grid-shell .data-grid-sort-label {
  min-width: 0;
}

.data-grid-shell .data-grid-sort-btn:hover,
.data-grid-shell .data-grid-sort-btn:focus-visible {
  color: var(--brand);
}

.data-grid-shell .data-grid-sort-icon {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.data-grid-shell .data-grid-filter-cell {
  padding: 8px 10px;
}

.data-grid-shell .data-grid-filter-cell.is-empty {
  padding: 0;
}

.data-grid-shell.is-dragging-column .data-grid-drag-handle {
  cursor: grabbing;
}

.data-grid-shell .data-grid-head.is-drop-before,
.data-grid-shell .data-grid-head.is-drop-after {
  position: relative;
}

.data-grid-shell .data-grid-head.is-drop-before::before,
.data-grid-shell .data-grid-head.is-drop-after::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface-1) 72%, transparent);
  pointer-events: none;
}

.data-grid-shell .data-grid-head.is-drop-before::before {
  left: -2px;
}

.data-grid-shell .data-grid-head.is-drop-after::after {
  right: -2px;
}

.data-grid-shell .data-grid-filter-input {
  width: 100%;
  min-width: 88px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
}

.data-grid-shell .data-grid-freeze-zone {
  position: absolute;
  top: 96px;
  bottom: 10px;
  width: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px dashed color-mix(in srgb, var(--brand) 44%, var(--line) 56%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-1) 88%, var(--surface-2) 12%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease, background 120ms ease;
  z-index: 8;
}

.data-grid-shell .data-grid-freeze-zone strong {
  font-size: 11px;
  line-height: 1.2;
}

.data-grid-shell .data-grid-freeze-zone span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  white-space: normal;
}

.data-grid-shell .data-grid-freeze-zone.is-left {
  left: calc(var(--data-grid-frozen-width, 0px) + 8px);
}

.data-grid-shell .data-grid-freeze-zone.is-right {
  right: 8px;
}

.data-grid-shell.is-dragging-column .data-grid-freeze-zone {
  opacity: 1;
  transform: translateY(0);
}

.data-grid-shell .data-grid-freeze-zone.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-1) 90%);
}

.data-grid-shell table td[data-col-key] {
  max-width: none;
}

.data-grid-shell.has-frozen-columns .data-grid-head-table [data-col-frozen='1'],
.data-grid-shell.has-frozen-columns .data-grid-body-table td[data-col-frozen='1'] {
  position: relative;
  transform: translateX(var(--data-grid-scroll-left, 0px));
  will-change: transform;
}

.data-grid-shell.has-frozen-columns .data-grid-head-table tr.data-grid-head-row [data-col-frozen='1'] {
  z-index: 7;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent), var(--surface-1));
}

.data-grid-shell.has-frozen-columns .data-grid-head-table tr.data-grid-filter-row [data-col-frozen='1'] {
  z-index: 6;
  background: color-mix(in srgb, var(--surface-1) 92%, var(--surface-2) 8%);
}

.data-grid-shell.has-frozen-columns .data-grid-body-table td[data-col-frozen='1'] {
  z-index: 1;
  background: var(--surface-1);
}

.data-grid-shell.has-frozen-columns .data-grid-body-table tbody tr:nth-child(even) td[data-col-frozen='1'] {
  background: color-mix(in srgb, var(--surface-1) 88%, var(--surface-2) 12%);
}

.data-grid-shell.has-frozen-columns .data-grid-body-table tbody tr:hover td[data-col-frozen='1'] {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-2) 92%);
}

.data-grid-shell .data-grid-head-table [data-col-frozen='1'].is-last-frozen-col,
.data-grid-shell .data-grid-body-table td[data-col-frozen='1'].is-last-frozen-col {
  box-shadow: inset -1px 0 0 var(--line), 10px 0 16px -14px rgba(15, 23, 42, 0.45);
}

.data-grid-shell .data-grid-empty-row td {
  padding: 18px;
}

.data-grid-shell .data-grid-empty-state {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.data-grid-shell .data-grid-empty-state strong {
  font-size: 14px;
}

.data-grid-shell .data-grid-empty-state span {
  color: var(--muted);
  font-size: 12px;
}

.data-grid-shell .data-grid-resize-handle {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 16px;
  height: calc(100% + 20px);
  cursor: col-resize;
}

.data-grid-shell .data-grid-resize-handle::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 78%, var(--brand) 22%);
  opacity: 0.45;
}

.data-grid-shell .data-grid-resize-handle:hover::after {
  opacity: 0.95;
  background: var(--brand);
}

body.is-resizing-grid-column,
body.is-resizing-grid-column * {
  cursor: col-resize !important;
  user-select: none !important;
}

body.is-dragging-grid-column,
body.is-dragging-grid-column * {
  cursor: grabbing !important;
  user-select: none !important;
}

.table-shell::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.table-shell::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.entity-quick {
  max-height: 220px;
  overflow: auto;
  border-radius: 10px;
}

.entity-quick .quick-item {
  align-items: center;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.signal-deep-controls > .raw-input,
.signal-deep-controls > .control-select {
  flex: 1 1 220px;
}

#pageDomain .domain-intel-searchbar > .raw-input {
  flex: 999 1 560px;
  min-width: 320px;
}

#pageDomain .domain-intel-searchbar > button {
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .table-shell table {
    min-width: 620px;
  }

  #pageClone .clone-builder-stack,
  #pageClone .clone-library-controls,
  #pageClone .clone-builder-controls {
    grid-template-columns: 1fr;
  }

  #pageClone #cloneLibrarySearchInput {
    grid-column: auto;
  }

  #pageClone #cloneLibrarySummaryCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-toast-root {
  position: fixed;
  top: 66px;
  right: 14px;
  z-index: 520;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(94vw, 460px);
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 12px;
  padding: 10px 10px 10px 9px;
  background: color-mix(in srgb, var(--surface-1) 88%, #ffffff 12%);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(5, 17, 34, 0.42);
  backdrop-filter: blur(6px);
  animation: toast-enter 0.18s ease;
}

.app-toast[data-tone="info"] {
  border-left-color: var(--brand-2);
}

.app-toast[data-tone="loading"] {
  border-left-color: color-mix(in srgb, var(--brand-2) 70%, var(--brand));
}

.app-toast[data-tone="success"] {
  border-left-color: var(--ok);
}

.app-toast[data-tone="error"] {
  border-left-color: var(--danger);
}

.app-toast.hide {
  animation: toast-exit 0.18s ease forwards;
}

.app-toast-icon {
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.app-toast[data-tone="loading"] .app-toast-icon {
  border-color: color-mix(in srgb, var(--brand-2) 55%, var(--line));
  color: var(--brand-2);
}

.app-toast[data-tone="success"] .app-toast-icon {
  border-color: color-mix(in srgb, var(--ok) 55%, var(--line));
  color: var(--ok);
}

.app-toast[data-tone="error"] .app-toast-icon {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
  color: var(--danger);
}

.app-toast-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  font-weight: 600;
}

.app-toast-close {
  min-height: 24px;
  min-width: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
}

.app-toast-close:hover {
  border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line));
  color: var(--text);
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 920px) {
  .app-toast-root {
    top: auto;
    bottom: 14px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

.floating-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.94));
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#pageChat .chat-founder-controls {
  display: grid;
  gap: 10px;
}

#pageChat .chat-mode-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

#pageChat .chat-mode-btn {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-1), rgba(33, 64, 104, 0.34));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

#pageChat .chat-mode-btn.active {
  border-color: rgba(106, 175, 255, 0.6);
  background: linear-gradient(135deg, rgba(37, 201, 151, 0.24), rgba(106, 175, 255, 0.32));
  box-shadow: 0 0 0 1px rgba(106, 175, 255, 0.26) inset;
}

#pageChat #chatMcrPanel .chat-founder-msg.system {
  border-style: dashed;
}

#pageChat .chat-founder-question {
  min-height: 92px;
  resize: vertical;
}

#pageChat .chat-founder-controls-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
}

#pageChat .chat-founder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  min-height: 42px;
}

#pageChat .chat-founder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#pageChat .mcr-conversation-manager {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(12, 28, 53, 0.76), rgba(9, 21, 39, 0.72));
}

#pageChat .mcr-conversation-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

#pageChat .mcr-context-bar {
  margin-bottom: 8px;
}

#pageChat .mcr-context-chip {
  cursor: default;
}

#pageChat .chat-founder-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 201, 151, 0.14), rgba(106, 175, 255, 0.14));
  color: var(--text);
  min-height: 34px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

#pageChat .chat-founder-chip:hover {
  border-color: var(--line-strong);
}

#pageChat .chat-founder-grid {
  grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 0.95fr);
}

#pageChat .chat-founder-thread {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-1), var(--panel-soft));
  padding: 12px;
  min-height: 340px;
  max-height: 640px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

#pageChat .chat-founder-msg {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-1);
}

#pageChat .chat-founder-msg.user {
  background: linear-gradient(135deg, rgba(106, 175, 255, 0.16), rgba(106, 175, 255, 0.08));
}

#pageChat .chat-founder-msg.assistant {
  background: linear-gradient(135deg, rgba(37, 201, 151, 0.13), rgba(37, 201, 151, 0.06));
}

#pageChat .chat-founder-msg.system {
  background: linear-gradient(135deg, rgba(181, 71, 8, 0.16), rgba(180, 35, 24, 0.12));
}

#pageChat .chat-founder-msg-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

#pageChat .chat-founder-msg-head .meta {
  margin-left: auto;
}

#pageChat .chat-founder-msg-role {
  font-weight: 800;
  letter-spacing: 0.02em;
}

#pageChat .chat-founder-msg-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#pageChat .chat-founder-engine-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 94, 167, 0.12);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#pageChat .chat-founder-engine-badge.sql_agent {
  border-color: rgba(37, 201, 151, 0.52);
  background: rgba(37, 201, 151, 0.2);
}

#pageChat .chat-founder-engine-badge.semantic {
  border-color: rgba(106, 175, 255, 0.52);
  background: rgba(106, 175, 255, 0.2);
}

#pageChat .chat-founder-engine-badge.specialized {
  border-color: rgba(143, 111, 255, 0.52);
  background: rgba(143, 111, 255, 0.2);
}

#pageChat .chat-founder-engine-badge.local {
  border-color: rgba(181, 71, 8, 0.52);
  background: rgba(181, 71, 8, 0.2);
}

#pageChat .chat-founder-engine-badge.provider {
  border-color: rgba(17, 141, 255, 0.52);
  background: rgba(17, 141, 255, 0.2);
}

#pageChat .chat-founder-engine-badge.unknown {
  border-color: var(--line);
  background: rgba(127, 146, 166, 0.14);
}

#pageChat .chat-founder-msg-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}

#pageChat .mcr-code-block {
  margin-top: 8px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
}

#pageChat .mcr-jump-latest {
  margin-left: auto;
}

#pageChat #mcrTraceCards {
  margin-bottom: 8px;
}

#pageChat .mcr-trace-export {
  margin-left: auto;
}

@media (max-width: 980px) {
  #pageChat .mcr-conversation-toolbar {
    grid-template-columns: 1fr;
  }
}

#pageChat .mcr-trace-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

#pageChat .mcr-trace-step {
  border: 1px solid rgba(73, 131, 196, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(11, 28, 55, 0.88), rgba(9, 22, 42, 0.82));
  box-shadow: inset 0 1px 0 rgba(125, 212, 255, 0.06);
}

#pageChat .mcr-trace-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
}

#pageChat .mcr-trace-step-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

#pageChat .mcr-trace-step-state {
  border: 1px solid rgba(116, 167, 255, 0.36);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(52, 95, 166, 0.18);
}

#pageChat .mcr-trace-step.state-running .mcr-trace-step-state {
  border-color: rgba(96, 221, 255, 0.5);
  background: rgba(32, 138, 176, 0.2);
}

#pageChat .mcr-trace-step.state-completed .mcr-trace-step-state {
  border-color: rgba(79, 209, 127, 0.5);
  background: rgba(21, 112, 55, 0.22);
}

#pageChat .mcr-trace-step.state-failed .mcr-trace-step-state,
#pageChat .mcr-trace-step.state-aborted .mcr-trace-step-state,
#pageChat .mcr-trace-step.state-policy_blocked .mcr-trace-step-state {
  border-color: rgba(255, 119, 119, 0.48);
  background: rgba(150, 32, 32, 0.2);
}

#pageChat .mcr-trace-step.state-pending .mcr-trace-step-state {
  border-color: rgba(140, 155, 176, 0.32);
  background: rgba(93, 106, 127, 0.12);
}

#pageChat .mcr-trace-step-copy {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

#pageChat .mcr-trace-step-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

#pageChat .mcr-trace-step-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(104, 145, 186, 0.32);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-soft);
  font-size: 12px;
}

#pageChat #mcrTraceTable .table-shell {
  max-height: 260px;
  overflow: auto;
}

#pageChat #mcrTraceTable details summary {
  cursor: pointer;
  color: var(--brand-2);
  font-weight: 700;
}

#pageChat .mcr-trace-detail {
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.45;
}

#pageChat #mcrHistoryTable .table-shell {
  max-height: 260px;
  overflow: auto;
}

#pageChat .chat-founder-history-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

@media (max-width: 1140px) {
  #pageChat .chat-founder-controls-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  #pageChat .chat-founder-grid {
    grid-template-columns: 1fr;
  }
  #pageChat .mcr-trace-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #pageChat .chat-founder-controls-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1040px) {
  #pageClone .clone-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pageClone .clone-library-grid,
  #pageClone .clone-builder-controls,
  #pageClone .clone-library-controls,
  #pageClone .clone-tracking-grid,
  #pageClone .clone-section-grid {
    grid-template-columns: 1fr;
  }

  #pageClone .clone-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #pageClone .clone-controls-grid {
    grid-template-columns: 1fr;
  }

  #pageClone #cloneZoneList {
    grid-template-columns: 1fr;
  }

  #pageClone .clone-iframe-device {
    width: min(428px, 100%);
    min-height: 760px;
    padding: 4px;
    margin-inline: auto;
  }

  #pageClone #clonePreviewFrame {
    display: block;
    min-height: 752px;
  }
}
