/* THE SALES CHAT'S OWN PAGE.
 *
 * ⚑ HIS DECISION, 17 Sep 2026, AFTER USING THE BUBBLE: "I was envisioning
 * something similar in nature to the tech support chatbot, which lives on a
 * separate, its own page." It reverses advice he was given an hour earlier -
 * keep it in the bubble - which was given before either of us had seen the
 * panel. He was right: a cramped floating panel is not where a farmer
 * configures a camera system.
 *
 * ⛔ THE LOOK IS COPIED FROM SOMETHING PROVEN, NOT REBUILT FROM A PHOTOGRAPH.
 * The colours, the radii, the button weights and the type scale are the support
 * page's, which has been live since 15 Sep and has been read by real customers
 * on a phone in a barn.
 *
 * ⛔⛔ AND NOT ONE CLASS NAME IS SHARED. Every selector here is cg-sales-.
 * Support and Sales share the equipment knowledge and NOTHING else - separate
 * brains, separate records, separate storage, separate permissions. A
 * stylesheet in common is a file that gets edited for one product and shipped
 * to both.
 *
 * ⚠ THE AUDIENCE DECIDES THE SIZES (CLAUDE.md): farmers, many 60 to 70, often
 * on a phone. Large targets, plain words, readable at arm's length, and the
 * whole first pane visible without scrolling - which is the defect he found in
 * the bubble, where "Send me a code" sat half below the fold.
 */

.cg-sales-page {
  --cg-blue: #0786c8;
  --cg-blue-dark: #075f94;
  --cg-ink: #173247;
  --cg-soft: #eef8fd;
  --cg-border: #d8eaf4;
  font-family: inherit;
  color: var(--cg-ink);
  max-width: 1080px;
  width: 100%;
  margin: 24px auto;
}
.cg-sales-page * { box-sizing: border-box; }

/* ---- the frame ------------------------------------------------------- */

.cg-sales-page__frame {
  background: #fff;
  border: 2px solid #cde5f1;
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(18, 60, 86, .14);
  overflow: hidden;
}

.cg-sales-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 30px);
  background: linear-gradient(135deg, #0b78b4, #075f94);
  color: #fff;
}
.cg-sales-page__identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.cg-sales-page__avatar {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 18px; background: #fff; color: #075f94;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
/* ⚑ "AI SALES REP", NOT "AI TECHNICAL SUPPORT". HIS INSTRUCTION, 17 Sep 2026:
   "anything you see there that's like support should be changed to a more sales
   lingo." The word is in the copy, the labels and the aria-labels as well as
   here - grep the file, do not fix one of them (CLAUDE.md rule 11). */
.cg-sales-page__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85;
}
.cg-sales-page__header h2 {
  margin: 2px 0 4px; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.15; color: #fff;
}
.cg-sales-page__status { font-size: 14px; opacity: .92; display: flex; align-items: center; gap: 7px; }
.cg-sales-page__status span {
  width: 9px; height: 9px; border-radius: 50%; background: #8ee49a;
  box-shadow: 0 0 0 4px rgba(142, 228, 154, .18);
}
.cg-sales-page__close {
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: 999px;
  padding: 11px 18px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.cg-sales-page__close:hover, .cg-sales-page__close:focus { background: rgba(255, 255, 255, .2); }

.cg-sales-page__body { padding: clamp(20px, 4vw, 34px); }
.cg-sales-page__footer {
  padding: 15px 24px; border-top: 1px solid #e5eef3; background: #f8fbfd;
  color: #647b8a; font-size: 13px; text-align: center;
}

/* ---- the three panes -------------------------------------------------- */

.cg-sales-pane[hidden] { display: none !important; }
.cg-sales-pane { font-size: 18px; }
.cg-sales-pane h3 {
  margin: 0 0 8px; font-size: clamp(24px, 3vw, 31px); line-height: 1.15; color: #153b54;
}

/* ⚑ B46. HIS ASK, 17 Sep 2026, near enough to build from: "this will help us
   communicate better with you and also confirm that you are a real human."
   ⚠ AND HIS REASONING IS THE INTERESTING PART: "I think that makes it more
   legitimate to provide." A form that asks for a phone number with no reason
   given reads as harvesting; the same form with one sentence of reason reads as
   a business.
   ⛔ AND IT MUST STAY TRUE: the phone number IS used - he calls leads and the
   alert emails carry it - and the email IS verified. Both halves are facts. */
.cg-sales-pane__why {
  margin: 0 0 22px; padding: 16px 18px;
  border: 2px solid var(--cg-blue); border-left-width: 8px; border-radius: 12px;
  background: var(--cg-soft); color: #0a3f5e;
  font-size: 17px; line-height: 1.5;
}
.cg-sales-pane__why strong { display: block; font-size: 18px; font-weight: 900; }

.cg-sales-form { max-width: 720px; }
.cg-sales-form label {
  display: block; font-size: 17px; font-weight: 800; color: #294d65; margin: 16px 0 7px;
}
.cg-sales-form label:first-of-type { margin-top: 0; }
.cg-sales-form input, .cg-sales-form textarea {
  width: 100%; border: 2px solid #bcd8e7; border-radius: 12px;
  padding: 14px 15px; font: inherit; font-size: 18px; line-height: 1.35;
  background: #fff; min-height: 54px;
}
.cg-sales-form input:focus, .cg-sales-form textarea:focus {
  outline: 3px solid rgba(7, 134, 200, .14); border-color: var(--cg-blue);
}
/* ⛔ TWO ACROSS ON A LAPTOP so the whole pane fits without scrolling - the
   defect he found in the bubble. One per row under 700px. */
.cg-sales-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cg-sales-form__row label { margin-top: 0; }

.cg-sales-button {
  appearance: none; border: 0; border-radius: 999px;
  padding: 15px 30px; min-height: 56px;
  background: var(--cg-blue); color: #fff;
  font: inherit; font-size: 19px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 134, 200, .20);
  transition: transform .15s ease, background .15s ease;
}
.cg-sales-button:hover, .cg-sales-button:focus {
  transform: translateY(-1px); background: var(--cg-blue-dark); color: #fff;
}
.cg-sales-button:disabled { opacity: .6; cursor: wait; transform: none; }
.cg-sales-button--block { display: block; width: 100%; margin-top: 22px; }

