/*
 * X18Reviews · /home3 · autopilot widget
 * Light-card illustration of a coming feature: a post X18 will be able to
 * draft (photo, caption, hashtags), ready for Google, Instagram and Facebook,
 * and an approval card: the owner approves each post. Nothing is shown as
 * posted: no results, no schedule.
 * Every selector is scoped under .h3-ap. Built by autopilot.js.
 * Palette: ink (#181f1f) on light grey (#eeefef / #f1f2f2, ring #e4e6e6);
 * green only for the platform rows' "Ready" checks (plus the confetti).
 */

.h3-ap {
  overflow: hidden;
}

.h3-ap .h3-ap-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-feature-settings: "cv11" 1;
  color: #181f1f;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  contain: layout paint;
}

.h3-ap .h3-ap-stage *,
.h3-ap .h3-ap-stage *::before,
.h3-ap .h3-ap-stage *::after {
  box-sizing: border-box;
}

.h3-ap .h3-ap-stage svg {
  display: block;
  overflow: visible;
}

.h3-ap .h3-ap-canvas {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.h3-ap .h3-ap-scene {
  position: absolute;
  inset: 0;
  transform-origin: 50% 45%;
}

/* ---------- cards ---------- */

.h3-ap .h3-ap-card {
  position: absolute;
  left: 0;
  top: 0;
  background: #fff;
  box-shadow: 0 0.6px 2px -0.75px rgba(0, 0, 0, 0.08), 0 2.3px 7.8px -1.5px rgba(0, 0, 0, 0.08),
    0 10px 34px -2.25px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.035);
}

.h3-ap .h3-ap-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.h3-ap .h3-ap-hd > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.h3-ap .h3-ap-hico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eeefef;
}

.h3-ap .h3-ap-hico svg {
  width: 62%;
  height: 62%;
}

/* ---------- status pill ---------- */

.h3-ap .h3-ap-pillrow {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
}

.h3-ap .h3-ap-ps {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.015em;
}

/* the pill's surface and its words fade separately (see buildPill) */
.h3-ap .h3-ap-psbg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 18px -4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.h3-ap .h3-ap-psc {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.h3-ap .h3-ap-psi {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eeefef;
  box-shadow: inset 0 0 0 1px #e4e6e6;
  color: #181f1f;
}

.h3-ap .h3-ap-psi > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 58%;
}

.h3-ap .h3-ap-psi svg {
  width: 100%;
  height: 100%;
}

.h3-ap .h3-ap-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 1px;
}

.h3-ap .h3-ap-dots > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #181f1f;
}

/* ---------- post card ---------- */

.h3-ap .h3-ap-post {
  overflow: hidden;
}

.h3-ap .h3-ap-ph {
  display: flex;
  align-items: center;
}

.h3-ap .h3-ap-av {
  position: relative;
  flex: none;
  border-radius: 50%;
  background: #eeefef;
  box-shadow: inset 0 0 0 1px #e4e6e6;
}

.h3-ap .h3-ap-av svg {
  position: absolute;
  inset: 16%;
  width: 68%;
  height: 68%;
}

.h3-ap .h3-ap-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.h3-ap .h3-ap-who b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h3-ap .h3-ap-who span {
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.h3-ap .h3-ap-photo {
  position: relative;
  overflow: hidden;
  background: #eef0f3;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.h3-ap .h3-ap-shim {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 90%);
}

.h3-ap .h3-ap-spark {
  position: absolute;
  left: 50%;
  top: 50%;
}

.h3-ap .h3-ap-spark svg {
  width: 100%;
  height: 100%;
}

.h3-ap .h3-ap-pic {
  position: absolute;
  inset: 0;
}

.h3-ap .h3-ap-pic > div {
  position: absolute;
  inset: 0;
}

/* illustrated fallback underneath; the photo covers it once ready */
.h3-ap .h3-ap-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 22% 8%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 58%),
    linear-gradient(150deg, #f6c891, #cf7f43);
}

.h3-ap .h3-ap-art > svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  max-width: 120px;
  max-height: 120px;
  transform: translate(-50%, -46%);
}

.h3-ap .has-photo > .h3-ap-art > svg {
  display: none;
}

.h3-ap .h3-ap-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%; /* per box, set by autopilot.js (keeps Milo in view) */
  max-width: none;
}

.h3-ap .h3-ap-sheen {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 85%);
}

.h3-ap .h3-ap-stk {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #181f1f;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform-origin: 100% 50%;
}

.h3-ap .h3-ap-stk > i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #181f1f;
  box-shadow: 0 0 0 2.5px rgba(24, 31, 31, 0.12);
}

/* caption: every character is in place from the start (so the card never
   changes size); one white cover per line steps off them as they are typed */
