/* WeAD Global Data — Executive Financial Advice & Investment Verdict Stage */
#ov-advice-scroll[data-gt-advice-v2="1"] > *:not(#gt-advice-stage):not(#gt-advice-freshness-banner) {
  display: none !important;
}

/* Hide legacy sticky header wrapper above #ov-advice-scroll when v2 header is active */
[data-gt-advice-legacy-hdr="1"] {
  display: none !important;
}

#gt-advice-stage {
  --adv-bg: #050a14;
  --adv-card: rgba(10, 22, 40, 0.86);
  --adv-card-2: rgba(13, 29, 52, 0.72);
  --adv-border: rgba(255, 255, 255, 0.1);
  --adv-cyan: #38bdf8;
  --adv-green: #00ff88;
  --adv-amber: #f59e0b;
  --adv-red: #ff3b6b;
  --adv-text: #e6f1ff;
  --adv-muted: #8fb0cc;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 18px 88px 18px;
  color: var(--adv-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (min-width: 721px) {
  #gt-advice-stage {
    padding-right: 52px; /* Clear fixed right-edge ALERTS / RISK / ANALYST rails */
  }
}

@media (max-width: 720px) {
  #gt-advice-stage {
    padding: 12px 12px 92px 12px;
  }
  .adv-title-wrap {
    width: 100%;
    padding-right: 96px; /* Clear mobile floating TOOLS 12 pill */
  }
  .adv-header-top {
    gap: 10px;
  }
  .adv-mode-tabs {
    width: 100%;
  }
  .adv-mode-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
  }
}

#gt-advice-stage *,
#gt-advice-stage *::before,
#gt-advice-stage *::after {
  box-sizing: border-box;
}

/* Executive Header */
.adv-header {
  background: linear-gradient(135deg, rgba(10, 26, 48, 0.96) 0%, rgba(6, 13, 25, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.adv-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.adv-title-wrap h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.adv-title-star {
  color: var(--adv-green);
}

.adv-subline {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--adv-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.adv-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adv-green);
  box-shadow: 0 0 8px var(--adv-green);
}

.adv-quota-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.adv-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--adv-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--adv-text);
}

.adv-pill--admin {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
}

.adv-pill--green {
  border-color: rgba(0, 255, 136, 0.35);
  color: var(--adv-green);
}

.adv-pill--cyan {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--adv-cyan);
}

.adv-pill--amber {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.adv-pill--red {
  border-color: rgba(255, 59, 107, 0.45);
  color: #ff6b8b;
}

.adv-mode-tabs {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--adv-border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.adv-mode-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--adv-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 9px 15px;
  min-height: 40px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.adv-mode-btn:hover {
  color: #fff;
}

.adv-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(0, 255, 136, 0.14));
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.adv-disclaimer {
  margin: 10px 0 0;
  padding: 7px 11px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  color: var(--adv-muted);
  border-radius: 0 6px 6px 0;
}

/* Section cards */
.adv-card {
  background: var(--adv-card);
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.adv-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.adv-sec-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--adv-cyan);
}

.adv-sec-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--adv-muted);
}

.adv-subtabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.adv-subtab {
  appearance: none;
  border: 1px solid var(--adv-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--adv-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}

.adv-subtab.is-active {
  border-color: rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 136, 0.12);
  color: #fff;
}

/* Screener Board */
.adv-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 11px;
}

.adv-mkt-card {
  appearance: none;
  text-align: left;
  width: 100%;
  background: rgba(6, 15, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 13px;
  cursor: pointer;
  color: var(--adv-text);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-mkt-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.adv-mkt-card.is-selected {
  border-color: var(--adv-green);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.35), 0 8px 24px rgba(0, 255, 136, 0.08);
}

.adv-mkt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.adv-mkt-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.adv-mkt-sub {
  font-size: 10.5px;
  color: var(--adv-muted);
  margin-top: 2px;
}

.adv-mkt-px {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-align: right;
  white-space: nowrap;
}

.adv-mkt-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
}

.adv-chg {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--adv-muted);
}

.adv-chg.is-up {
  background: rgba(0, 255, 136, 0.12);
  color: #34d399;
}

.adv-chg.is-dn {
  background: rgba(255, 59, 107, 0.14);
  color: #fb7185;
}

.adv-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adv-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.adv-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.adv-score-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  min-width: 44px;
  text-align: right;
}

.adv-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.adv-mkt-driver {
  font-size: 11px;
  color: #b7cde2;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Targeted Forecast Builder Controls */
.adv-controls-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 960px) {
  .adv-controls-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .adv-controls-grid {
    grid-template-columns: 1fr;
  }
}

.adv-field label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adv-muted);
  margin-bottom: 5px;
}

