html body.ai-active #mobile-ai-messages-container:has(.mobile-agent-home) {
  padding: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  background: #ffffff !important;
}

html body.ai-active[data-mobile-ai-skill="ask"] #mobile-ai-messages-container,
html body.ai-active.mobile-ai-skill-active[data-mobile-ai-skill="ask"] #mobile-ai-messages-container {
  background: #ffffff !important;
}

.mobile-agent-home {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 18px 16px 24px;
  background: #ffffff;
  color: #0a0b0d;
  -webkit-text-fill-color: #0a0b0d;
}

.mobile-agent-conversation-intro {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.mobile-agent-update-status {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  box-shadow: none;
}

.mobile-agent-update-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #2ab66a;
  box-shadow: 0 0 0 4px rgba(42, 182, 106, .12);
  animation: mobileAgentPulse 1.4s ease-in-out infinite;
}

.mobile-agent-update-copy { min-width: 0; display: grid; gap: 3px; }
.mobile-agent-update-copy small { color: rgba(10,11,13,.46); font-size: 9px; line-height: 1; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.mobile-agent-update-copy strong { color: #111; font-size: 14px; line-height: 1.15; font-weight: 950; }
.mobile-agent-update-copy em { color: rgba(10,11,13,.56); font-size: 11px; line-height: 1.3; font-style: normal; font-weight: 700; }
.mobile-agent-update-progress { grid-column: 2; height: 3px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #e8eaed; }
.mobile-agent-update-progress i { display: block; height: 100%; border-radius: inherit; background: #111; transition: width .5s ease; }

.mobile-agent-conversation-intro .mobile-agent-head,
.mobile-agent-conversation-intro .mobile-agent-profile-hero,
.mobile-agent-conversation-intro .mobile-agent-metrics,
.mobile-agent-conversation-intro .mobile-agent-report-card,
.mobile-agent-conversation-intro .mobile-agent-next-move,
.mobile-agent-conversation-intro .mobile-agent-confirm-row,
.mobile-agent-conversation-intro .mobile-agent-opportunity-section,
.mobile-agent-conversation-intro .mobile-agent-compliance,
.mobile-agent-conversation-intro .mobile-agent-evidence {
  margin-top: 0;
  margin-bottom: 0;
}

.mobile-agent-composer {
  position: relative;
  min-height: 66px;
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(10, 11, 13, .08);
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.mobile-agent-composer-field {
  position: relative;
  min-width: 0;
}

.mobile-agent-character-count {
  position: absolute;
  right: 16px;
  bottom: 7px;
  color: rgba(10, 11, 13, .38);
  -webkit-text-fill-color: rgba(10, 11, 13, .38);
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

html[data-theme="light"] body.ai-active #mobile-agent-input,
.mobile-agent-composer #mobile-agent-input {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  box-sizing: border-box;
  padding: 12px 17px;
  border: 1px solid rgba(10, 11, 13, .14) !important;
  border-radius: 24px;
  outline: 0;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  overflow-y: auto;
  line-height: 1.35;
}

html[data-theme="light"] body.ai-active #mobile-agent-input::placeholder,
.mobile-agent-composer #mobile-agent-input::placeholder {
  color: rgba(10, 11, 13, .32) !important;
  -webkit-text-fill-color: rgba(10, 11, 13, .32) !important;
}

/* Agent is intentionally a light conversation surface, even when the
   surrounding app/theme is dark. Do not delegate this to platform defaults. */
html body.ai-active .mobile-agent-composer #mobile-agent-input,
html body.ai-active .mobile-agent-composer #mobile-agent-input:focus,
html body.ai-active .mobile-agent-composer #mobile-agent-input:active,
html body.ai-active .mobile-agent-composer #mobile-agent-input:hover,
html[data-theme="dark"] body.ai-active .mobile-agent-composer #mobile-agent-input,
html[data-theme="dark"] body.ai-active .mobile-agent-composer #mobile-agent-input:focus {
  color-scheme: light !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: rgba(10, 11, 13, .14) !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html body.ai-active .mobile-agent-composer #mobile-agent-input::placeholder,
html[data-theme="dark"] body.ai-active .mobile-agent-composer #mobile-agent-input::placeholder {
  color: rgba(10, 11, 13, .32) !important;
  -webkit-text-fill-color: rgba(10, 11, 13, .32) !important;
  opacity: 1 !important;
}

.mobile-agent-composer button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  -webkit-text-fill-color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.mobile-agent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-agent-head > div { min-width: 0; }
.mobile-agent-head span,
.mobile-agent-partial small,
.mobile-agent-profile-top small,
.mobile-agent-report-card small,
.mobile-agent-next-move small {
  display: block;
  color: rgba(10, 11, 13, .5);
  -webkit-text-fill-color: rgba(10, 11, 13, .5);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mobile-agent-head h1 {
  margin: 6px 0 0;
  font-size: clamp(27px, 8vw, 38px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 950;
}

.mobile-agent-profile-hero,
.mobile-agent-empty-card {
  border: 1px solid rgba(10, 11, 13, .09);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(19, 25, 35, .08);
}

.mobile-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.mobile-agent-partial { margin-top: 14px; padding: 17px; border: 1px solid rgba(10, 11, 13, .08); border-radius: 20px; background: rgba(255,255,255,.76); }
.mobile-agent-partial strong { display: block; margin-top: 7px; font-size: 16px; font-weight: 950; }
.mobile-agent-partial p { margin: 7px 0 0; color: rgba(10, 11, 13, .58); -webkit-text-fill-color: rgba(10, 11, 13, .58); font-size: 12px; line-height: 1.4; }

.mobile-agent-profile-hero { padding: 20px; }
.mobile-agent-profile-top { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 13px; }
.mobile-agent-avatar { width: 62px; height: 62px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: #101114; color: #fff; -webkit-text-fill-color: #fff; }
.mobile-agent-avatar b { color: #fff; -webkit-text-fill-color: #fff; font-size: 25px; }
.mobile-agent-profile-top h2 { margin: 5px 0 0; font-size: 23px; line-height: 1; letter-spacing: -.03em; font-weight: 950; }
.mobile-agent-profile-top p { margin: 5px 0 0; color: rgba(10,11,13,.56); -webkit-text-fill-color: rgba(10,11,13,.56); font-size: 12px; font-weight: 800; }
.mobile-agent-profile-summary { margin: 18px 0 0; font-size: 15px; line-height: 1.45; font-weight: 720; }
.mobile-agent-profile-context { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.mobile-agent-profile-context span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(10,11,13,.08); border-radius: 999px; color: rgba(10,11,13,.62); -webkit-text-fill-color: rgba(10,11,13,.62); font-size: 9px; font-weight: 850; }
.mobile-agent-profile-context i { font-size: 8px; }
.mobile-agent-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mobile-agent-pills span { padding: 8px 10px; border-radius: 999px; background: #f0f1f3; font-size: 10px; font-weight: 900; }

.mobile-agent-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.mobile-agent-metrics > div { min-width: 0; padding: 14px 10px; border: 1px solid rgba(10,11,13,.08); border-radius: 18px; background: #fff; }
.mobile-agent-metrics small,.mobile-agent-metrics strong,.mobile-agent-metrics em { display: block; }
.mobile-agent-metrics small { color: rgba(10,11,13,.46); -webkit-text-fill-color: rgba(10,11,13,.46); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.mobile-agent-metrics strong { margin-top: 7px; font-size: 21px; line-height: 1; font-weight: 950; }
.mobile-agent-metrics em { margin-top: 5px; color: rgba(10,11,13,.4); -webkit-text-fill-color: rgba(10,11,13,.4); font-size: 8px; font-style: normal; font-weight: 780; }

.mobile-agent-report-card { margin-top: 12px; padding: 19px; border: 1px solid rgba(10,11,13,.08); border-radius: 22px; background: #fff; }
.mobile-agent-report-card.is-primary { background: #101114; border-color: #101114; color: #fff; -webkit-text-fill-color: #fff; }
.mobile-agent-report-card.is-primary h3,
.mobile-agent-report-card.is-primary p { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.mobile-agent-report-card.is-primary small { color: rgba(255,255,255,.58); -webkit-text-fill-color: rgba(255,255,255,.58); }
html[data-theme="light"] body .mobile-agent-home .mobile-agent-report-card.is-primary,
html[data-theme="light-accent"] body .mobile-agent-home .mobile-agent-report-card.is-primary,
html[data-theme="light"] body .mobile-agent-home .mobile-agent-report-card.is-primary *,
html[data-theme="light-accent"] body .mobile-agent-home .mobile-agent-report-card.is-primary * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html[data-theme="light"] body .mobile-agent-home .mobile-agent-report-card.is-primary small,
html[data-theme="light-accent"] body .mobile-agent-home .mobile-agent-report-card.is-primary small {
  color: rgba(255,255,255,.62) !important;
  -webkit-text-fill-color: rgba(255,255,255,.62) !important;
}
.mobile-agent-report-card.is-honest { background: #f1eee7; }
.mobile-agent-report-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.1; font-weight: 950; }
.mobile-agent-report-card p { margin: 9px 0 0; font-size: 14px; line-height: 1.45; font-weight: 680; }

.mobile-agent-next-move { margin-top: 12px; padding: 21px; border-radius: 24px; background: linear-gradient(145deg,#e2f9eb,#f4fff8); border: 1px solid rgba(24,127,69,.12); }
.mobile-agent-next-move h3 { margin: 9px 0 18px; font-size: 20px; line-height: 1.16; letter-spacing: -.025em; font-weight: 950; }
.mobile-agent-next-move button,.mobile-agent-empty-card button { width: 100%; min-height: 46px; border: 0; border-radius: 999px; background: #0b0c0e; color: #fff; -webkit-text-fill-color: #fff; font-size: 12px; font-weight: 950; }
.mobile-agent-next-move button.is-secondary { margin-top: 9px; border: 1px solid rgba(11,12,14,.18); background: #fff; color: #0b0c0e; -webkit-text-fill-color: #0b0c0e; }
.mobile-agent-confirm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mobile-agent-confirm-row button { min-height: 42px; border: 1px solid rgba(10,11,13,.1); border-radius: 999px; background: #fff; color: #111; font-size: 11px; font-weight: 900; }

.mobile-agent-opportunity-section { margin-top: 20px; padding: 18px; border: 1px solid rgba(10,11,13,.08); border-radius: 24px; background: #fff; }
.mobile-agent-opportunity-section.is-local { background: linear-gradient(150deg,#edf8ff 0%,#fff 48%); }
.mobile-agent-opportunity-section.is-national { background: linear-gradient(150deg,#f4f0ff 0%,#fff 48%); }
.mobile-agent-opportunity-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-agent-opportunity-section > header small { display: block; color: rgba(10,11,13,.46); -webkit-text-fill-color: rgba(10,11,13,.46); font-size: 9px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.mobile-agent-opportunity-section > header h3 { margin: 6px 0 0; font-size: 22px; line-height: 1; letter-spacing: -.035em; font-weight: 950; }
.mobile-agent-opportunity-section > header > span { flex: 0 0 auto; padding: 7px 9px; border-radius: 999px; background: rgba(10,11,13,.06); color: rgba(10,11,13,.55); -webkit-text-fill-color: rgba(10,11,13,.55); font-size: 9px; font-weight: 900; }
.mobile-agent-opportunity-intro { margin: 12px 0 0; color: rgba(10,11,13,.56); -webkit-text-fill-color: rgba(10,11,13,.56); font-size: 11px; line-height: 1.42; font-weight: 680; }
.mobile-agent-opportunity-list { display: grid; gap: 8px; margin-top: 15px; }
.mobile-agent-opportunity-list > button,.mobile-agent-opportunity-list > .mobile-agent-opportunity-card { width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr) 14px; align-items: center; gap: 10px; padding: 13px 11px; border: 1px solid rgba(10,11,13,.07); border-radius: 17px; background: rgba(255,255,255,.86); color: #0a0b0d; text-align: left; cursor: pointer; }
.mobile-agent-opportunity-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: #101114; color: #fff; -webkit-text-fill-color: #fff; font-size: 10px; font-weight: 950; }
.mobile-agent-opportunity-copy { min-width: 0; }
.mobile-agent-opportunity-copy small,.mobile-agent-opportunity-copy strong,.mobile-agent-opportunity-copy em,.mobile-agent-opportunity-copy p { display: block; }
.mobile-agent-opportunity-copy small { color: rgba(10,11,13,.43); -webkit-text-fill-color: rgba(10,11,13,.43); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.mobile-agent-target-kind { display: inline-block; margin-right: 6px; padding: 3px 5px; border-radius: 999px; background: #e9edf2; color: #20242a; -webkit-text-fill-color: #20242a; font-size: 7px; line-height: 1; letter-spacing: .04em; }
.mobile-agent-target-kind.is-sponsor { background: #ddf7e7; color: #126033; -webkit-text-fill-color: #126033; }
.mobile-agent-target-kind.is-media { background: #e6efff; color: #234f9b; -webkit-text-fill-color: #234f9b; }
.mobile-agent-target-kind.is-activation { background: #f4eaff; color: #63388d; -webkit-text-fill-color: #63388d; }
.mobile-agent-opportunity-copy strong { margin-top: 4px; font-size: 13px; line-height: 1.12; font-weight: 950; }
.mobile-agent-opportunity-copy em { margin-top: 3px; color: rgba(10,11,13,.46); -webkit-text-fill-color: rgba(10,11,13,.46); font-size: 9px; font-style: normal; font-weight: 760; }
.mobile-agent-opportunity-copy p { margin: 7px 0 0; color: rgba(10,11,13,.68); -webkit-text-fill-color: rgba(10,11,13,.68); font-size: 10px; line-height: 1.35; font-weight: 720; }
.mobile-agent-opportunity-copy p b { color: #0a0b0d; -webkit-text-fill-color: #0a0b0d; font-weight: 950; }
.mobile-agent-opportunity-copy .mobile-agent-opportunity-conflict { color: rgba(10,11,13,.48); -webkit-text-fill-color: rgba(10,11,13,.48); }
.mobile-agent-opportunity-copy .mobile-agent-opportunity-contact { color: rgba(10,11,13,.56); -webkit-text-fill-color: rgba(10,11,13,.56); }
.mobile-agent-opportunity-list > button > i,.mobile-agent-opportunity-list > .mobile-agent-opportunity-card > i { color: rgba(10,11,13,.35); -webkit-text-fill-color: rgba(10,11,13,.35); font-size: 10px; }
.mobile-agent-opportunity-mail { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 11px; border: 0; border-radius: 999px; background: #0a0b0d; color: #fff; -webkit-text-fill-color: #fff; font-size: 10px; font-weight: 900; }
.mobile-agent-opportunity-cta { width: 100%; min-height: 43px; margin-top: 12px; border: 0; border-radius: 999px; background: #101114; color: #fff; -webkit-text-fill-color: #fff; font-size: 11px; font-weight: 950; }
.mobile-agent-opportunity-cta i { margin-left: 6px; }
.mobile-agent-compliance { display: flex; align-items: flex-start; gap: 8px; margin: 12px 5px 0; color: rgba(10,11,13,.47); -webkit-text-fill-color: rgba(10,11,13,.47); font-size: 9px; line-height: 1.4; font-weight: 720; }
.mobile-agent-compliance i { margin-top: 1px; }

.mobile-agent-evidence { margin: 18px auto 0; max-width: 290px; color: rgba(10,11,13,.42); -webkit-text-fill-color: rgba(10,11,13,.42); text-align: center; font-size: 9px; line-height: 1.4; font-weight: 750; }

.mobile-agent-empty-card { padding: 34px 22px; text-align: center; }
.mobile-agent-empty-icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 20px; background: #eff1f4; display: grid; place-items: center; font-size: 22px; }
.mobile-agent-empty-card h2 { margin: 0; font-size: 24px; line-height: 1.05; font-weight: 950; }
.mobile-agent-empty-card p { margin: 12px auto 20px; max-width: 310px; color: rgba(10,11,13,.58); -webkit-text-fill-color: rgba(10,11,13,.58); font-size: 13px; line-height: 1.45; }
.mobile-agent-error-detail { display: block; margin: -8px auto 18px; max-width: 310px; color: rgba(10,11,13,.4); -webkit-text-fill-color: rgba(10,11,13,.4); font-size: 10px; line-height: 1.35; }

@keyframes mobileAgentPulse { 50% { opacity: .42; transform: scale(.88); } }

@media (max-width: 360px) {
  .mobile-agent-home { padding-left: 12px; padding-right: 12px; }
  .mobile-agent-metrics { gap: 5px; }
  .mobile-agent-metrics > div { padding-left: 8px; padding-right: 8px; }
}