.h3-ap .h3-ap-cap {
  position: relative;
  color: #181f1f;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.h3-ap .h3-ap-covers > i {
  position: absolute;
  left: 0;
  background: #fff;
}

/* an emoji's advance carries side bearings that make the following space
   look doubled; colour-emoji fonts draw the glyph smaller on hi-dpi screens,
   so the pull-in is larger there */
.h3-ap .h3-ap-emo {
  margin-right: -0.06em;
}

@media (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5) {
  .h3-ap .h3-ap-emo {
    margin-right: -0.17em;
  }
}

.h3-ap .h3-ap-cap b {
  font-weight: 600;
}

.h3-ap .h3-ap-w {
  display: inline-block;
  white-space: nowrap;
}

.h3-ap .h3-ap-w > span {
  display: inline-block;
  white-space: pre;
}

.h3-ap .h3-ap-skel {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
}

.h3-ap .h3-ap-skel > i {
  position: absolute;
  left: 0;
  border-radius: 99px;
  background: #eceef1;
}

.h3-ap .h3-ap-caret {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  border-radius: 2px;
  background: #181f1f;
}

.h3-ap .h3-ap-tags {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
}

.h3-ap .h3-ap-tsk {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: #eceef1;
}

.h3-ap .h3-ap-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f2f2;
  color: #181f1f;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transform-origin: 50% 60%;
}

/* ---------- rolling digit (the platforms card's "n/3" ready count) ---------- */

.h3-ap .h3-ap-odo {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.h3-ap .h3-ap-odo > span {
  display: block;
}

.h3-ap .h3-ap-odo > span > span {
  display: block;
  text-align: center;
}

/* ---------- platforms card ---------- */

.h3-ap .h3-ap-cnt {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f2f2;
  color: #181f1f;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.h3-ap .h3-ap-row {
  position: relative;
  display: flex;
  align-items: center;
}

.h3-ap .h3-ap-rtint {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.5px;
  bottom: 1.5px;
  background: #f1f2f2;
}

.h3-ap .h3-ap-pico {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h3-ap .h3-ap-pico svg {
  width: 62%;
  height: 62%;
}

.h3-ap .h3-ap-pico.is-google {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.h3-ap .h3-ap-pico.is-google svg {
  width: 58%;
  height: 58%;
}

.h3-ap .h3-ap-pico.is-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.h3-ap .h3-ap-pico.is-facebook {
  background: #1877f2;
}

.h3-ap .h3-ap-pico.is-facebook svg {
  width: 70%;
  height: 70%;
}

.h3-ap .h3-ap-rtx {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.h3-ap .h3-ap-rtx > b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h3-ap .h3-ap-st {
  position: relative;
  display: block;
  white-space: nowrap;
  font-weight: 500;
}

.h3-ap .h3-ap-st > span {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.h3-ap .h3-ap-st > .is-wait {
  color: #878e97;
}

.h3-ap .h3-ap-st > .is-done {
  color: #4b5563;
  font-weight: 600;
}

.h3-ap .h3-ap-chk {
  position: relative;
  flex: none;
}

.h3-ap .h3-ap-chk > i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.h3-ap .h3-ap-chk > .is-ring {
  border: 1.5px dashed #d1d5db;
}

.h3-ap .h3-ap-chk > .is-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #34d399 0%, #16a34a 100%);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.35);
}

.h3-ap .h3-ap-chk > .is-fill svg {
  width: 62%;
  height: 62%;
}

.h3-ap .h3-ap-chk > .is-burst {
  box-shadow: 0 0 0 1.5px rgba(34, 197, 94, 0.75);
}

/* ---------- approval card ---------- */

.h3-ap .h3-ap-bskel {
  position: absolute;
  left: 0;
  border-radius: 8px;
  background: #eceef1;
}

.h3-ap .h3-ap-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(24, 31, 31, 0.04), 0 14px 34px -8px rgba(24, 31, 31, 0.2);
}

/* ---------- flying copies, connectors, confetti ---------- */

.h3-ap .h3-ap-fly {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.h3-ap .h3-ap-wire {
  position: absolute;
  left: 0;
  top: 0;
}

.h3-ap .h3-ap-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #181f1f;
  box-shadow: 0 0 0 3px rgba(24, 31, 31, 0.1);
}

.h3-ap .h3-ap-fx {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}

.h3-ap .h3-ap-cf {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 1.5px;
}

.h3-ap .h3-ap-cf.is-dot {
  border-radius: 50%;
}

/* ---------- compliance caption ---------- */

.h3-ap .h3-ap-note {
  position: absolute;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(24, 31, 31, 0.32);
  white-space: nowrap;
}
