/* Scene 2, AI Discovery Workspace. The layout starts with one dominant
   recommendation and uses compact preview rows for the supporting discovery paths. */
body[data-scene="2"] {
  --discovery-ink: #0b1d48;
  --discovery-muted: #566582;
  --discovery-line: #dfe7ef;
  --discovery-blue: #075bff;
  --discovery-teal: #0a9698;
  background: #f6f9fb;
}

body[data-scene="2"] #main {
  max-width: 1520px;
  padding: 27px clamp(18px, 3vw, 46px) 145px;
  color: var(--discovery-ink);
}

body[data-scene="2"] #main::before {
  top: 0;
  right: 2%;
  left: 2%;
  height: 150px;
  margin: 0;
  border-radius: 0 0 38px 38px;
  background: linear-gradient(110deg, #e9faf7 0%, #f1f8ff 53%, rgb(246 249 251 / 0%) 100%);
}

body[data-scene="2"] .page-heading,
body[data-scene="2"] .discovery-workspace,
body[data-scene="2"] .discovery-section,
body[data-scene="2"] .discovery-final-cta {
  position: relative;
  z-index: 1;
}

body[data-scene="2"] .page-heading {
  max-width: 950px;
  margin-bottom: 20px;
}

body[data-scene="2"] .page-heading h1,
body[data-scene="2"] .page-heading .title {
  margin-bottom: 6px;
  color: var(--discovery-ink);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -1px;
}

body[data-scene="2"] .page-heading .lead {
  max-width: 700px;
  margin: 0;
  color: var(--discovery-muted);
  font-size: 15px;
}

body[data-scene="2"] .discovery-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 19px;
  align-items: stretch;
}

