/* Zondo's warm outer frame, with a familiar Messages conversation inside. */
.iv-conversation .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.quiz-shell.visual-story .iv-conversation h1 { font-size:43px; }
/* Keep only the pill floating. The footer stays in flow so the last message
   can scroll fully above it, and its transparent space never blocks the thread. */
.quiz-shell.visual-story:has(.iv-conversation) .story-footer { position:sticky; bottom:max(12px,env(safe-area-inset-bottom)); background:transparent; z-index:3; border:0; box-shadow:none; padding:0; margin-top:24px; pointer-events:none; }
.quiz-shell.visual-story:has(.iv-conversation) .story-footer .primary { pointer-events:auto; box-shadow:0 4px 16px #3033211a; }
.preview-frame .quiz-shell.visual-story:has(.iv-conversation) .story-footer { position:relative; bottom:auto; background:transparent; }
.iv-conversation .iv-description { font-size:12px; line-height:1.6; margin-top:12px; }
.message-figure { margin:22px 0 0; color:#1d1d1f; }
.message-conversation { background:#fff; border:1px solid #dfdfd9; border-radius:20px; padding:12px 12px 14px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.message-contact { display:flex; flex-direction:column; align-items:center; gap:4px; padding:0 0 9px; border-bottom:1px solid #ededee; }
.message-avatar { display:grid; place-items:center; width:33px; height:33px; border-radius:50%; background:#e9e9e3; color:#3b4230; }
.message-avatar .design-mark { width:20px; height:21px; }
.message-contact strong { font-size:11px; line-height:1.2; font-weight:500; }
.message-contact strong > span { color:#8e8e93; padding-left:2px; }
.message-channel { text-align:center; font-size:10px; font-weight:500; color:#77777e; margin-top:10px; }
.message-thread { display:flex; flex-direction:column; gap:9px; padding-top:11px; }
.message-bubble { position:relative; max-width:89%; padding:10px 13px; font-size:14px; line-height:1.35; border-radius:18px; }
.message-owner { align-self:flex-end; background:#0071e3; color:#fff; border-bottom-right-radius:5px; }
.message-zondo { align-self:flex-start; background:#e9e9eb; color:#1d1d1f; border-bottom-left-radius:5px; }
.message-time { text-align:center; font-size:10px; line-height:1.4; color:#77777e; margin:1px 0; }
.message-receipt { width:95%; align-self:flex-start; }
.message-attachment { border:1px solid #dcdce0; border-radius:14px; background:#fff; overflow:hidden; font-size:11px; line-height:1.4; }
.message-attachment h2 { font:600 15px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; letter-spacing:-.2px; color:#202125; }
.message-attachment p { margin:0; }
.attachment-eyebrow { color:#75767c; font-size:9px; font-weight:500; letter-spacing:.06em; }
.attachment-foot { display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px; border-top:1px solid #ededee; padding:9px 12px; color:#55585e; font-size:10px; }
.attachment-foot > span:last-child { margin-left:auto; color:#777a80; font-size:9px; }
.attachment-status-dot { width:5px; height:5px; border-radius:50%; background:#368657; }
/* An ad, with the product and the actual creative visible. */
.attachment-ad-brand { display:flex; align-items:center; gap:7px; padding:6px 11px; }
.sample-brand { width:24px; height:24px; display:grid; place-items:center; background:#ddd9c6; color:#393d2b; font:italic 24px/1 'Instrument Serif',Georgia,serif; border-radius:50%; }
.attachment-ad-brand > div { display:flex; flex-direction:column; }
.attachment-ad-brand strong { font-size:10px; font-weight:600; }
.attachment-ad-brand > div > span { color:#73767b; font-size:8px; }
.attachment-ad-creative { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 17px; background:#e8e3d3; color:#3b4331; }
.attachment-ad-creative > div > span { display:block; font-size:7px; letter-spacing:.1em; margin-bottom:5px; }
.attachment-ad-creative > div > strong { display:block; font:27px/.98 'Instrument Serif',Georgia,serif; }
.attachment-ad-creative .message-tote { width:70px; height:70px; flex-shrink:0; }
.attachment-ad-link { display:flex; justify-content:space-between; align-items:center; gap:8px; background:#f3f3f1; padding:8px 11px; }
.attachment-ad-link > div { display:flex; flex-direction:column; gap:2px; }
.attachment-ad-link > div > span { color:#757777; font-size:7px; letter-spacing:.05em; }
.attachment-ad-link strong { font-size:10px; font-weight:500; }
.ad-shop-label { background:#e3e3e1; padding:5px 8px; border-radius:4px; font-size:9px; white-space:nowrap; }
/* A calendar invitation, with a date, a time and the people attending. */
.attachment-meeting > .attachment-eyebrow { padding:12px 13px 0; }
.meeting-summary { display:flex; gap:13px; align-items:center; padding:13px; }
.meeting-date { flex-shrink:0; width:42px; display:flex; flex-direction:column; text-align:center; color:#db4947; }
.meeting-date > span { font-size:9px; font-weight:600; letter-spacing:.04em; }
.meeting-date > strong { color:#242527; font-size:35px; line-height:1.05; font-weight:300; }
.meeting-date > span:last-child { color:#7c7d83; font-size:8px; margin-top:3px; }
.meeting-summary p { font-size:12px; margin:5px 0 3px; }
.meeting-summary > div:last-child > span { color:#797b80; font-size:10px; }
.meeting-guests { margin:0 13px 10px; display:flex; align-items:center; gap:10px; font-size:10px; }
.meeting-guests > div { display:flex; align-items:center; gap:4px; }
.guest-avatar { display:grid; place-items:center; width:19px; height:19px; border-radius:50%; background:#e8e9ef; color:#6f7385; font-size:9px; }
.guest-maya { background:#ede3dc; color:#8d6c58; }
.guest-status { margin-left:auto; color:#39845c; font-size:9px; }
/* A brief with a specific observation, evidence categories and an actionable test. */
.attachment-research { background:#fcfbf7; }
.attachment-research > .attachment-eyebrow { padding:12px 13px 0; display:flex; gap:5px; align-items:center; }
.brief-file { display:inline-block; width:9px; height:11px; border:1px solid #92968b; border-radius:1px; }
.attachment-research > h2 { padding:8px 13px 10px; font-size:17px; }
.research-comparison { display:grid; grid-template-columns:1fr 1fr; margin:0 13px; border-top:1px solid #e4e4db; border-bottom:1px solid #e4e4db; padding:10px 0; }
.research-comparison > div { display:flex; flex-direction:column; gap:5px; }
.research-comparison > div + div { border-left:1px solid #dedfd5; padding-left:12px; }
.research-comparison span { font-size:9px; color:#7a7e72; }
.research-comparison strong { font-size:11px; font-weight:500; color:#38422b; }
.attachment-research .research-next { padding:10px 13px; font-size:11px; }
.attachment-research .attachment-foot { border-color:#e4e4db; font-size:9px; }
.attachment-research .attachment-foot > span { font-size:8px; }
/* An actual order summary, instead of a generic 'answered' card. */
.order-heading { display:flex; justify-content:space-between; align-items:center; padding:12px 13px 0; }
.order-heading > strong { font-size:12px; font-weight:600; }
.order-heading > span { color:#568267; font-size:9px; }
.order-product { display:flex; align-items:center; gap:9px; padding:13px; }
.order-thumbnail { width:42px; height:47px; border-radius:4px; background:#eeeadd; flex-shrink:0; }
.order-thumbnail .message-tote { width:100%; height:100%; }
.order-product > div:nth-child(2) { display:flex; flex-direction:column; gap:4px; }
.order-product > div:nth-child(2) > strong { font-size:11px; font-weight:500; }
.order-product > div:nth-child(2) > span { font-size:9px; color:#7c7e82; }
.order-arrival { margin-left:auto; text-align:right; display:flex; flex-direction:column; gap:5px; }
.order-arrival > span { font-size:7px; letter-spacing:.08em; color:#777b74; }
.order-arrival > strong { font-size:11px; font-weight:500; }
.delivery-track { display:flex; justify-content:space-between; margin:0 18px; height:2px; background:linear-gradient(to right,#708468 50%,#e4e6e0 50%); }
.delivery-track i { position:relative; top:-2px; width:6px; height:6px; border-radius:50%; background:#708468; }
.delivery-track i:last-child { background:#e4e6e0; }
.delivery-stages { display:flex; justify-content:space-between; padding:7px 13px 11px; font-size:8px; color:#797e74; }
.delivery-stages > span:nth-child(2) { color:#425936; }
/* An invoice and its sent reminder. It remains explicitly unpaid. */
.invoice-heading { padding:12px 13px 0; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.invoice-heading > span:first-child { font-size:9px; color:#75767c; letter-spacing:.04em; }
.invoice-heading > span:last-child { color:#936b36; background:#fbf4e9; border-radius:4px; padding:3px 5px; font-size:8px; }
.invoice-summary { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:13px; }
.invoice-summary h2 { font-size:14px; }
.invoice-summary p { font-size:10px; color:#777a80; margin-top:4px; }
.invoice-summary > strong { font-size:21px; font-weight:500; letter-spacing:-.5px; }
.invoice-followup { margin:0 13px 12px; display:flex; gap:9px; align-items:center; border-top:1px solid #ededee; padding-top:11px; }
.invoice-mail { width:25px; height:25px; color:#66865a; }
.invoice-mail svg { width:100%; height:100%; }
.invoice-followup > div { display:flex; flex-direction:column; gap:3px; }
.invoice-followup strong { font-size:11px; font-weight:500; }
.invoice-followup > div > span { font-size:9px; color:#7b7e83; }
/* The second screen stays a conversation, with optional suggested replies. */
.message-later { gap:13px; }
.message-decision-note { display:block; font-size:11px; line-height:1.4; margin-top:8px; color:#6b6d73; }
.message-response { font-size:10px; line-height:1.5; color:#7a7c81; text-align:center; }
.message-proposal { border:1px solid #e0e0e4; border-radius:14px; padding:13px; background:#f8f8fa; max-width:95%; }
.message-proposal-label { font-size:9px; letter-spacing:.06em; color:#74767b; }
.message-proposal > p { font-size:15px; line-height:1.4; margin-top:6px; }
.message-replies { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.message-replies button { min-height:44px; padding:10px 13px; border:1px solid #c9dff7; border-radius:20px; color:#0065cf; background:#edf5ff; font:500 12px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; display:inline-flex; align-items:center; gap:7px; cursor:pointer; }
.message-replies button:last-child { background:#fff; }
.message-replies svg { width:17px; height:17px; }
.message-replies button:hover { background:#dfedff; }
.message-replies button:focus-visible { outline:2px solid #0071e3; outline-offset:3px; }
.message-replies button:disabled { opacity:.6; cursor:default; }
.message-evidence,.message-ack { font-size:13px; line-height:1.4; color:#323237; padding:11px 13px; background:#e9e9eb; border-radius:17px 17px 17px 5px; max-width:95%; }
.message-reveal { animation:message-arrive .4s cubic-bezier(.22,1,.36,1) var(--message-delay,0s) both; }
.message-reveal:focus-within { animation:none; }
@keyframes message-arrive { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:650px) {
  .quiz-shell.visual-story .iv-conversation h1 { font-size:39px; }
  .quiz-shell.visual-story:has(.iv-conversation) .story-focus { padding-top:16px; }
  .message-figure { margin-top:12px; }
}
@media(max-width:650px) and (max-height:740px) {
  .quiz-shell.visual-story .iv-conversation h1 { font-size:33px; }
  .quiz-shell.visual-story:has(.iv-conversation) .story-focus { padding-top:17px; }
  .iv-conversation .iv-description { font-size:11px; margin-top:9px; }
  .message-figure { margin-top:14px; }
  .message-conversation { padding:10px; }
  .message-contact { flex-direction:row; justify-content:center; padding-bottom:7px; gap:7px; }
  .message-avatar { width:26px; height:26px; }
  .message-avatar .design-mark { width:16px; height:18px; }
  .message-channel { margin-top:7px; }
  .message-thread { gap:8px; padding-top:8px; }
  .message-bubble { font-size:13px; padding:9px 12px; }
  .message-later { gap:12px; }
}
@media(prefers-reduced-motion:reduce) { .message-reveal { animation:none; } }

/* Two moments in the same campaign. The week passes between funnel screens. */
.iv-campaign-week .message-contact { flex-direction:row; justify-content:center; gap:7px; }
.iv-campaign-week .message-avatar { width:28px; height:28px; }
.iv-campaign-week .message-avatar .design-mark { width:18px; height:20px; }
.campaign-review-thread { gap:13px; }
/* One tangible weekly result, then one message explaining the next move. */
.week-result-label { padding:12px 13px 0; font-size:10px; font-weight:500; color:#686b72; }
.message-attachment .week-result-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; padding:7px 13px 12px; font-size:15px; font-weight:500; }
.week-result-title > strong { font-size:31px; font-weight:600; letter-spacing:-1.1px; line-height:1; color:#32462c; }
.week-creative-comparison { display:grid; grid-template-columns:1fr 1fr; gap:7px; padding:0 10px 10px; }
.week-creative { min-width:0; border:1px solid #e2e4dc; border-radius:7px; overflow:hidden; }
.week-ad { padding:9px 9px 3px; color:#38412b; background:#e8e2d1; }
.week-ad-practical { background:#e1e7d7; }
.week-ad > span { font-size:6px; letter-spacing:.06em; display:block; }
.week-ad > strong { display:block; font:23px/.95 'Instrument Serif',Georgia,serif; margin-top:7px; }
.week-ad .message-tote { display:block; width:51px; height:51px; margin:0 auto; }
.week-ad-result { padding:7px 9px; display:flex; flex-direction:column; gap:2px; background:#f9f9f6; }
.week-ad-result > strong { font-size:14px; font-weight:600; }
.week-ad-result > span { font-size:9px; color:#73766d; }
.week-next { display:flex; justify-content:center; align-items:center; gap:6px; font-size:10px; line-height:1.5; color:#636a5d; text-align:center; padding:0 6px; }
.week-next .attachment-status-dot { flex-shrink:0; }
.week-next .week-status-pending { background:#8a8063; }
.week-buyer-profile { margin:0 13px 12px; padding:12px; border-radius:8px; background:#f0f3e8; }
.week-buyer-profile > span { display:block; font-size:8px; letter-spacing:.06em; color:#637454; }
.week-buyer-profile > h3 { margin:7px 0 3px; font:600 15px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:#35482d; }
.week-buyer-profile > p { font-size:10px; line-height:1.4; color:#626d59; }
.week-close-rates { display:grid; grid-template-columns:1fr 1fr; gap:12px; border-top:1px solid #d9e0ce; margin-top:12px; padding-top:10px; }
.week-close-rates > div { display:flex; flex-direction:column; gap:3px; }
.week-close-rates strong { font-size:21px; font-weight:500; line-height:1; color:#3d5731; }
.week-close-rates > div:last-child > strong { color:#707866; }
.week-close-rates span { font-size:9px; color:#727a69; }
.week-research { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0 13px 13px; border-block:1px solid #e6e7df; padding:12px 0; }
.week-research > div { display:flex; flex-direction:column; gap:5px; }
.week-research strong { font-size:27px; font-weight:500; color:#435437; line-height:1; }
.week-research span { font-size:11px; line-height:1.4; color:#666d5f; }
.week-question-pattern { margin:0 13px 13px; padding:13px; border-radius:8px; background:#f0f3e8; }
.week-question-pattern > span { font-size:8px; letter-spacing:.05em; color:#637454; }
.week-question-pattern > blockquote { margin:10px 0 8px; font-size:18px; font-weight:500; line-height:1.3; color:#35482d; }
.week-question-pattern > p { font-size:11px; line-height:1.5; color:#626d59; }
.week-invoice-summary { padding:0 13px 12px; font-size:11px; line-height:1.5; color:#666d5f; }
.week-invoices { padding:0 13px 10px; }
.week-invoices > div { display:flex; align-items:center; gap:10px; padding:12px 0; border-top:1px solid #ecece7; }
.week-invoices > div > span:first-child { flex:1; font-size:11px; }
.week-missing-detail { font-size:9px; color:#896744; }
@media(max-width:650px) and (max-height:740px) {
  .campaign-review-thread { gap:10px; }
  .week-ad > strong { font-size:21px; }
  .week-ad .message-tote { width:44px; height:44px; }
}
