/* Pollo workspace dialogs (login, new project, new session). Scoped; only styles the existing markup. */
html[data-competitor="pollo"] dialog.production-workspace-dialog {
  --workspace-dialog-width: 400px;
  --workspace-dialog-radius: 20px;
  --workspace-dialog-padding: 32px 28px 24px;
  --workspace-dialog-gap: 18px;
  --workspace-input-radius: 12px;
  --workspace-backdrop: rgba(6, 6, 10, .74);
  /* The runtime writes background/color/font inline from the opener; these must win. */
  width: min(400px, calc(100vw - 32px)) !important;
  padding: 32px 28px 24px !important;
  border-radius: 20px !important;
  background-color: #15151b !important;
  color: #f5f5f5 !important;
  border: 1px solid #ffffff1a;
  box-shadow: 0 28px 90px #000b, inset 0 1px 0 #ffffff0d;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog::backdrop { backdrop-filter: blur(6px); }
html[data-competitor="pollo"] dialog.production-workspace-dialog form::before {
  content: "Pollo.ai";
  justify-self: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fb7d37;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -.01em;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog [data-workspace-rows] { gap: 14px; }
html[data-competitor="pollo"] dialog.production-workspace-dialog label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #a1a1ab;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog input {
  height: 46px;
  padding: 0 14px;
  color: #f5f5f5;
  background: #0e0e13;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog input:hover { border-color: #ffffff3d; }
html[data-competitor="pollo"] dialog.production-workspace-dialog input:focus-visible {
  outline: none;
  border-color: #fb7d37;
  box-shadow: 0 0 0 3px #fb7d3733;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog [data-workspace-error] {
  color: #ff7a7a;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog [data-workspace-error]:empty { display: none; }
html[data-competitor="pollo"] dialog.production-workspace-dialog footer {
  flex-direction: column-reverse;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog footer button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, color .15s ease;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog footer button[data-workspace-submit] {
  color: #1a0f08;
  border: 0;
  background: linear-gradient(180deg, #ff914f, #fb7d37);
  box-shadow: 0 8px 24px #fb7d3733;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog footer button[data-workspace-submit]:hover { filter: brightness(1.06); }
html[data-competitor="pollo"] dialog.production-workspace-dialog footer button:not([data-workspace-submit]) {
  color: #a1a1ab;
  background: transparent;
  border-color: transparent;
  font-weight: 500;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog footer button:not([data-workspace-submit]):hover { color: #f5f5f5; background: #ffffff0d; }
html[data-competitor="pollo"] dialog.production-workspace-dialog :is(button, input):focus-visible { outline: 2px solid #fb7d37; outline-offset: 2px; }
html[data-competitor="pollo"] dialog.production-workspace-dialog button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  html[data-competitor="pollo"] dialog.production-workspace-dialog { padding: 28px 20px 20px !important; }
}
/* Login <-> register switch rendered by the workspace dialog. */
html[data-competitor="pollo"] dialog.production-workspace-dialog [data-workspace-toggle] {
  justify-self: center;
  min-height: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #a1a1ab;
  font-size: 13px;
  cursor: pointer;
}
html[data-competitor="pollo"] dialog.production-workspace-dialog [data-workspace-toggle]:hover { color: #fb7d37; }

/* ---- Video creation dialog (data-production-media-dialog): same Pollo dialog language ---- */
html[data-competitor="pollo"] dialog[data-production-media-dialog] {
  --workspace-dialog-width: 440px;
  width: min(440px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 14px;
  align-content: start;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog][open] { display: grid; }
html[data-competitor="pollo"] dialog[data-production-media-dialog]::before {
  content: "Pollo.ai";
  justify-self: center;
  font-size: 15px;
  font-weight: 700;
  color: #fb7d37;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] h2 { margin: 0; text-align: center; font-size: 22px; line-height: 30px; font-weight: 600; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-close] {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff0f;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-close]::before { content: "\2715"; color: #c9c9d1; font-size: 13px; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-close]:hover { background: #ffffff1c; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-status] { margin: 0; text-align: center; font-size: 12.5px; line-height: 18px; color: #a1a1ab; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-body] { display: grid; gap: 14px; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-intents] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #0e0e13;
  font-size: 12.5px;
  color: #a1a1ab;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-intents] p { margin: 0; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-intents-refresh] {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: transparent;
  color: #e5e5ea;
  font-size: 12px;
  cursor: pointer;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] select,
html[data-competitor="pollo"] dialog[data-production-media-dialog] textarea {
  box-sizing: border-box;
  width: 100%;
  color: #f5f5f5;
  background-color: #0e0e13;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] select {
  height: 44px;
  padding: 0 38px 0 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a1a1ab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] textarea { min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 21px; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] :is(select, textarea):hover { border-color: #ffffff3d; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] :is(select, textarea):focus-visible { outline: none; border-color: #fb7d37; box-shadow: 0 0 0 3px #fb7d3733; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-price] {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #fb7d3740;
  border-radius: 12px;
  background: #fb7d370f;
  color: #ffb98f;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-create] {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff914f, #fb7d37);
  color: #1a0f08;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px #fb7d3733;
  cursor: pointer;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-create]:hover { filter: brightness(1.06); }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-create]:disabled { opacity: .5; cursor: not-allowed; }

/* Quote / approval / job-result steps of the video creation dialog. */
html[data-competitor="pollo"] dialog[data-production-media-dialog] button {
  box-sizing: border-box;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  background: #ffffff0a;
  color: #f5f5f5;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] button:hover { background: #ffffff14; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-approve] {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: linear-gradient(180deg, #ff914f, #fb7d37);
  color: #1a0f08;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px #fb7d3733;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-approve]:hover { background: linear-gradient(180deg, #ff914f, #fb7d37); filter: brightness(1.06); }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-edit] { width: 100%; background: transparent; color: #e5e5ea; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-independent] {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-intents-refresh],
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-close] { min-height: unset; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] [data-production-media-body] > p { margin: 0; font-size: 14px; line-height: 21px; color: #e5e5ea; overflow-wrap: anywhere; }
html[data-competitor="pollo"] dialog[data-production-media-dialog] button:disabled { opacity: .5; cursor: not-allowed; }