.cg-sales-status { font-size: 16px; line-height: 1.5; color: #4b687a; margin: 14px 0 0; min-height: 1.5em; }
.cg-sales-status--error { color: #8a2b2b; font-weight: 700; }

.cg-sales-code-input {
  max-width: 260px; font-size: 28px !important; letter-spacing: .15em;
  text-align: center; font-weight: 800;
}

.cg-sales-turnstile { margin-top: 18px; }
.cg-sales-turnstile:empty { margin-top: 0; }

/* ---- the conversation ------------------------------------------------- */

.cg-sales-chatbox { border: 1px solid #d5e7f0; border-radius: 18px; background: #f8fcfe; overflow: hidden; }
.cg-sales-log {
  min-height: 300px; max-height: 52vh; overflow-y: auto;
  padding: 22px; display: flex; flex-direction: column; gap: 18px; background: #fff;
}
.cg-sales-msg { max-width: 84%; display: flex; flex-direction: column; gap: 6px; }
.cg-sales-msg--them { align-self: flex-start; }
.cg-sales-msg--you { align-self: flex-end; align-items: flex-end; }
.cg-sales-msg__who { font-size: 13px; font-weight: 800; color: #658091; }
.cg-sales-msg__bubble {
  white-space: pre-wrap; font-size: 18px; line-height: 1.55;
  padding: 15px 17px; border-radius: 16px;
  background: var(--cg-soft); color: #244a61; border: 1px solid #cfe6f2;
}
.cg-sales-msg--you .cg-sales-msg__bubble { background: #087fbd; color: #fff; border-color: #087fbd; }

/* ⚑ B48. A picture in the transcript, either direction. */
.cg-sales-msg__pictures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 260px));
  gap: 8px; max-width: 540px;
}
.cg-sales-msg--you .cg-sales-msg__pictures { justify-content: end; }
.cg-sales-msg__picture {
  border-radius: 12px; overflow: hidden; border: 1px solid #cfe2eb; background: #fff;
}
.cg-sales-msg__picture img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
/* ⛔ THE CAPTION IS PART OF THE FILE AND IS NOT OPTIONAL. His instruction,
   15 Sep 2026: the wireless diagram labels a location "INSIDE BARN" and the
   Brain must never assume there is a barn. A picture and its correction must
   not be able to come apart. */
.cg-sales-msg__caption {
  font-size: 14px; line-height: 1.45; color: #5b4412;
  background: #fffaf0; border-top: 1px solid #ecd9ae; padding: 9px 11px;
}

.cg-sales-composer { padding: 20px; background: #f4f9fc; border-top: 1px solid #d5e7f0; }

/* ⚑ B49. "Prefer talking instead of typing?" - his words, kept verbatim. */
.cg-sales-voice-notice {
  margin: 0 0 12px; padding: 13px 15px;
  border: 2px solid var(--cg-blue); border-left-width: 8px; border-radius: 12px;
  background: #eaf6fd; color: #0a3f5e;
}
.cg-sales-voice-notice[hidden] { display: none !important; }
.cg-sales-voice-notice strong { display: block; font-size: 17px; font-weight: 900; line-height: 1.4; }

.cg-sales-composer > label {
  display: block; font-size: 17px; font-weight: 800; color: #294d65; margin: 0 0 9px;
}
.cg-sales-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: stretch; }
.cg-sales-entry__box {
  position: relative; border: 2px solid #bcd8e7; border-radius: 12px; background: #fff; overflow: hidden;
}
.cg-sales-entry__box:focus-within { border-color: var(--cg-blue); box-shadow: 0 0 0 3px rgba(7, 134, 200, .14); }
.cg-sales-entry__box textarea {
  display: block; width: 100%; min-height: 96px; max-height: 220px;
  border: 0; background: transparent; padding: 14px 15px;
  font: inherit; font-size: 18px; line-height: 1.45; resize: vertical;
}
.cg-sales-entry__box textarea:focus { outline: none; }

/* The staged pictures sit INSIDE the box, above what is being typed - so it is
   obvious they will go with this message and not on their own. */
.cg-sales-staged { display: flex; flex-wrap: wrap; gap: 14px; padding: 13px 13px 2px; }
.cg-sales-staged[hidden] { display: none !important; }
.cg-sales-staged__item { position: relative; border: 1px solid #cfe2ec; border-radius: 10px; background: #fff; }
.cg-sales-staged__item img { display: block; width: 76px; height: 76px; object-fit: cover; border-radius: 9px; background: #f4f7f9; }
.cg-sales-staged__remove {
  position: absolute; top: -9px; right: -9px; width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid #fff; background: #33586e; color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.cg-sales-staged__remove:hover, .cg-sales-staged__remove:focus { background: #a3271f; }

.cg-sales-mic {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px solid var(--cg-blue); border-radius: 14px; background: #fff; color: var(--cg-blue-dark);
  font: inherit; font-weight: 900; cursor: pointer; padding: 0 12px; min-width: 76px;
}
.cg-sales-mic[hidden] { display: none !important; }
.cg-sales-mic svg { width: 32px; height: 32px; display: block; }
.cg-sales-mic span { font-size: 17px; line-height: 1; }
.cg-sales-mic:hover, .cg-sales-mic:focus { background: #eaf6fd; outline: 3px solid rgba(7, 134, 200, .22); }
.cg-sales-mic.is-listening { background: #b3261e; border-color: #b3261e; color: #fff; animation: cgSalesMic 1.4s ease-in-out infinite; }
@keyframes cgSalesMic { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .45); } 50% { box-shadow: 0 0 0 9px rgba(179, 38, 30, 0); } }
@media (prefers-reduced-motion: reduce) { .cg-sales-mic.is-listening { animation: none; } }

/* ⛔ B81, HIS INSTRUCTION 18 Sep 2026, LOOKING AT THE CHAT ON HIS PHONE:
   "making the send button bigger, like wider, um, by double, like it needs to be
   double the size going down." He said "wider" and corrected himself mid-sentence
   - it is the HEIGHT, and on a phone the button is already full width.
   ⚠ MEASURED FIRST, IN A REAL BROWSER: it was 21px tall at phone width. Nothing
   in this file ever set its height, so it was simply one line of 18px text with
   zero vertical padding - an accident, not a decision.
   ⇒ 56px. His "double" of 21px is 42px, which is still under a comfortable
   thumb target; 56px is the size this project already treats as the minimum
   (B57's bubble target) and the reason is the first principle of the whole
   product: farmers aged 60 to 70, on a phone, often in a barn.
   ⚠ HE WAS TOLD THIS IN THE SAME BREATH AS THE BUILD (rule 20). If he wants
   exactly double, this one number is the only thing to change. */
.cg-sales-send {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; min-height: 56px; border: 0; border-radius: 14px; padding: 0 20px;
  background: var(--cg-blue); color: #fff; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer;
  box-shadow: 0 5px 14px rgba(7, 134, 200, .16);
}
.cg-sales-send:hover, .cg-sales-send:focus { background: var(--cg-blue-dark); }
.cg-sales-send:disabled { opacity: .58; cursor: not-allowed; }

.cg-sales-mic-status { margin-top: 9px; font-size: 15px; font-weight: 700; color: #285f3b; }
.cg-sales-mic-status[hidden] { display: none !important; }
.cg-sales-keys { margin-top: 10px; font-size: 13px; color: #6f8491; }

/* ---- B49: the two tiles ----------------------------------------------- */
/*
 * ⛔⛔ TWO TILES, HALF THE ROW EACH, FILLING THE WIDTH. HIS POINT, 17 Sep 2026:
 * "if you keep it the exact same layout and just remove the other two buttons,
 * it's gonna look weird... you need to make them fit side by side so that they
 * don't look awkward, like kinda stretch them so that they're wider."
 *
 * ⚠ HE IS DESCRIBING A REAL FAILURE MODE OF DELETION, NOT A PREFERENCE. A
 * four-across grid with two removed leaves two narrow tiles and a hole where
 * the others were, and a hole reads as something broken rather than something
 * chosen. Removing a feature is a layout change, not an absence.
 *
 * ⛔ THE SUPPORT PAGE'S GRID IS repeat(4, ...) AND THIS ONE IS repeat(2, ...).
 * That is the whole of the change and it is deliberate - do not "restore" the
 * four-column rule when copying a later support fix across.
 */
.cg-sales-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cg-sales-tools[hidden] { display: none !important; }
.cg-sales-tool {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 14px; border: 2px solid #a9d8ec; border-radius: 16px;
  background: #f7fcfe; text-align: center; min-width: 0;
}
.cg-sales-tool__button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 104px; padding: 14px 12px;
  border: 0; border-radius: 13px; background: #087fbd; color: #fff;
  font: inherit; cursor: pointer; box-shadow: 0 6px 15px rgba(7, 134, 200, .18);
}
.cg-sales-tool__button:hover, .cg-sales-tool__button:focus { background: var(--cg-blue-dark); outline: 3px solid rgba(7, 134, 200, .2); }
.cg-sales-tool__button:disabled { opacity: .6; cursor: wait; }
.cg-sales-tool__button strong { display: block; font-size: 17px; line-height: 1.25; }
.cg-sales-tool__icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: #fff; color: var(--cg-blue-dark); font-size: 22px; font-weight: 900;
}
.cg-sales-tool__help { margin: 0; font-size: 14px; line-height: 1.45; color: #4a6a7d; }

/* ⛔ THE QR IS PART OF ITS CARD, NOT A SEPARATE SQUARE UNDER IT - his design
   note on the support page, 15 Sep 2026, and it applies here unchanged: "it
   should expand the square itself with the bluish background." The panel has no
   background, border or corners of its own; it is pulled to the card's edges so
   the card's own colour carries it. */
.cg-sales-qr {
  flex: 1 1 100%; width: calc(100% + 28px); margin: 4px -14px -16px;
  padding: 16px 14px; display: grid; justify-items: center; gap: 11px; text-align: center;
  border-top: 1px dashed #a9d8ec;
}
.cg-sales-qr[hidden] { display: none !important; }
.cg-sales-qr__code {
  width: 214px; height: 214px; padding: 10px; background: #fff;
  border: 1px solid #cfe2eb; border-radius: 12px; display: grid; place-items: center;
}
.cg-sales-qr__code svg { width: 100%; height: 100%; display: block; }
.cg-sales-qr__status { font-size: 15px; font-weight: 800; color: #285f3b; }
.cg-sales-qr__cancel {
  appearance: none; background: none; border: 2px solid #d9b4b0; border-radius: 10px;
  padding: 10px 18px; font: inherit; font-size: 16px; font-weight: 800; color: #a3271f;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cg-sales-qr__cancel:hover, .cg-sales-qr__cancel:focus { background: #fdf2f1; border-color: #a3271f; }

.cg-sales-file-input {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ⚑ B49. "it shouldn't say end support session, it should just say end
   session." - his words, 17 Sep 2026. */
.cg-sales-end {
  appearance: none; background: none; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #d9b4b0; border-radius: 12px; padding: 14px 26px; margin-top: 18px;
  font: inherit; font-size: 19px; font-weight: 800; color: #a3271f;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cg-sales-end:hover, .cg-sales-end:focus { background: #fdf2f1; border-color: #a3271f; }
.cg-sales-end[hidden] { display: none !important; }

/* ---- the phone, which is where most of them are ----------------------- */

@media (max-width: 760px) {
  .cg-sales-page { margin: 12px auto; }
  .cg-sales-page__frame { border-radius: 18px; }
  .cg-sales-page__header { padding: 16px; gap: 12px; }
  .cg-sales-page__avatar { width: 46px; height: 46px; flex-basis: 46px; font-size: 16px; }
  .cg-sales-page__body { padding: 16px; }
  .cg-sales-form__row { grid-template-columns: 1fr; gap: 0; }
  .cg-sales-button--block { margin-top: 18px; }
  .cg-sales-log { padding: 15px; max-height: 46vh; }
  .cg-sales-msg { max-width: 94%; }
  .cg-sales-composer { padding: 15px; }
  /* ⛔ THE SEND BUTTON GOES UNDER THE BOX, NOT BESIDE IT. Three columns on a
     phone leaves a text box two words wide. */
  .cg-sales-entry { grid-template-columns: minmax(0, 1fr) auto; }
  .cg-sales-entry__box { grid-column: 1 / -1; }
  .cg-sales-entry__box textarea { min-height: 72px; }
  /* ⚠ AND THE TILES STAY TWO ACROSS. He asked for them side by side; stacking
     them on a phone would put the picture buttons a scroll away from the box
     they belong to. They are square-ish and finger-sized instead. */
  .cg-sales-tool { padding: 12px 10px; }
  .cg-sales-tool__button { min-height: 116px; padding: 12px 8px; }
  .cg-sales-tool__button strong { font-size: 15px; }
  .cg-sales-tool__help { font-size: 13px; }
  .cg-sales-qr { width: calc(100% + 20px); margin: 4px -10px -12px; }
  .cg-sales-qr__code { width: min(214px, 62vw); height: min(214px, 62vw); }
  .cg-sales-end { width: 100%; }
}

/* ⛔⛔ B74: THE "THINKING" INDICATOR. HIS ASK, 18 Sep 2026, AFTER SHOWING IT TO
 * ME ON THE TECH SUPPORT CHAT: "the three dots are moving and then... there are
 * like beams kind of around the sales rep picture that are also moving, and
 * these are to give it an effect showing that it's working."
 *
 * ⛔ THE SALES CHAT HAD NOTHING HERE AT ALL - checked, not assumed. A farmer
 * pressed Send and the screen did nothing until the reply landed, which on farm
 * signal is exactly when somebody presses Send again.
 *
 * ⛔ THE RULES ARE COPIED FROM country-guard-support's v0.15.3.8 block, NOT
 * LINKED TO IT, and the class names come across into this plugin's own
 * namespace. B55's rule and the same trap: a sales page reaching into the
 * support plugin's assets breaks site-wide the day Support is deactivated, and
 * two products sharing a class name are one stylesheet edit apart.
 *
 * ⚡ "THE BEAMS" IS THE HALO: a ring just outside the photo that grows from
 * .86 to 1.22 while fading to nothing, every 1.8s. A ripple coming off his face,
 * not a spinner.
 *
 * ⚠ AND IT MATTERS MORE THAN IT LOOKS: B77 means a photo sent from a phone is
 * deliberately held for 10 seconds before the AI is allowed to see it. This is
 * what stops those 10 seconds reading as a broken page. */
.cg-sales-thinking { display: flex; animation: cgSalesThinkingIn .2s ease-out; }
.cg-sales-thinking[hidden] { display: none !important; }
.cg-sales-thinking__bubble {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #eef9ff, #e5f5fd);
  border: 1px solid #c9e5f3; color: #24536e;
  box-shadow: 0 5px 16px rgba(7, 95, 148, .08);
}
.cg-sales-thinking__avatar {
  position: relative; flex: 0 0 54px; width: 54px; height: 54px;
  border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid #cfe6f2; overflow: visible;
  box-shadow: 0 4px 12px rgba(7, 95, 148, .14);
}
.cg-sales-thinking__avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
/* THE BEAMS. */
.cg-sales-thinking__halo {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 3px solid rgba(7, 134, 200, .55);
  animation: cgSalesThinkingHalo 1.8s ease-out infinite;
  pointer-events: none;
}
.cg-sales-thinking__copy { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cg-sales-thinking__text { font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: .01em; }
.cg-sales-thinking__dots { display: inline-flex; align-items: center; gap: 4px; }
.cg-sales-thinking__dots i {
  display: block; width: 7px; height: 7px; border-radius: 50%; background: #0786c8;
  animation: cgSalesThinkingDot 1.15s ease-in-out infinite;
}
.cg-sales-thinking__dots i:nth-child(2) { animation-delay: .16s; }
.cg-sales-thinking__dots i:nth-child(3) { animation-delay: .32s; }

@keyframes cgSalesThinkingHalo {
  0%   { transform: scale(.86); opacity: .75; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
@keyframes cgSalesThinkingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30%           { transform: translateY(-4px); opacity: 1; }
}
@keyframes cgSalesThinkingIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .cg-sales-thinking__bubble { width: 100%; padding: 13px 15px 13px 13px; gap: 12px; }
  .cg-sales-thinking__avatar { flex: 0 0 48px; width: 48px; height: 48px; }
  .cg-sales-thinking__text { font-size: 17px; }
}

/* ⛔ IT COMES WITH THE REDUCED-MOTION GUARD OR IT IS NOT THE SAME FEATURE. The
   bubble's own flashing dot already honours this setting, so leaving it off here
   would make one plugin disagree with itself. */
@media (prefers-reduced-motion: reduce) {
  .cg-sales-thinking,
  .cg-sales-thinking__halo,
  .cg-sales-thinking__dots i { animation: none !important; }
  .cg-sales-thinking__halo { opacity: .4; }
}

/* ⛔⛔ B75 + B77: THE RED × ON A PICTURE THAT HAS JUST POSTED ITSELF.
 *
 * ⚡ HIS DESIGN, 18 Sep 2026: "there's going to be a red X above it for like 10
 * seconds to allow a person to delete it while it's already inside the chat."
 *
 * ⛔ IT IS RED AND IT SAYS WHAT IT DOES. A bare × on a farm phone, in a hurry,
 * is a guess; "× Remove" is not. And it is a real button, so it is reachable by
 * keyboard and announced by a screen reader - the picture it undoes has already
 * been announced as sent.
 *
 * ⚠ IT DISAPPEARS AFTER 10 SECONDS, which is the moment the message actually
 * goes to the AI. A control that lingers after it has stopped working is worse
 * than no control - see the QR code, which is put away for the same reason. */
.cg-sales-msg__undo {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-end;
  margin: 0 0 8px; padding: 10px 16px; min-height: 44px;
  border: 2px solid #b3261e; border-radius: 999px;
  background: #fff; color: #b3261e;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.cg-sales-msg__undo:hover, .cg-sales-msg__undo:focus-visible { background: #fdeceb; }
.cg-sales-msg__undo:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }

/* Farm presentation refresh. Scoped to the Sales page; no behavior hooks. */
.cg-sales-page { --cg-blue:#0879b4; --cg-blue-dark:#065a88; --cg-soft:#edf5f8; --cg-border:#d4e0e3; }
.cg-sales-page__frame { border:1px solid #d5ddd8; border-radius:22px; box-shadow:0 16px 42px rgba(30,56,51,.12); }
.cg-sales-page__header { min-height:164px; background:linear-gradient(90deg,rgba(13,43,54,.97) 0%,rgba(13,43,54,.93) 42%,rgba(13,43,54,.22) 100%),url('cg-sales-farm.jpg') center 55% / cover; border-bottom:4px solid #b9a579; }
.cg-sales-page__avatar { border-radius:50%; border:3px solid rgba(255,255,255,.85); overflow:hidden; }
.cg-sales-page__avatar img { width:100%; height:100%; object-fit:cover; }
.cg-sales-page__eyebrow { opacity:1; letter-spacing:.13em; font-size:13px; color:#e4e5d6; }
.cg-sales-page__header h2 { font-size:clamp(24px,3.2vw,32px); }
.cg-sales-page__close { background:#163c4c; min-height:44px; }
.cg-sales-page__body { background:#faf9f4; }
.cg-sales-page__footer { background:#f1f2eb; border-color:#dce0d6; color:#50616b; font-size:14px; }
.cg-sales-page .cg-sales-pane__why { background:#eef4f4; border:1px solid #cfdddb; border-left:4px solid #0879b4; }
.cg-sales-page .cg-sales-form { max-width:none; }
.cg-sales-page .cg-sales-form input { border-color:#bccdd1; }
.cg-sales-page .cg-sales-button { border-radius:12px; box-shadow:0 4px 12px rgba(7,95,148,.13); }
.cg-sales-page .cg-sales-chatbox { border-color:#d2dcd8; box-shadow:0 3px 14px rgba(30,56,51,.04); }
.cg-sales-page .cg-sales-msg__bubble { background:#f0f4ed; border-color:#d9e1d3; color:#253d3b; }
.cg-sales-page .cg-sales-msg--you .cg-sales-msg__bubble { background:#0879b4; border-color:#0879b4; color:#fff; }
.cg-sales-page .cg-sales-composer { background:#f4f5ef; border-color:#d9dfd5; }
.cg-sales-page .cg-sales-tool { border:1px solid #cbd8d5; background:#fff; box-shadow:0 3px 8px rgba(30,56,51,.04); }
.cg-sales-page .cg-sales-tool__button { background:#edf5f8; color:#07547e; box-shadow:none; border:1px solid #c5dce6; }
.cg-sales-page .cg-sales-tool__button:hover { background:#dceef5; }
.cg-sales-page .cg-sales-keys,.cg-sales-page .cg-sales-msg__who { color:#526b76; }
.cg-sales-page :is(button,a,input,textarea):focus-visible { outline:3px solid #956715; outline-offset:3px; }
@media(max-width:760px) {
 .cg-sales-page__header { min-height:112px; padding:16px 14px; background-position:center 60%; }
 .cg-sales-page__identity { gap:10px; }
 .cg-sales-page__header h2 { font-size:23px; }
 .cg-sales-page__eyebrow { font-size:11px; }
 .cg-sales-page__close { padding:9px 12px; }
 .cg-sales-page__body { padding:14px; }
 .cg-sales-page__footer { padding:14px; line-height:1.5; }
 .cg-sales-page .cg-sales-tools { gap:10px; }
 .cg-sales-page .cg-sales-tool { padding:10px 7px; }
}
@media(prefers-reduced-motion:reduce) { .cg-sales-page .cg-sales-button { transition:none; } }

/* Approved owner panorama: header presentation only, local preview pending approval. */
.cg-sales-page__header {
  aspect-ratio: 3 / 1;
  min-height: 260px;
  align-items: flex-start;
  background-image: linear-gradient(180deg, rgba(8,27,36,.64) 0%, rgba(8,27,36,.26) 29%, rgba(8,27,36,0) 55%), url('cg-sales-farm-panorama.png');
  background-size: cover;
  background-position: center center;
}
@media (max-width:760px) {
  .cg-sales-page__header {
    aspect-ratio: auto;
    min-height: 240px;
    background-position: 48% center;
  }
}

/* Desktop-only identity placement and 40% scale; phone rules unchanged. */
@media (min-width:761px) {
  .cg-sales-page__header { position:relative; }
  .cg-sales-page__identity {
    position:absolute;
    top:22px;
    left:50%;
    transform:translateX(-50%) scale(1.4);
    transform-origin:top center;
  }
  .cg-sales-page__header > .cg-sales-page__close { margin-left:auto; }
}

/* Picture-tool artwork only. Button hooks, copy, layout and behavior retained. */
.cg-sales-page .cg-sales-tool__icon {
  width:72px; height:72px; background:transparent; border-radius:0;
}
.cg-sales-page .cg-sales-tool__icon svg { display:block; width:72px; height:72px; }
@media(max-width:760px) {
  .cg-sales-page .cg-sales-tool__icon,
  .cg-sales-page .cg-sales-tool__icon svg { width:64px; height:64px; }
}
