/* Agent chat view: generation history card and message blocks, Pollo-scoped. */
html[data-competitor="pollo"] [data-production-pollo-media-history] {
  box-sizing: border-box;
  margin: 18px 0;
  padding: 16px;
  text-align: left;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: #141419;
}
html[data-competitor="pollo"] [data-production-pollo-media-history] > h2 { margin: 0 0 2px; font-size: 15px; line-height: 22px; font-weight: 600; }
html[data-competitor="pollo"] [data-production-pollo-media-history] > p { margin: 0 0 10px; font-size: 12.5px; line-height: 18px; color: #a1a1ab; }
html[data-competitor="pollo"] [data-production-pollo-media-history] > div:first-of-type { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
html[data-competitor="pollo"] [data-production-pollo-media-history] button {
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: transparent;
  color: #e5e5ea;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
html[data-competitor="pollo"] [data-production-pollo-media-history] button:hover { background: #ffffff0f; }
html[data-competitor="pollo"] [data-production-pollo-media-job] {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid #ffffff0f;
}
html[data-competitor="pollo"] [data-production-pollo-media-job] > p:first-of-type { grid-column: 1; margin: 0; font-size: 14px; font-weight: 500; color: #f5f5f5; }
html[data-competitor="pollo"] [data-production-pollo-media-job] > time { grid-column: 1; grid-row: 2; font-size: 11.5px; color: #8b8b95; font-variant-numeric: tabular-nums; }
html[data-competitor="pollo"] [data-production-pollo-media-job] > button { grid-column: 2; grid-row: 1 / span 2; }
html[data-competitor="pollo"] [data-production-pollo-media-job] > [data-media-job-notice] { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12.5px; color: #ffb98f; }
html[data-competitor="pollo"] [data-production-pollo-media-job] > [data-media-job-notice]:empty,
html[data-competitor="pollo"] [data-production-pollo-media-history] [data-media-history-notice]:empty { display: none; }
html[data-competitor="pollo"] [data-production-chat] .production-chat-message { margin: 10px 0; }

/* Model picker menu */
html[data-competitor="pollo"] div.production-brand-menu {
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  background: #15151b;
  color: #f5f5f5;
  box-shadow: 0 20px 60px #000a;
}
html[data-competitor="pollo"] div.production-brand-menu [data-production-model-close] {
  justify-self: end;
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b8b95;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
html[data-competitor="pollo"] div.production-brand-menu [data-production-model-close]:hover { color: #e5e5ea; background: #ffffff0d; }
html[data-competitor="pollo"] div.production-brand-menu [data-production-model-choice] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
html[data-competitor="pollo"] div.production-brand-menu [data-production-model-choice]:hover { background: #ffffff0d; }
html[data-competitor="pollo"] div.production-brand-menu [data-production-model-choice]:is([aria-checked="true"], [aria-selected="true"], [aria-pressed="true"]) {
  border-color: #fb7d3760;
  background: #fb7d3714;
}

/* Chat messages: user bubble on the right, assistant text with a small label */
html[data-competitor="pollo"] [data-production-chat] .production-chat-message { display: grid; gap: 4px; }
html[data-competitor="pollo"] [data-production-chat] [data-production-message="user"] { justify-items: end; }
html[data-competitor="pollo"] [data-production-chat] [data-production-message="user"] > b { display: none; }
html[data-competitor="pollo"] [data-production-chat] [data-production-message="user"] [data-production-message-body] {
  max-width: 88%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #23232c;
  overflow-wrap: anywhere;
}
html[data-competitor="pollo"] [data-production-chat] [data-production-message="assistant"] > b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fb7d37;
}
html[data-competitor="pollo"] [data-production-chat] [data-production-message-copy] { opacity: .55; }
html[data-competitor="pollo"] [data-production-chat] [data-production-message-copy]:hover { opacity: 1; }

/* Agent empty state: composer input placeholder, status line, disabled model chip */
html[data-competitor="pollo"] .p-composer [data-chat-input][contenteditable]:empty::before {
  content: attr(placeholder);
  color: #6f6f7a;
  pointer-events: none;
}
html[data-competitor="pollo"] .p-composer [data-chat-input][contenteditable] {
  min-height: 72px;
  outline: 0;
  caret-color: #fb7d37;
  overflow-wrap: anywhere;
}
html[data-competitor="pollo"] .p-composer [data-production-native-label] {
  margin: 0;
  font-size: 12px;
  color: #6f6f7a;
}
html[data-competitor="pollo"] .p-composer [data-production-native-read] {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6f7a;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
html[data-competitor="pollo"] .p-composer [data-production-native-read]:not(:disabled):hover { color: #fb7d37; }
html[data-competitor="pollo"] .p-composer [data-production-native-read]:disabled { cursor: default; text-decoration: none; }
html[data-competitor="pollo"] .p-composer [data-p-model]:disabled { opacity: .7; cursor: default; }

/* Agent result actions: generate-from-plan, task entry */
html[data-competitor="pollo"] [data-production-pollo-agent-media] { margin: 12px 0; }
html[data-competitor="pollo"] [data-production-pollo-agent-media-open],
html[data-competitor="pollo"] [data-production-media-task-open] {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7d37, #f0561f);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
html[data-competitor="pollo"] [data-production-pollo-agent-media-open]:hover,
html[data-competitor="pollo"] [data-production-media-task-open]:hover { filter: brightness(1.08); }
html[data-competitor="pollo"] [data-production-pollo-agent-media-open]:disabled,
html[data-competitor="pollo"] [data-production-media-task-open]:disabled { opacity: .5; cursor: not-allowed; filter: none; }
html[data-competitor="pollo"] [data-media-history-refresh] {
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
html[data-competitor="pollo"] [data-media-history-refresh]:hover { background: #ffffff0d; }

html[data-competitor="pollo"] [data-production-media-task-entry] [data-production-media-task-open] {
  background: linear-gradient(135deg, #fb7d37, #f0561f) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}
html[data-competitor="pollo"] .p-composer-bottom { flex-wrap: wrap; row-gap: 8px; }
html[data-competitor="pollo"] .p-composer-bottom [data-p-agent-controls] { min-width: 0; flex: 1 1 auto; }
html[data-competitor="pollo"] .p-composer-bottom [data-p-model] {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-competitor="pollo"] [data-production-media-result-open] {
  min-height: 38px !important;
  margin-left: 8px;
  padding: 0 18px !important;
  border: 1px solid #ffffff40 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
html[data-competitor="pollo"] [data-production-media-result-open]:hover { background: #ffffff0d !important; }
html[data-competitor="pollo"] [data-production-media-result-open]:focus-visible,
html[data-competitor="pollo"] [data-production-pollo-agent-media-open]:focus-visible { outline: 2px solid #fb7d37; outline-offset: 3px; }

/* Expired session banner */
html[data-competitor="pollo"] [data-production-session-banner] {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid #fb7d3766;
  border-radius: 12px;
  background: #1b1410;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 18px;
  box-shadow: 0 12px 40px #000a;
}
html[data-competitor="pollo"] [data-production-session-banner][hidden] { display: none; }
html[data-competitor="pollo"] [data-production-session-banner] button {
  flex: none;
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7d37, #f0561f);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

html[data-competitor="pollo"] label:has(> [data-p-control="Autopilot"]:disabled) { opacity: .5; cursor: not-allowed; }
