/* Shared by the interactive picker and its no-JavaScript HTML. */
[data-homepage-ai-summary] {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  /* Keep the picker above both the Hub peek and its z-50 launcher. */
  z-index: 51;
  color: #e2e8f0;
  font: 14px/1.5 Inter, system-ui, sans-serif;
}
[data-homepage-ai-summary] * { box-sizing: border-box; }
[data-homepage-ai-summary] summary { cursor: pointer; list-style: none; }
[data-homepage-ai-summary] summary::-webkit-details-marker { display: none; }
[data-homepage-ai-summary] :is(summary, a):focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}
.homepage-ai-launcher {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 10px 16px; border: 1px solid #67e8f980; border-radius: 99px;
  background: linear-gradient(110deg, #164e63, #1e3a5f); color: #cffafe;
  font-weight: 650; box-shadow: 0 8px 28px #02061766;
}
.homepage-ai-launcher svg { width: 24px; height: 24px; flex: none; }
.homepage-ai-launcher-mark { font-size: 22px; line-height: 1; }
[data-homepage-ai-summary][open] > summary .homepage-ai-launcher-mark { transform: rotate(45deg); }
.homepage-ai-panel {
  position: absolute; bottom: calc(100% + 12px); left: 0;
  width: min(28rem, calc(100vw - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: min(44rem, calc(100dvh - 6rem - env(safe-area-inset-bottom)));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  border: 1px solid #67e8f950; border-radius: 20px;
  background: #070f20; box-shadow: 0 20px 60px #020617b3;
}
.homepage-ai-header { padding: 20px 20px 16px; }
.homepage-ai-header p { margin: 6px 0 0; color: #cbd5e1; }
.homepage-ai-header .homepage-ai-eyebrow {
  margin: 0 0 8px; color: #67e8f9; font-size: 10px; font-weight: 700; letter-spacing: .14em;
}
.homepage-ai-header h2 { margin: 0; color: #f8fafc; font-size: 22px; font-weight: 650; line-height: 1.25; }
.homepage-ai-topics { display: grid; gap: 8px; padding: 0 14px 16px; }
[data-ai-topic] { border: 1px solid #334155; border-radius: 12px; background: #0f172a; }
[data-ai-topic][open] { border-color: #67e8f980; }
.homepage-ai-topic-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 12px; border-radius: 12px;
}
.homepage-ai-topic-title:hover { background: #1e293b; }
.homepage-ai-topic-title strong { display: block; color: #e0f2fe; font-weight: 600; }
.homepage-ai-topic-preview { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: #94a3b8; }
.homepage-ai-chevron { flex: none; color: #67e8f9; font-size: 18px; }
[data-ai-topic][open] > summary .homepage-ai-chevron { transform: rotate(180deg); }
.homepage-ai-topic-body { padding: 14px 12px; border-top: 1px solid #334155; }
.homepage-ai-preview p { margin: 0 0 8px; color: #cbd5e1; }
.homepage-ai-preview .homepage-ai-takeaway { color: #e2e8f0; }
.homepage-ai-question-label { margin: 16px 0 6px; color: #a5f3fc; font-size: 12px; font-weight: 650; }
.homepage-ai-question {
  margin: 0 0 16px; padding: 10px 12px; border-left: 2px solid #67e8f9;
  border-radius: 0 8px 8px 0; background: #02061780; color: #f8fafc;
}
.homepage-ai-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  padding: 10px 16px; border-radius: 10px; background: #67e8f9; color: #082f49;
  text-decoration: none; font-weight: 700;
}
.homepage-ai-cta:hover { background: #a5f3fc; }
.homepage-ai-handoff { margin: 8px 0; color: #94a3b8; font-size: 12px; }
.homepage-ai-context { margin-top: 10px; color: #cbd5e1; }
.homepage-ai-context summary { display: flex; align-items: center; min-height: 44px; color: #a5f3fc; text-decoration: underline; text-underline-offset: 3px; }
.homepage-ai-context a { color: #a5f3fc; overflow-wrap: anywhere; text-decoration: underline; }
.homepage-ai-context ul { margin: 8px 0; padding-left: 18px; }
.homepage-ai-context li { margin: 8px 0; }
.homepage-ai-prompt { white-space: pre-line; overflow-wrap: anywhere; user-select: text; }