body[data-scene="2"] .discovery-primary,
body[data-scene="2"] .discovery-composer,
body[data-scene="2"] .discovery-section,
body[data-scene="2"] .discovery-final-cta {
  border: 1px solid var(--discovery-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(12 38 74 / 6%);
}

body[data-scene="2"] .discovery-primary {
  padding: clamp(21px, 3vw, 33px);
  background: linear-gradient(135deg, #fff 0%, #f9fffd 56%, #f1fbff 100%);
  border-color: #cddfe2;
}

body[data-scene="2"] .discovery-primary-top,
body[data-scene="2"] .discovery-section-heading,
body[data-scene="2"] .discovery-primary-actions,
body[data-scene="2"] .discovery-source-area,
body[data-scene="2"] .discovery-final-cta,
body[data-scene="2"] .discovery-recommendation-row,
body[data-scene="2"] .discovery-topic-row,
body[data-scene="2"] .discovery-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

body[data-scene="2"] .discovery-eyebrow {
  color: #087e7c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

body[data-scene="2"] .discovery-primary-content {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  margin: 29px 0 23px;
}

body[data-scene="2"] .discovery-primary-content h2 {
  margin: 3px 0 8px;
  color: var(--discovery-ink);
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -.8px;
}

body[data-scene="2"] .discovery-primary-content p {
  max-width: 700px;
  margin: 0;
  color: #405376;
  font-size: 14px;
  line-height: 1.65;
}

body[data-scene="2"] .discovery-spark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #075bff, #12a9a0);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 9px 22px rgb(7 91 255 / 20%);
}

body[data-scene="2"] .discovery-recommended-because {
  margin: 0 0 10px;
  color: #1d3e6c;
  font-size: 12px;
  font-weight: 700;
}

body[data-scene="2"] .discovery-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

body[data-scene="2"] .discovery-reasons > div {
  min-width: 0;
  padding: 13px 13px 14px;
  border: 1px solid #dce8eb;
  border-radius: 11px;
  background: rgb(255 255 255 / 75%);
}

body[data-scene="2"] .discovery-reasons > div > span {
  display: block;
  margin-bottom: 8px;
  color: #07928d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

body[data-scene="2"] .discovery-reasons strong,
body[data-scene="2"] .discovery-reasons small {
  display: block;
}

body[data-scene="2"] .discovery-reasons strong {
  margin-bottom: 6px;
  color: var(--discovery-ink);
  font-size: 12px;
  line-height: 1.35;
}

body[data-scene="2"] .discovery-reasons small {
  color: var(--discovery-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-scene="2"] .discovery-source-area {
  padding: 15px 0 14px;
  border-top: 1px solid #e2ebee;
  border-bottom: 1px solid #e2ebee;
}

body[data-scene="2"] .discovery-source-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

body[data-scene="2"] .discovery-source-mark {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

body[data-scene="2"] .discovery-source-outlook { background: #1672cf; }
body[data-scene="2"] .discovery-source-teams { background: #6259c9; }
body[data-scene="2"] .discovery-source-sharepoint { background: #07887a; }
body[data-scene="2"] .discovery-source-haiilo { background: #0b3156; }

body[data-scene="2"] .discovery-signal-copy {
  display: flex;
  max-width: 200px;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

body[data-scene="2"] .discovery-signal-copy strong {
  color: #075bff;
  font-size: 13px;
}

body[data-scene="2"] .discovery-signal-copy span {
  color: var(--discovery-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-scene="2"] .discovery-primary-actions {
  justify-content: flex-start;
  margin-top: 19px;
}

body[data-scene="2"] .discovery-generate {
  min-width: 180px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

body[data-scene="2"] .discovery-composer {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 25px;
  background:
    radial-gradient(circle at 100% 0%, rgb(122 92 255 / 15%), transparent 38%),
    radial-gradient(circle at 0% 100%, rgb(41 190 174 / 13%), transparent 42%),
    linear-gradient(145deg, #f4f8ff 0%, #fff 48%, #eefaf8 100%);
  border-color: #cfdde9;
  color: var(--discovery-ink);
  box-shadow: 0 12px 28px rgb(20 55 88 / 12%);
}

body[data-scene="2"] .discovery-composer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #086d86, #24a99d 52%, #7a5cff);
  content: "";
}

body[data-scene="2"] .discovery-composer > * {
  position: relative;
  z-index: 1;
}

body[data-scene="2"] .discovery-composer-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}

body[data-scene="2"] .discovery-composer h2 {
  margin: 2px 0 0;
  color: var(--discovery-ink);
  font-size: 20px;
}

body[data-scene="2"] .discovery-composer p {
  color: #516684;
}

body[data-scene="2"] .discovery-composer-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(17 139 147 / 22%);
  border-radius: 12px;
  background: linear-gradient(145deg, #e0f6f2, #e9efff);
  color: #087f87;
  font-size: 24px;
  box-shadow: 0 7px 18px rgb(21 107 125 / 12%);
}

body[data-scene="2"] .discovery-composer .field {
  margin: 17px 0 12px;
  color: #183b62;
  font-size: 12px;
  font-weight: 600;
}

body[data-scene="2"] .discovery-composer input {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  border-color: #c4d5e5;
  background: #fff;
  color: var(--discovery-ink);
  box-shadow: 0 4px 12px rgb(20 55 88 / 7%);
}

body[data-scene="2"] .discovery-composer-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 17px;
  color: #526b86;
  font-size: 11px;
  line-height: 1.45;
}

body[data-scene="2"] .discovery-state-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #50d7c1;
  box-shadow: 0 0 0 4px rgb(80 215 193 / 15%);
}

body[data-scene="2"] .discovery-composer-cta {
  width: 100%;
  margin-top: auto;
  border-color: #0a365d;
  background: linear-gradient(135deg, #082b52, #0b5268);
  color: #fff;
  box-shadow: 0 8px 18px rgb(8 43 82 / 18%);
}

body[data-scene="2"] .discovery-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

body[data-scene="2"] .discovery-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e5eb;
  border-radius: 10px;
  background: #f8fbfd;
  text-align: left;
}

body[data-scene="2"] .discovery-signal:hover {
  background: #edf6ff;
  border-color: #a8c9eb;
}

body[data-scene="2"] .discovery-signal-number {
  color: #075bff;
  font-size: 17px;
  font-weight: 800;
}

body[data-scene="2"] .discovery-signal strong,
body[data-scene="2"] .discovery-signal small {
  display: block;
}

body[data-scene="2"] .discovery-signal strong {
  color: var(--discovery-ink);
  font-size: 11px;
  line-height: 1.25;
}

body[data-scene="2"] .discovery-signal small {
  margin-top: 3px;
  color: var(--discovery-muted);
  font-size: 10px;
  line-height: 1.25;
}

body[data-scene="2"] .discovery-signal-mark .discovery-source-mark {
  width: 23px;
  height: 23px;
}

body[data-scene="2"] .discovery-section {
  margin-top: 19px;
  padding: 21px 23px;
}

body[data-scene="2"] .discovery-section-heading {
  align-items: flex-end;
  margin-bottom: 15px;
}

body[data-scene="2"] .discovery-section-heading h2 {
  margin: 4px 0 0;
  color: var(--discovery-ink);
  font-size: 20px;
}

body[data-scene="2"] .discovery-prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-scene="2"] .discovery-prompt {
  min-height: 52px;
  justify-content: flex-start;
  padding: 12px 14px;
  border-color: #d7e1ed;
  color: #193a64;
  text-align: left;
  white-space: normal;
}

body[data-scene="2"] .discovery-prompt:before {
  content: '＋';
  color: #0b9a96;
  font-size: 16px;
  font-weight: 600;
}

body[data-scene="2"] .discovery-prompt.selected {
  background: #e8f8f5;
  border-color: #55bcb2;
  color: #075b57;
  box-shadow: inset 0 0 0 1px #55bcb2;
}

body[data-scene="2"] .discovery-prompt.selected:before {
  content: '✓';
}

body[data-scene="2"] .discovery-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 23px;
}

body[data-scene="2"] .discovery-topic-row,
body[data-scene="2"] .discovery-recommendation-row,
body[data-scene="2"] .discovery-event-row {
  min-width: 0;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #e8edf2;
}

body[data-scene="2"] .discovery-topic-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body[data-scene="2"] .discovery-topic-row > div,
body[data-scene="2"] .discovery-recommendation-row > div,
body[data-scene="2"] .discovery-event-row > div {
  min-width: 0;
  flex: 1;
}

body[data-scene="2"] .discovery-topic-row strong,
body[data-scene="2"] .discovery-recommendation-row strong,
body[data-scene="2"] .discovery-event-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--discovery-ink);
  font-size: 13px;
}

body[data-scene="2"] .discovery-topic-row p,
body[data-scene="2"] .discovery-recommendation-row p,
body[data-scene="2"] .discovery-event-row p,
body[data-scene="2"] .discovery-recommendation-row small {
  display: block;
  margin: 0;
  color: var(--discovery-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-scene="2"] .discovery-topic-icon,
body[data-scene="2"] .discovery-community-icon,
body[data-scene="2"] .discovery-event-date {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #edf3ff;
  color: #075bff;
  font-size: 18px;
  font-weight: 800;
}

body[data-scene="2"] .topic-release { background: #e8f8f4; color: #078779; }
body[data-scene="2"] .topic-pricing { background: #f0ecff; color: #6d54c9; }
body[data-scene="2"] .topic-travel { background: #fff1de; color: #d87a06; }

body[data-scene="2"] .discovery-avatar {
  display: inline-flex;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d9eff0;
  color: #087e7c;
  font-size: 12px;
  font-weight: 800;
}

body[data-scene="2"] .discovery-avatar-purple,
body[data-scene="2"] .discovery-community-purple { background: #eee8ff; color: #624fc4; }

body[data-scene="2"] .discovery-community-icon {
  background: #e5f1ff;
  color: #226bc0;
  font-size: 11px;
}

body[data-scene="2"] .discovery-event-date {
  height: 42px;
  flex-direction: column;
  background: #fff2df;
  color: #c96e00;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

body[data-scene="2"] .discovery-event-date small {
  font-size: 7px;
  letter-spacing: .45px;
}

body[data-scene="2"] .discovery-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 19px;
  align-items: start;
}

body[data-scene="2"] .discovery-lower-grid .discovery-section {
  height: 100%;
}

body[data-scene="2"] .discovery-final-cta {
  margin-top: 19px;
  padding: 22px 25px;
  background: linear-gradient(110deg, #07264b 0%, #0d4167 100%);
  border-color: #1d5278;
  color: #fff;
}

body[data-scene="2"] .discovery-final-cta h2 {
  margin: 5px 0 4px;
  color: #fff;
  font-size: 20px;
}

body[data-scene="2"] .discovery-final-cta p {
  margin: 0;
  color: #c3d8ed;
  font-size: 12px;
}

body[data-scene="2"] .discovery-final-cta .btn.primary {
  min-width: 182px;
  background: #fff;
  color: #082b52;
  border-color: #fff;
}

@media (max-width: 1060px) {
  body[data-scene="2"] .discovery-workspace { grid-template-columns: minmax(0, 1fr); }
  body[data-scene="2"] .discovery-composer { min-height: 0; }
  body[data-scene="2"] .discovery-composer-cta { width: 220px; margin-top: 3px; }
}

@media (max-width: 760px) {
  body[data-scene="2"] .discovery-reasons,
  body[data-scene="2"] .discovery-topic-list,
  body[data-scene="2"] .discovery-lower-grid { grid-template-columns: 1fr; }
  body[data-scene="2"] .discovery-topic-row:nth-last-child(-n + 2) { border-bottom: 1px solid #e8edf2; }
  body[data-scene="2"] .discovery-topic-row:last-child { border-bottom: 0; }
  body[data-scene="2"] .discovery-final-cta { align-items: flex-start; flex-direction: column; }
  body[data-scene="2"] .discovery-final-cta .btn.primary { width: 100%; }
}

@media (max-width: 620px) {
  body[data-scene="2"] #main { padding: 20px 11px 190px; }
  body[data-scene="2"] .discovery-primary { padding: 19px 16px; }
  body[data-scene="2"] .discovery-primary-content { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; margin-top: 23px; }
  body[data-scene="2"] .discovery-spark { width: 44px; height: 44px; border-radius: 14px; font-size: 24px; }
  body[data-scene="2"] .discovery-primary-content h2 { font-size: 23px; }
  body[data-scene="2"] .discovery-source-area { align-items: flex-start; flex-direction: column; }
  body[data-scene="2"] .discovery-signal-copy { max-width: none; text-align: left; }
  body[data-scene="2"] .discovery-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-scene="2"] .discovery-section { padding: 18px 16px; }
  body[data-scene="2"] .discovery-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  body[data-scene="2"] .discovery-prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-scene="2"] .discovery-prompt { min-height: 65px; padding: 10px; font-size: 12px; }
  body[data-scene="2"] .discovery-recommendation-row,
  body[data-scene="2"] .discovery-event-row { align-items: flex-start; gap: 9px; }
  body[data-scene="2"] .discovery-recommendation-row .btn,
  body[data-scene="2"] .discovery-event-row .btn,
  body[data-scene="2"] .discovery-topic-row .btn { padding-right: 0; }
  body[data-scene="2"] .discovery-final-cta { padding: 19px 17px; }
  body[data-scene="2"] .discovery-composer { padding: 19px 16px; }
  body[data-scene="2"] .discovery-composer-cta { width: 100%; }
}