.adv-input,
.adv-select {
  width: 100%;
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 10, 20, 0.85);
  color: #fff;
  padding: 8px 11px;
  font-size: 13px;
  outline: none;
}

.adv-input:focus,
.adv-select:focus {
  border-color: var(--adv-cyan);
}

.adv-btn-primary {
  appearance: none;
  border: 1px solid rgba(0, 255, 136, 0.55);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(56, 189, 248, 0.22));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 18px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.adv-btn-primary:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.2);
}

.adv-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.adv-btn-ghost {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--adv-text);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 12px;
  min-height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

.adv-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.adv-chip-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #c5dcf2;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.adv-chip-btn:hover {
  border-color: var(--adv-cyan);
  color: #fff;
}

/* Loading Bar */
.adv-loading-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(8, 22, 42, 0.92);
  margin-bottom: 16px;
}

.adv-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--adv-green);
  animation: adv-spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

/* Hero Investment Verdict Report */
.adv-hero {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(10, 26, 48, 0.95) 0%, rgba(7, 15, 29, 0.96) 100%);
  padding: 18px;
  margin-bottom: 16px;
}

.adv-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.adv-hero-left {
  flex: 1;
  min-width: 240px;
}

.adv-hero-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--adv-muted);
  margin-bottom: 6px;
}

.adv-hero-verdict-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.adv-hero-verdict-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adv-hero-headline {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.38;
}

.adv-score-gauge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
}

.adv-score-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.adv-score-big {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.adv-score-of {
  font-size: 10px;
  color: var(--adv-muted);
}

.adv-gauge-meta {
  font-size: 11.5px;
  color: var(--adv-muted);
  line-height: 1.5;
}

.adv-gauge-meta strong {
  color: #fff;
}

.adv-tape-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.adv-tape-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
}

.adv-tape-k {
  color: var(--adv-muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.adv-tape-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.adv-bottom-line {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 13.5px;
  line-height: 1.55;
  color: #f1f7ff;
}

.adv-bottom-line-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--adv-cyan);
  margin-bottom: 4px;
}

/* 6-Pillar Grid */
.adv-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 960px) {
  .adv-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .adv-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.adv-pillar-card {
  background: rgba(6, 15, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.adv-pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.adv-pillar-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.adv-pillar-status {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}

.adv-pillar-summary {
  font-size: 11.5px;
  color: #b7cde2;
  line-height: 1.42;
}

/* Bull vs Bear */
.adv-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .adv-split-2 {
    grid-template-columns: 1fr;
  }
}

.adv-bull-box {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  padding: 14px;
}

.adv-bear-box {
  background: rgba(255, 59, 107, 0.05);
  border: 1px solid rgba(255, 59, 107, 0.25);
  border-radius: 12px;
  padding: 14px;
}

.adv-box-list {
  margin: 8px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: #dbeafe;
}

/* Action Playbook */
.adv-playbook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .adv-playbook-grid {
    grid-template-columns: 1fr;
  }
}

.adv-play-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 12px;
}

.adv-play-k {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adv-cyan);
  margin-bottom: 4px;
}

.adv-play-v {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.45;
}

/* Ranked Recommendations */
.adv-recs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adv-rec-card {
  background: rgba(6, 15, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 13px 15px;
}

.adv-rec-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.adv-rec-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.adv-rec-body {
  margin: 7px 0;
  font-size: 12.5px;
  color: #cde0f5;
  line-height: 1.5;
}

.adv-rec-pts {
  margin: 6px 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #6ee7b7;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Collapsible Audit Trail */
.adv-details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(6, 14, 28, 0.72);
  margin-bottom: 10px;
}

.adv-details summary {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adv-details-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Chat Tab */
.adv-textarea {
  width: 100%;
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 9, 18, 0.85);
  color: #fff;
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.adv-textarea:focus {
  border-color: var(--adv-green);
}

.adv-chat-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.adv-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

@media (max-width: 760px) {
  .adv-news-list {
    grid-template-columns: 1fr;
  }
}

.adv-news-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(56, 189, 248, 0.5);
  border-radius: 9px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.025);
}

.adv-news-item a {
  color: #e6f1ff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.38;
  display: block;
}

.adv-news-item a:hover {
  color: var(--adv-cyan);
  text-decoration: underline;
}

.adv-news-meta {
  font-size: 10.5px;
  color: var(--adv-muted);
  margin-bottom: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.adv-alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 10px;
}

.adv-alert--error {
  border: 1px solid rgba(255, 59, 107, 0.45);
  background: rgba(255, 59, 107, 0.11);
  color: #fecdd3;
}

.adv-alert--pay {
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.08);
  color: #fef08a;
}

.adv-hidden {
  display: none !important;
}
