/* ============================================================
   imessage.css — the zerosettle.io front page (iMessage API).
   Rides on the shared tokens/fonts/dark-mode from redesign.css +
   v4.css + brand-v3.css; everything here is scoped under .imsg so
   it never touches the rest of the site.

   Layout: left-aligned section heads, hairline seams between
   sections, tiles with borders and no shadows. Shadows exist only
   on the phone frame and the terminal.
   ============================================================ */

.imsg {
  --imsg-maxw: 1120px;
  --imsg-gutter: clamp(20px, 5vw, 40px);
  --imsg-blue: #007AFF;
  --imsg-blue-deep: #0062CC;
  --imsg-tile-r: 16px;
  color: var(--ink);
  font-family: var(--font);
  overflow-x: clip;
}
.imsg * { min-width: 0; }

.imsg-container {
  width: 100%;
  max-width: var(--imsg-maxw);
  margin: 0 auto;
  padding-left: var(--imsg-gutter);
  padding-right: var(--imsg-gutter);
}

/* Main sections are separated by whitespace. */
.imsg section { position: relative; padding: clamp(56px, 8vw, 104px) 0; border-top: 0; }
.imsg section.imsg-hero { border-top: 0; }

/* ---- section heads ---- */
.imsg .sec-head { max-width: 62ch; margin: 0 0 clamp(28px, 4vw, 48px); }
.imsg .sec-head h2, .imsg h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.1; margin: 0; color: var(--ink);
}
.imsg .sec-head .sec-sub { margin-top: 12px; }
.imsg .sec-sub { font-size: 1.05rem; color: var(--ink-2); line-height: 1.55; max-width: 58ch; margin: 0; }
.imsg h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin: 0; color: var(--ink); }
.imsg p { margin: 0; }

/* ---- primitives ---- */
.imsg .tile {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--imsg-tile-r);
}
.imsg .mono { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.imsg .method {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 4px 7px; border-radius: 6px; border: 1px solid var(--hairline); color: var(--ink-2);
  vertical-align: middle;
}
.imsg .method.post { color: var(--imsg-blue); }
.imsg .note { font-size: 13px; color: var(--ink-3); }
.imsg .imsg-blue-text { color: var(--imsg-blue); }
.imsg a.text-link {
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--hairline-2); text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.imsg a.text-link:hover { text-decoration-color: var(--ink); }

/* ---- buttons ---- */
.imsg .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 20px; border-radius: var(--r-pill, 999px); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.imsg .btn svg { width: 16px; height: 16px; }
/* Extra specificity + !important beats brand-v3's `body.zs26 .btn-primary { background: var(--ink) !important }`. */
.imsg .btn.btn-primary {
  background: var(--imsg-blue) !important; color: #fff !important; border-color: var(--imsg-blue) !important;
  box-shadow: none !important;
}
.imsg .btn.btn-primary:hover { background: var(--imsg-blue-deep) !important; border-color: var(--imsg-blue-deep) !important; transform: none; }
/* The primary CTA: ZeroSettle green (the console's --green), same override game as above. */
.zs26 .btn.btn-cta {
  background: #3266D8 !important; color: #fff !important; border-color: #3266D8 !important;
  box-shadow: 0 8px 22px rgba(50,102,216,.28) !important;
}
.zs26 .btn.btn-cta:hover { background: #244FAE !important; border-color: #244FAE !important; transform: translateY(-1px); }
.zs26 .btn.btn-cta:focus-visible { outline: 3px solid rgba(50,102,216,.3); outline-offset: 3px; }
.imsg .btn.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.imsg .btn.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }

/* ---- iPhone frame (CSS, no image asset) ---- */
.imsg-phone {
  position: relative;
  width: min(330px, 80%);
  margin: 0 auto;
  aspect-ratio: 1206 / 2622;
  background: linear-gradient(155deg, #2b2b30 0%, #141416 42%, #0d0d0f 100%);
  border-radius: clamp(40px, 4.4vw, 56px);
  padding: clamp(7px, .95vw, 11px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 34px 70px rgba(23,20,13,.22),
    0 6px 18px rgba(23,20,13,.14);
}
.imsg-phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: clamp(32px, 3.6vw, 46px);
  overflow: hidden; background: #000;
  box-shadow: 0 0 0 2px #000 inset;
}
.imsg-phone-screen img, .imsg-phone-screen video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.imsg-phone::before, .imsg-phone::after { content: ""; position: absolute; background: #16161a; border-radius: 3px; }
.imsg-phone::before { left: -2px; top: 26%; width: 3px; height: 11%; box-shadow: 0 9% 0 #16161a; }
.imsg-phone::after { right: -2px; top: 32%; width: 3px; height: 10%; }

/* ---- terminal ---- */
.imsg-code {
  background: #141210; border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg, 14px); overflow: hidden; box-shadow: 0 20px 50px rgba(23,20,13,.18);
}
.imsg-code .code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.imsg-code .code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3833; display: block; }
.imsg-code .code-bar .code-title { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: #8B867A; }
.imsg-code pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #E7E4DC;
  white-space: pre-wrap; word-break: break-word;
}
.imsg-code .c-com { color: #8B867A; }
.imsg-code .c-cmd { color: #9DC3FF; }
.imsg-code .c-str { color: #E8C98B; }
.imsg-code .c-key { color: #B9D8FF; }

/* ---- forms ---- */
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.waitlist-form input[type="email"], .waitlist-form input[type="tel"] {
  flex: 1 1 240px; min-width: 0;
  padding: 13px 16px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline-2); border-radius: var(--r-pill, 999px);
}
.waitlist-form input::placeholder { color: var(--ink-3); }
.waitlist-form input:focus { outline: none; border-color: var(--imsg-blue); box-shadow: 0 0 0 3px rgba(0,122,255,.15); }
.waitlist-form .btn { flex: 0 0 auto; }
.waitlist-form input[name="_gotcha"] { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 14px 0 0; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red, #d23b2f); }

/* ---- nav (minimal): the pill spans exactly the content column at every width ---- */
body.zs26 { --imsg-gutter: clamp(20px, 5vw, 40px); }
body.zs26 .nav { padding-left: var(--imsg-gutter); padding-right: var(--imsg-gutter); }
body.zs26 .nav-inner { max-width: calc(1120px - 2 * var(--imsg-gutter)); }
.nav-docs-link { font-size: 14.5px; font-weight: 500; color: var(--ink-2, #454844); text-decoration: none; margin-right: 6px; }
.nav-docs-link:hover { color: var(--ink, #101210); }
/* the nav stays put: no dock-style auto-hide on this page (shell.js honours ZS_NAV_KEEP_SHOWN too) */
body.zs26 .nav.nav-hidden { transform: none !important; }
/* in-page jumps: smooth, land under the fixed nav, hidden where the pill has no room */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.imsg section[id] { scroll-margin-top: 84px; }
.zs26 .nav-actions { gap: 18px; }
.zs26 .nav-actions .nav-login-pill { padding: 12px 18px; font-size: 14.5px; }
.zs26 .nav-actions .nav-get-started { padding: 13px 24px; font-size: 15.5px; margin-left: -6px; }
/* Phones: logo + hamburger only; the links and both buttons live in the dropdown. */
@media (max-width: 760px) {
  .zs26 .nav-minimal .nav-actions { gap: 10px; }
  .zs26 .nav-minimal .nav-actions > .nav-docs-link,
  .zs26 .nav-minimal .nav-actions > .nav-login-pill,
  .zs26 .nav-minimal .nav-actions > .nav-get-started { display: none; }
  .zs26 .nav-minimal .nav-mobile-toggle { display: inline-flex; }
  .zs26 .nav-minimal .nav-mobile-menu .btn { width: 100%; margin-top: 8px; }
  .zs26 .nav-minimal .nav-mobile-menu .nav-mobile-login { margin-top: 12px; }
}

/* ---- base responsive ---- */
@media (max-width: 560px) {
  .imsg .btn { width: 100%; }
  .waitlist-form { max-width: 100%; }
  .waitlist-form input[type="email"], .waitlist-form input[type="tel"] { flex: 1 1 100%; }
  .imsg-code pre { font-size: 12px; padding: 16px; }
}

/* ============================================================
   Hero
   ============================================================ */
.imsg-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); border-top: 0; }
.imsg-hero .imsg-container {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.imsg-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -.03em;
  line-height: 1.05; margin: 0; color: var(--ink); max-width: 14ch;
}
.imsg-hero .hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); line-height: 1.55;
  margin: 22px 0 0; max-width: 46ch;
}
.imsg-hero .waitlist-form { margin: 30px 0 0; justify-content: flex-start; max-width: 520px; flex-wrap: nowrap; }
.imsg-hero .waitlist-form input[type="tel"] { flex: 1 1 0; min-width: 0; }
.imsg-hero .waitlist-form .btn { white-space: nowrap; }
.imsg-hero .form-msg { margin-left: 0; text-align: left; }
.imsg-hero .hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0;
}
.imsg-hero .hero-docs {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.imsg-hero .hero-docs:hover { color: var(--ink); }
.imsg-hero .hero-docs span { transition: transform .15s ease; }
.imsg-hero .hero-docs:hover span { transform: translateX(2px); }
.imsg-hero .hero-phone { width: min(330px, 82%); }

/* ============================================================
   Use cases — two tiles, the whole phone
   ============================================================ */
.imsg-cases .case-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.imsg-cases .case {
  position: relative; display: flex; flex-direction: column;
  overflow: hidden;
}
.imsg-cases .case-copy { padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) 0; }
.imsg-cases .case h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.imsg-cases .case p { margin: 8px 0 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.imsg-cases .case-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  text-decoration: none; color: var(--ink-3);
}
.imsg-cases .case-link:hover { color: var(--ink); }
.imsg-cases .case-wide { grid-column: 1 / -1; }
.imsg-cases .case-wide .case-copy { padding-bottom: 0; }
.imsg-cases .case-media {
  flex: 0 0 auto; position: relative; display: flex; align-items: flex-start; justify-content: center;
  margin-top: clamp(20px, 3vw, 32px); padding: 0 clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px);
}
.imsg-cases .case-media.agent-media { display: block; padding-top: clamp(8px, 1.5vw, 16px); }
.imsg-cases .case-phone {
  width: min(300px, 78%); margin: 0 auto;
  border-radius: clamp(36px, 3.6vw, 48px); padding: clamp(6px, .8vw, 9px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 24px 48px rgba(23,20,13,.22);
}
.imsg-cases .case-phone .imsg-phone-screen { border-radius: clamp(30px, 3vw, 40px); }
.imsg-phone-screen video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* ---- chat thread mock (self-contained) ---- */
.chat {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #fff; color: #1c1c1e; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
  -webkit-font-smoothing: antialiased;
}
.chat-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 46px 16px 12px; border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(249,249,249,.94);
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #9a9aa0, #7d7d84); color: #fff; font-size: 19px; font-weight: 500;
}
.chat-name { font-size: 11px; color: #1c1c1e; }
.chat-thread { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; }
.chat-bubble {
  position: relative; max-width: 78%; padding: 8px 12px; border-radius: 18px;
  font-size: 15px; line-height: 1.3; word-wrap: break-word;
}
.chat-in { align-self: flex-start; background: #E9E9EB; color: #1c1c1e; border-bottom-left-radius: 5px; }
.chat-out { align-self: flex-end; background: #007AFF; color: #fff; border-bottom-right-radius: 5px; }
.chat-liked { margin-top: 10px; }
.chat-tapback {
  position: absolute; top: -13px; right: -10px;
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; background: #fff; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.chat-typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; }
.chat-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; display: block;
  animation: chat-dot 1.4s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .2s; }
.chat-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing i { animation: none; opacity: .6; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .imsg section.imsg-hero { padding-top: clamp(92px, 24vw, 110px); } /* beats .imsg section's padding shorthand */
  .imsg-hero .imsg-container { grid-template-columns: 1fr; text-align: left; }
  .imsg-hero .hero-phone { order: 2; width: min(300px, 74vw); margin: 8px auto 0; }
  .imsg-cases .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .imsg-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); max-width: none; }
  .imsg-hero .waitlist-form { flex-wrap: wrap; max-width: 100%; }
  .imsg-hero .waitlist-form input[type="tel"] { flex: 1 1 100%; }
  .imsg-hero .waitlist-form .btn { flex: 1 1 100%; }
  .imsg-cases .case-phone { width: min(260px, 80%); }
}

/* ============================================================
   Built for iMessage — six-tile seam grid
   ============================================================ */
.imsg .feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px;
  overflow: hidden;
}
.imsg .feature { display: flex; flex-direction: column; background: var(--surface); min-width: 0; }
.imsg .feature-media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* Real screenshots sit on white so light-mode UI reads in both themes. */
.imsg .feature-media.is-img { background: #fff; }
.imsg .feature-media.is-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.imsg .feature-media.is-ink { background: linear-gradient(135deg, #eef0f4 0%, #e6e9f0 100%); }
.imsg .feature-body { padding: 20px 22px 24px; }
.imsg .feature h3 .note { display: inline; margin-left: 8px; font-weight: 400; letter-spacing: 0; }
.imsg .feature h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; color: var(--ink); }
.imsg .feature p { font-size: .95rem; color: var(--ink-2); line-height: 1.55; margin: 0; }
.imsg .imsg-reactions { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.imsg .imsg-reactions span {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--hairline); font-size: 14px;
}

/* ---- thread mock (photo / voice / typing tiles) ---- */
.imsg .thread-mock {
  width: 100%; height: 100%; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.imsg .bubble {
  max-width: 78%; padding: 8px 12px; border-radius: 16px;
  font-size: 14px; line-height: 1.35; letter-spacing: -.005em;
}
.imsg .bubble-out { align-self: flex-end; background: var(--imsg-blue, #007AFF); color: #fff; border-bottom-right-radius: 4px; }
.imsg .bubble-in { align-self: flex-start; background: #E9E9EB; color: #000; border-bottom-left-radius: 4px; }
[data-theme="dark"] .imsg .bubble-in { background: #26252A; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .imsg .bubble-in { background: #26252A; color: #fff; } }

.imsg .bubble-photo { padding: 4px; max-width: 62%; display: flex; flex-direction: column; gap: 6px; }
.imsg .photo-ph {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 12px;
  background: linear-gradient(160deg, #6FB6FF 0%, #3D8FF2 55%, #2B6CD9 100%);
}
.imsg .photo-caption { padding: 0 8px 4px; font-size: 13.5px; }

.imsg .bubble-voice { display: flex; align-items: center; gap: 8px; padding: 8px 12px; max-width: 74%; width: 74%; }
.imsg .voice-play {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--imsg-blue, #007AFF); position: relative;
}
.imsg .voice-play::after {
  content: ""; position: absolute; left: 7px; top: 5px;
  border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.imsg .waveform { flex: 1 1 auto; display: flex; align-items: center; gap: 2px; height: 20px; min-width: 0; }
.imsg .waveform i { flex: 1 1 0; height: 30%; background: var(--imsg-blue, #007AFF); border-radius: 1px; opacity: .9; }
.imsg .waveform i:nth-child(3n) { height: 65%; }
.imsg .waveform i:nth-child(4n+1) { height: 90%; }
.imsg .waveform i:nth-child(5n+2) { height: 50%; }
.imsg .waveform i:nth-child(7n) { height: 100%; }
.imsg .waveform i:nth-child(n+22) { opacity: .35; }
.imsg .voice-len { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.imsg .bubble-typing { display: flex; align-items: center; gap: 4px; padding: 11px 14px; }
.imsg .bubble-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8E8E93; display: block; }
.imsg .bubble-typing i:nth-child(2) { opacity: .7; }
.imsg .bubble-typing i:nth-child(3) { opacity: .45; }

/* ---- request mock (webhook tile) ---- */
.imsg .request-mock {
  width: 100%; height: 100%; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-2);
  overflow: hidden;
}
.imsg .request-mock .req-line { display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imsg .request-mock .req-url { overflow: hidden; text-overflow: ellipsis; }
.imsg .request-mock .req-hdr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imsg .request-mock .hdr-k { color: var(--ink-3); }
.imsg .request-mock .req-body {
  margin-top: 4px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   Integration — API reference + terminal + prompt row
   ============================================================ */
.imsg .impl-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.imsg .api-ref { border-top: 1px solid var(--hairline); }
.imsg .api-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 4px;
  align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--hairline);
  color: inherit; text-decoration: none;
}
.imsg .api-row:hover { background: var(--surface-2); }
.imsg .api-row .method { justify-self: start; }
.imsg .api-path { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.imsg .api-desc { grid-column: 2; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.imsg .api-more {
  display: inline-block; margin-top: 16px; font-size: .95rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--hairline-2);
}
.imsg .api-more:hover { border-bottom-color: var(--ink); }

/* the prompt row under the two columns */
.imsg .prompt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(24px, 3vw, 36px); padding: 16px 20px;
}
.imsg .prompt-lead { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.imsg .prompt-label { font-size: 13px; color: var(--ink-3); }
.imsg .prompt-line {
  font-family: var(--mono); font-size: 13.5px; color: var(--ink); line-height: 1.5;
  word-break: break-word;
}
.imsg .prompt-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.imsg .copy-prompt { padding: 10px 16px; font-size: 14px; }
.imsg .copy-prompt.is-copied { color: var(--green); border-color: var(--green); }
.imsg .agent-logos { display: flex; align-items: center; gap: 8px; margin: 0; }
.imsg .agent-logo {
  width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 7px;
}
.imsg .agent-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   Build your own iMessage Agent — one ring
   Nodes, labels, and arrowheads are HTML positioned on a circle of
   radius --r (a % of the square wrapper), so they scale together.
   ============================================================ */
.imsg .agent-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.imsg .agent-left { display: flex; flex-direction: column; align-items: center; }
.imsg .agent-ring {
  --r: 38%;      /* ring radius, % of the wrapper */
  --node-w: clamp(112px, 25%, 150px);
  position: relative; width: min(600px, 100%); aspect-ratio: 1; margin: 0 auto;
}
/* packet: a dot that travels the ring, lighting each stop as it passes */
.imsg .ring-dot {
  position: absolute; left: 50%; top: calc(50% - var(--r)); width: 9px; height: 9px; border-radius: 50%;
  background: var(--imsg-blue); transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s ease;
}
.imsg .ring-dot.is-live { opacity: 1; }
/* the active node / edge while the packet is there */
.imsg .loop-node, .imsg .ring-arrow { transition: border-color .25s ease, background-color .25s ease, color .25s ease; }
.imsg .loop-node.is-active { border-color: var(--ink); background: var(--surface-2); }
.imsg .loop-node.is-model.is-active { border-color: var(--imsg-blue); background: color-mix(in srgb, var(--imsg-blue) 7%, var(--canvas)); }
.imsg .ring-arrow.is-active { border-color: var(--ink); }
/* the ring itself, on the same radius the nodes use */
.imsg .agent-ring::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: calc(2 * var(--r)); height: calc(2 * var(--r)); transform: translate(-50%, -50%);
  border: 1px solid var(--hairline-2); border-radius: 50%;
}
.imsg .loop-node {
  position: absolute; transform: translate(-50%, -50%);
  width: var(--node-w); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 4px; text-align: center;
  padding: 14px 14px; background: var(--canvas); border: 1px solid var(--hairline-2); border-radius: 12px;
}
.imsg .loop-icon { display: flex; align-items: center; justify-content: center; gap: 7px; height: 28px; margin: 0 auto 4px; color: var(--ink-2); }
.imsg .loop-icon svg { width: 24px; height: 24px; }
.imsg .loop-icon img { width: 26px; height: 26px; object-fit: contain; display: block; }
.imsg .n-hook .loop-icon img { width: 28px; height: 28px; border-radius: 22.5%; }
.imsg .n-line .loop-icon img { width: 30px; height: 30px; }
.imsg .loop-icon-pair img { width: 22px; height: 22px; border-radius: 5px; }
.imsg .loop-title { font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.imsg .loop-node .mono { font-size: 12.5px; line-height: 1.4; }
.imsg .loop-node.is-model { border-color: var(--imsg-blue); }
.imsg .loop-node.is-model .loop-title, .imsg .loop-node.is-model .mono { color: var(--imsg-blue); }
/* 12 / 3 / 6 / 9 o'clock */
.imsg .n-phone { left: 50%; top: calc(50% - var(--r)); }
.imsg .n-line  { left: calc(50% + var(--r)); top: 50%; }
.imsg .n-hook  { left: 50%; top: calc(50% + var(--r)); }
.imsg .n-model { left: calc(50% - var(--r)); top: 50%; }
/* arrowheads, clockwise, just past each arc midpoint (55°, 145°, 235°, 325°) so the chevron sits diagonal */
.imsg .ring-arrow {
  position: absolute; width: 8px; height: 8px; z-index: 1;
  border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3);
}
.imsg .a-1 { left: calc(50% + var(--r) * .81915); top: calc(50% - var(--r) * .57358); transform: translate(-50%, -50%) rotate(100deg); }
.imsg .a-2 { left: calc(50% + var(--r) * .57358); top: calc(50% + var(--r) * .81915); transform: translate(-50%, -50%) rotate(190deg); }
.imsg .a-3 { left: calc(50% - var(--r) * .81915); top: calc(50% + var(--r) * .57358); transform: translate(-50%, -50%) rotate(280deg); }
.imsg .a-4 { left: calc(50% - var(--r) * .57358); top: calc(50% - var(--r) * .81915); transform: translate(-50%, -50%) rotate(10deg); }

/* ============================================================
   Use case: customer support — the console, alive, in a floating window
   (everything under .sup-; built on a fixed virtual canvas and scaled)
   ============================================================ */
/* ---- tile ------------------------------------------------------------ */
.imsg-cases .case-media.sup-media { display: block; padding-top: clamp(10px, 1.6vw, 18px); padding-bottom: clamp(34px, 4.2vw, 52px); }
.sup-stage { position: relative; width: 100%; aspect-ratio: 1180 / 780; }

/* ---- the floating browser window (fixed virtual size, scaled by JS) --- */
.sup-window {
  --sup-font: 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  --sup-ios: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sup-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --sup-canvas: #FFFFFF; --sup-surface: #FFFFFF; --sup-surface-2: #F4F4F1;
  --sup-line: rgba(16,18,16,.08); --sup-line-2: rgba(16,18,16,.14);
  --sup-ink: #101210; --sup-ink-2: #454844; --sup-ink-3: #777B75; --sup-ink-4: #A3A69F;
  --sup-green: #3266D8; --sup-green-ink: #244FAE; --sup-green-soft: #E7EFFF;
  --sup-blue: #0B84FF; --sup-in: #E9E9EB; --sup-red: #D23B3B;
  --sup-shadow-sm: 0 1px 2px rgba(16,18,16,.04), 0 1px 3px rgba(16,18,16,.03);
  position: absolute; left: 0; top: 0; width: 1180px; height: 780px; transform-origin: 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 12px; background: var(--sup-canvas); color: var(--sup-ink);
  font: 14px/1.5 var(--sup-font); -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(23,20,13,.09), 0 2px 6px rgba(23,20,13,.06), 0 24px 56px -12px rgba(23,20,13,.28);
}
[data-theme="dark"] .sup-window { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.35), 0 28px 64px -12px rgba(0,0,0,.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sup-window { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.35), 0 28px 64px -12px rgba(0,0,0,.7); } }
.sup-window * { box-sizing: border-box; min-width: 0; }
.sup-window svg { display: block; }
.sup-window img { max-width: none; }

/* browser chrome */
.sup-chrome { flex: 0 0 44px; position: relative; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #F4F4F2; border-bottom: 1px solid rgba(16,18,16,.10); font-family: var(--sup-ios); }
.sup-lights { display: flex; gap: 8px; flex: 0 0 auto; }
.sup-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.16); }
.sup-lights i:nth-child(1) { background: #FF5F57; } .sup-lights i:nth-child(2) { background: #FEBC2E; } .sup-lights i:nth-child(3) { background: #28C840; }
.sup-nav { display: flex; gap: 14px; color: #B6B6B2; }
.sup-nav svg { width: 15px; height: 15px; }
.sup-url { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: min(470px, 44%); height: 28px; border-radius: 7px; background: rgba(16,18,16,.06); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: #2E2E2C; letter-spacing: -.005em; }
.sup-url > svg { width: 11px; height: 11px; color: #7A7A77; flex: 0 0 auto; }
.sup-url-path { color: #8A8A86; }
.sup-url .sup-reload { position: absolute; right: 8px; top: 7px; width: 13px; height: 13px; color: #7A7A77; }

/* app shell */
.sup-app { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: 56px minmax(0, 1fr); background: var(--sup-canvas); }
.sup-body { display: grid; grid-template-columns: 352px minmax(0, 1fr) 328px; min-height: 0; transition: opacity .4s ease; }
.sup-app.is-clearing .sup-body { opacity: 0; }
.sup-topbar { display: flex; align-items: center; gap: 18px; padding: 0 20px; background: var(--sup-surface); border-bottom: 1px solid var(--sup-line); }
.sup-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--sup-ink); }
.sup-logo img { height: 22px; width: auto; display: block; }
.sup-sep { width: 1px; height: 22px; background: var(--sup-line-2); }
.sup-line-id { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sup-muted { color: var(--sup-ink-3); }
.sup-num { font-variant-numeric: tabular-nums; }
.sup-spacer { flex: 1; }
.sup-topnav { display: flex; gap: 2px; }
.sup-topnav span { color: var(--sup-ink-2); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 7px; }
.sup-menu-btn { display: none; }
.sup-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--sup-line-2); color: var(--sup-ink-2); background: var(--sup-surface); }
.sup-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sup-ink-4); }
.sup-pill.live { color: var(--sup-green-ink); background: var(--sup-green-soft); border-color: transparent; }
.sup-pill.live::before { background: var(--sup-green); }
.sup-pill.plain::before { display: none; }
.sup-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 500; line-height: 1.5; background: var(--sup-green); color: #fff; white-space: nowrap; }
.sup-btn.secondary { background: var(--sup-surface); color: var(--sup-ink); border-color: var(--sup-line-2); box-shadow: var(--sup-shadow-sm); }
.sup-btn.danger { background: var(--sup-surface); color: var(--sup-red); border-color: var(--sup-line-2); }
.sup-btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.sup-icon-btn { display: none; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; color: var(--sup-ink); }
.sup-icon-btn svg { width: 22px; height: 22px; }

/* rail */
.sup-rail { border-right: 1px solid var(--sup-line); background: var(--sup-surface); display: flex; flex-direction: column; min-height: 0; position: relative; }
.sup-window .sup-rail-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.sup-window .sup-rail-head h2 { font: 600 15px/1.5 var(--sup-font); letter-spacing: -.01em; margin: 0; flex: 1; color: var(--sup-ink); }
.sup-rcpt { padding: 0 12px 12px; }
.sup-rcpt-label { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--sup-ink-3); padding: 2px 4px 8px; }
.sup-rcpt-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--sup-line); border-radius: 12px; padding: 14px 10px 14px 10px; color: #000; font-family: var(--sup-ios); }
.sup-rcpt-dot { width: 10px; height: 10px; border-radius: 50%; background: #0A84FF; flex: 0 0 auto; }
.sup-rcpt-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: block; }
.sup-rcpt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sup-rcpt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-rcpt-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sup-rcpt-name { font-size: 15px; font-weight: 600; letter-spacing: -.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-rcpt-time { font-size: 13px; color: #8E8E93; flex: 0 0 auto; letter-spacing: -.01em; }
.sup-rcpt-chev { width: 14px; height: 14px; color: #C7C7CC; flex: 0 0 auto; }
.sup-rcpt-preview { font-size: 14px; color: #8E8E93; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-search { padding: 0 12px 10px; }
.sup-search div { padding: 7px 10px; font-size: 13px; line-height: 1.5; background: var(--sup-surface-2); border: 1px solid transparent; border-radius: 8px; color: var(--sup-ink-4); }
.sup-convos { flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid var(--sup-line); position: relative; }
.sup-convo { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--sup-line); background: var(--sup-surface); transition: transform .5s cubic-bezier(.2,.7,.2,1), background-color .18s ease; }
.sup-convo.is-moving { z-index: 1; }
.sup-convo.active { background: var(--sup-green-soft); }
.sup-convo.is-press { background: var(--sup-surface-2); }
.sup-convo.is-flash { animation: sup-flash 1.3s ease-out; }
@keyframes sup-flash { 0% { background-color: rgba(11,132,255,.12); } 100% { background-color: rgba(11,132,255,0); } }
.sup-avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; letter-spacing: -.02em; background-image: linear-gradient(180deg, #B0B3BA, #8E9299); }
.sup-avatar svg { width: 22px; height: 22px; }
.sup-convo-body { flex: 1; min-width: 0; }
.sup-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sup-handle { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sup-when { font-size: 11.5px; color: var(--sup-ink-3); flex: 0 0 auto; }
.sup-preview { font-size: 12.5px; color: var(--sup-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.sup-preview b { color: var(--sup-ink-2); font-weight: 500; }
.sup-unread { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sup-blue); flex: 0 0 auto; align-self: center; }
.sup-convo.unread .sup-unread { display: block; animation: sup-pop .32s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes sup-pop { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.sup-tap { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(16,18,16,.10); opacity: 0; pointer-events: none; }
.sup-convo.is-tap .sup-tap { animation: sup-ripple .55s ease-out; }
@keyframes sup-ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.3); } }
.sup-fab { display: none; }

/* thread */
.sup-thread { display: flex; flex-direction: column; min-height: 0; background: var(--sup-canvas); position: relative; }
.sup-thread-head { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 52px; background: var(--sup-surface); border-bottom: 1px solid var(--sup-line); flex: 0 0 auto; }
.sup-back { display: none; }
.sup-thread-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.sup-thread-title .sup-handle { flex: 0 1 auto; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sup-count { color: var(--sup-ink-3); font-size: 13px; white-space: nowrap; }
.sup-thread-actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.sup-bubbles { flex: 1; min-height: 0; overflow: hidden; padding: 18px 20px 10px; display: flex; flex-direction: column; transition: opacity .14s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px); /* older bubbles clipped at the top read as scrolled history */
          mask-image: linear-gradient(to bottom, transparent, #000 40px); }
.sup-bubbles.is-swap, .sup-cust.is-swap { opacity: 0; }
.sup-stamp { text-align: center; font-size: 11.5px; color: var(--sup-ink-3); margin: 14px 0 8px; flex: 0 0 auto; }
.sup-stamp b { font-weight: 600; color: var(--sup-ink-2); }
.sup-msgrow { display: flex; flex-direction: column; position: relative; margin-top: 8px; flex: 0 0 auto; transition: opacity .3s ease, transform .32s cubic-bezier(.2,.7,.2,1), margin-top .3s ease; }
.sup-msgrow.out { align-items: flex-end; transform-origin: right bottom; }
.sup-msgrow.in { align-items: flex-start; transform-origin: left bottom; }
.sup-msgrow.has-reactions { margin-top: 18px; }
.sup-msgrow.is-enter, .sup-typing-row.is-enter { opacity: 0; transform: translateY(10px) scale(.96); }
.sup-bubble { max-width: 66%; padding: 8px 13px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.35; position: relative; transition: opacity .25s ease; }
.sup-bubble.in { align-self: flex-start; background: var(--sup-in); color: var(--sup-ink); }
.sup-bubble.out { align-self: flex-end; background: var(--sup-blue); color: #fff; }
.sup-bubble.out.pending { opacity: .55; }
.sup-bubble.tail::before, .sup-bubble.tail::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.sup-bubble.out.tail::before { right: -7px; width: 20px; background: var(--sup-blue); border-bottom-left-radius: 16px 14px; }
.sup-bubble.out.tail::after { right: -10px; width: 10px; background: var(--sup-canvas); border-bottom-left-radius: 10px; }
.sup-bubble.in.tail::before { left: -7px; width: 20px; background: var(--sup-in); border-bottom-right-radius: 16px 14px; }
.sup-bubble.in.tail::after { left: -10px; width: 10px; background: var(--sup-canvas); border-bottom-right-radius: 10px; }
.sup-bubble.out.pending.tail::before, .sup-bubble.out.pending.tail::after { display: none; }
.sup-meta { font-size: 11px; color: var(--sup-ink-3); margin: 3px 6px 0; }
.sup-meta.out { align-self: flex-end; }
.sup-typing-row { display: flex; flex-direction: column; margin-top: 8px; align-items: flex-end; flex: 0 0 auto; transition: opacity .3s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
.sup-reactions { position: absolute; top: -13px; display: flex; gap: 2px; z-index: 1; }
.sup-bubble.in .sup-reactions { right: -8px; } .sup-bubble.out .sup-reactions { left: -8px; }
.sup-reactions span { display: block; background: var(--sup-surface); border: 1px solid var(--sup-line-2); border-radius: 999px; padding: 1px 7px; font-size: 13px; line-height: 18px; box-shadow: var(--sup-shadow-sm); animation: sup-tapback .45s cubic-bezier(.2,.9,.3,1.3) both; }
.sup-reactions span.mine { border-color: var(--sup-blue); background: #EAF3FF; }
@keyframes sup-tapback { 0% { transform: scale(.2); opacity: 0; } 65% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.sup-picker { position: absolute; top: -34px; display: none; gap: 2px; background: var(--sup-surface); border: 1px solid var(--sup-line-2); border-radius: 999px; padding: 3px 5px; box-shadow: 0 1px 2px rgba(16,18,16,.04), 0 12px 32px -16px rgba(16,18,16,.16); z-index: 2; }
.sup-msgrow.in .sup-picker { left: 8px; } .sup-msgrow.out .sup-picker { right: 8px; }
.sup-msgrow.show-picker .sup-picker { display: flex; animation: sup-pop .2s ease-out both; }
.sup-picker span { font-size: 16px; line-height: 1; padding: 4px 5px; border-radius: 999px; }
.sup-picker span.is-hover { background: var(--sup-surface-2); }
/* photo bubble: the picture is the bubble; the caption is a second bubble under it */
.sup-bubble.image { white-space: normal; padding: 0; }
.sup-bubble.imgonly { background: transparent; }
.sup-bubble.out.pending.image { opacity: 1; }
.sup-img-att { position: relative; display: block; width: 280px; max-width: 100%; background: var(--sup-surface-2); border: 1px solid var(--sup-line); border-radius: 18px; overflow: hidden; }
.sup-img-att svg { width: 100%; height: auto; opacity: 0; transition: opacity .25s ease; }
.sup-img-att.ready svg { opacity: 1; }
/* the shimmer is always drawn and only fades, so loading → ready eases like a bubble's pending → Delivered */
.sup-img-att::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%) 0 0 / 240% 100%; animation: sup-shimmer 1.3s linear infinite; }
.sup-img-att.loading::after { opacity: 1; }
@keyframes sup-shimmer { to { background-position: -140% 0; } }
.sup-bubble.image + .sup-bubble { margin-top: 3px; }
/* composer */
.sup-compose { flex: 0 0 auto; padding: 10px 16px; background: var(--sup-surface); border-top: 1px solid var(--sup-line); display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.sup-staged { flex: 1 0 100%; display: none; align-items: center; gap: 12px; padding: 2px 0 6px; }
.sup-staged.on { display: flex; animation: sup-pop .25s ease-out both; }
.sup-thumb { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--sup-surface-2); border: 1px solid var(--sup-line); }
.sup-thumb-img { display: block; width: 100%; height: 100%; }
.sup-thumb-img svg { width: 100%; height: 100%; }
.sup-thumb .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(16,18,16,.72); color: #fff; display: grid; place-items: center; }
.sup-thumb .x svg { width: 12px; height: 12px; }
.sup-staged .info { min-width: 0; font-size: 12.5px; color: var(--sup-ink-3); line-height: 1.35; }
.sup-staged .info b { color: var(--sup-ink-2); font-weight: 500; }
.sup-attach { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sup-ink-3); margin-bottom: 1px; transition: background-color .15s ease, color .15s ease; }
.sup-attach svg { width: 22px; height: 22px; }
.sup-attach.is-hover { color: var(--sup-ink); background: var(--sup-surface-2); }
.sup-field { flex: 1 1 0; min-width: 0; min-height: 36px; border: 1px solid var(--sup-line-2); border-radius: 18px; padding: 7px 14px; font-size: 14.5px; line-height: 1.35; background: var(--sup-surface); color: var(--sup-ink); white-space: pre-wrap; word-break: break-word; transition: border-color .12s, box-shadow .12s; }
.sup-field.empty::before { content: "iMessage"; color: var(--sup-ink-4); }
.sup-field.focus { border-color: var(--sup-green); box-shadow: 0 0 0 3px rgba(50,102,216,.18); }
.sup-caret { display: inline-block; width: 1px; height: 1.05em; background: var(--sup-ink); vertical-align: -2px; margin-left: 1px; animation: sup-blink 1.05s steps(1) infinite; }
@keyframes sup-blink { 50% { opacity: 0; } }
.sup-send { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--sup-line-2); color: var(--sup-surface); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1px; transition: background-color .15s ease; }
.sup-send svg { width: 18px; height: 18px; }
.sup-send.on { background: var(--sup-blue); color: #fff; }
.sup-send.is-press { background: #0A74E0; }

/* details */
/* spacing is tuned so all three boxes fit the 680px column even for an unknown number (Save contact / Block row shown) */
.sup-details { border-left: 1px solid var(--sup-line); background: var(--sup-surface); overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sup-box { border: 1px solid var(--sup-line); border-radius: 10px; padding: 12px 14px; background: var(--sup-surface); }
.sup-cust { transition: opacity .14s ease; }
.sup-window .sup-details .sup-box h3 { margin: 0 0 10px; font: 600 13px/1.5 var(--sup-font); letter-spacing: 0; color: var(--sup-ink); display: flex; align-items: center; gap: 8px; }
.sup-window .sup-details .sup-box h3 span:first-child { flex: 1; }
.sup-kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 13px; }
.sup-kv div:nth-child(odd) { color: var(--sup-ink-3); }
.sup-kv div:nth-child(even) { color: var(--sup-ink); font-variant-numeric: tabular-nums; word-break: break-word; }
.sup-notes { margin-top: 10px; padding: 7px 11px; min-height: 34px; border: 1px solid var(--sup-line-2); border-radius: 8px; font-size: 13px; line-height: 1.4; color: var(--sup-ink-2); }
.sup-notes.is-empty::before { content: "Add a note"; color: var(--sup-ink-4); }
.sup-row { display: flex; gap: 8px; margin-top: 8px; }
.sup-row[hidden] { display: none; }
.sup-input { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--sup-ink); background: var(--sup-surface); border: 1px solid var(--sup-line-2); border-radius: 8px; padding: 6px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-hint { font-size: 12.5px; color: var(--sup-ink-3); margin: 0 0 2px; }
.sup-link { color: var(--sup-green-ink); }
.sup-rings { display: flex; justify-content: space-between; gap: 6px; }
.sup-ring { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.sup-dial { position: relative; width: 68px; height: 68px; }
.sup-dial svg { width: 68px; height: 68px; transform: rotate(-90deg); }
.sup-ring-bg { fill: none; stroke: var(--sup-surface-2); stroke-width: 3.4; }
.sup-ring-fg { fill: none; stroke: var(--sup-green); stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.sup-ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sup-ring-label { font-size: 12px; font-weight: 500; text-align: center; }
.sup-ring-sub { font-size: 11px; color: var(--sup-ink-3); text-align: center; }

/* the pointer */
.sup-cursor { position: absolute; left: 0; top: 0; z-index: 9; width: 18px; height: 26px; pointer-events: none; transform: translate(600px, 380px); transition: transform .65s cubic-bezier(.3,.75,.25,1), opacity .25s ease; filter: drop-shadow(0 1px 1px rgba(0,0,0,.28)) drop-shadow(0 5px 8px rgba(0,0,0,.16)); }
.sup-cursor svg { width: 18px; height: 26px; transform-origin: 3px 3px; transition: transform .1s ease; }
.sup-cursor.is-click svg { transform: scale(.84); }
.sup-cursor.is-hidden { opacity: 0; }

/* ---- tablet: rail + thread, no details column ---- */
.sup-stage.is-tablet { aspect-ratio: 720 / 700; }
.sup-stage.is-tablet .sup-window { width: 720px; height: 700px; }
.sup-stage.is-tablet .sup-body { grid-template-columns: 280px minmax(0, 1fr); }
.sup-stage.is-tablet .sup-details { display: none; }
.sup-stage.is-tablet .sup-topnav span:first-child { display: none; }
.sup-stage.is-tablet .sup-url { width: 46%; }
.sup-stage.is-tablet .sup-cursor { transform: translate(500px, 360px); }

/* ---- phone: the console's own phone layout (list → thread push) ---- */
.sup-stage.is-phone { aspect-ratio: 400 / 680; }
.sup-stage.is-phone .sup-window { width: 400px; height: 680px; font-size: 17px; }
.sup-stage.is-phone .sup-chrome { gap: 12px; padding: 0 14px; }
.sup-stage.is-phone .sup-nav { display: none; }
.sup-stage.is-phone .sup-url { position: static; transform: none; flex: 1; width: auto; }
.sup-stage.is-phone .sup-app { grid-template-rows: 60px minmax(0, 1fr); }
.sup-stage.is-phone .sup-app.in-thread { grid-template-rows: minmax(0, 1fr); }
.sup-stage.is-phone .sup-app.in-thread .sup-topbar { display: none; }
.sup-stage.is-phone .sup-topbar { padding: 0 14px; gap: 10px; }
.sup-stage.is-phone .sup-topbar .sup-logo img { height: 27px; }
.sup-stage.is-phone .sup-sep, .sup-stage.is-phone .sup-line-id, .sup-stage.is-phone .sup-topnav { display: none; }
.sup-stage.is-phone .sup-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--sup-ink); margin-right: -8px; }
.sup-stage.is-phone .sup-menu-btn svg { width: 26px; height: 26px; }
.sup-stage.is-phone .sup-body { grid-template-columns: minmax(0, 1fr); position: relative; overflow: hidden; }
.sup-stage.is-phone .sup-rail { position: absolute; inset: 0; border-right: 0; transition: transform .34s cubic-bezier(.2,.7,.2,1); }
.sup-stage.is-phone .sup-thread { position: absolute; inset: 0; transform: translateX(100%); transition: transform .34s cubic-bezier(.2,.7,.2,1); box-shadow: -12px 0 40px -20px rgba(16,18,16,.35); }
.sup-stage.is-phone .sup-app.in-thread .sup-thread { transform: none; }
.sup-stage.is-phone .sup-app.in-thread .sup-rail { transform: translateX(-28%); }
.sup-stage.is-phone .sup-details, .sup-stage.is-phone .sup-cursor, .sup-stage.is-phone .sup-search, .sup-stage.is-phone .sup-rail-head .sup-btn, .sup-stage.is-phone .sup-count, .sup-stage.is-phone .sup-delete { display: none; }
.sup-stage.is-phone .sup-rcpt { order: 0; padding: 0 0 4px; }
.sup-stage.is-phone .sup-rcpt-label { padding: 4px 16px 6px; }
.sup-stage.is-phone .sup-rcpt-row { border-radius: 0; border-width: 1px 0; padding: 16px 14px 16px 10px; }
.sup-stage.is-phone .sup-rcpt-avatar { width: 56px; height: 56px; }
.sup-stage.is-phone .sup-rcpt-name { font-size: 17px; } .sup-stage.is-phone .sup-rcpt-time { font-size: 15px; }
.sup-stage.is-phone .sup-rcpt-chev { width: 16px; height: 16px; } .sup-stage.is-phone .sup-rcpt-preview { font-size: 15px; }
.sup-stage.is-phone .sup-window .sup-rail-head { order: 1; padding: 14px 16px 6px; }
.sup-stage.is-phone .sup-window .sup-rail-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sup-stage.is-phone .sup-convos { order: 2; padding-bottom: 80px; /* room under the list for the compose FAB, as in the console */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent calc(100% - 66px)); /* the row under the FAB fades out instead of running under it */
          mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent calc(100% - 66px)); }
.sup-stage.is-phone .sup-convo { padding: 12px 16px; }
.sup-stage.is-phone .sup-avatar { width: 44px; height: 44px; font-size: 16px; }
.sup-stage.is-phone .sup-handle { font-size: 17px; font-weight: 600; }
.sup-stage.is-phone .sup-when { font-size: 15px; }
.sup-stage.is-phone .sup-preview { font-size: 15px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sup-stage.is-phone .sup-unread { width: 10px; height: 10px; }
.sup-stage.is-phone .sup-fab { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 20px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: var(--sup-blue); color: #fff; box-shadow: 0 8px 24px -6px rgba(10,132,255,.55), 0 2px 6px rgba(16,18,16,.15); z-index: 3; }
.sup-stage.is-phone .sup-fab svg { width: 26px; height: 26px; }
.sup-stage.is-phone .sup-thread-head { padding: 0 6px 0 2px; height: 60px; }
.sup-stage.is-phone .sup-back { display: inline-flex; align-items: center; color: var(--sup-blue); padding: 4px; }
.sup-stage.is-phone .sup-back svg { width: 22px; height: 22px; }
.sup-stage.is-phone .sup-thread-title { justify-content: center; }
.sup-stage.is-phone .sup-thread-title .sup-handle { font-size: 17px; }
.sup-stage.is-phone .sup-icon-btn { display: inline-flex; }
.sup-stage.is-phone .sup-bubbles { padding: 10px 14px 6px; }
.sup-stage.is-phone .sup-stamp { font-size: 12px; margin: 16px 0 8px; }
.sup-stage.is-phone .sup-bubble { max-width: 78%; font-size: 17px; line-height: 1.3; padding: 8px 14px; border-radius: 20px; }
.sup-stage.is-phone .sup-bubble.image { padding: 0; border-radius: 20px; }
.sup-stage.is-phone .sup-img-att { border-radius: 20px; }
.sup-stage.is-phone .sup-meta { font-size: 12px; }
.sup-stage.is-phone .sup-reactions span { font-size: 15px; padding: 2px 8px; }
.sup-stage.is-phone .sup-picker { top: -40px; }
.sup-stage.is-phone .sup-picker span { font-size: 22px; padding: 7px 8px; }
.sup-stage.is-phone .sup-compose { padding: 6px 10px 10px; gap: 8px; }
.sup-stage.is-phone .sup-field { font-size: 17px; min-height: 38px; border-radius: 19px; padding: 8px 14px; }
.sup-stage.is-phone .sup-send, .sup-stage.is-phone .sup-attach { width: 36px; height: 36px; }

/* seeking: no transitions while the loop is fast-forwarded */
.sup-stage.sup-noanim *, .sup-stage.sup-noanim *::before, .sup-stage.sup-noanim *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .sup-stage *, .sup-stage *::before, .sup-stage *::after { animation: none !important; transition: none !important; }
  .sup-cursor { display: none; }
}
@media (max-width: 560px) {
  .imsg-cases .case-wide .sup-media { padding: 6px 10px 28px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .imsg .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imsg .feature:last-child { grid-column: 1 / -1; }
  .imsg .feature:last-child .feature-media { aspect-ratio: 16 / 7; }
  .imsg .agent-grid { grid-template-columns: 1fr; }
  .imsg .agent-ring { --node-w: 136px; width: min(520px, 100%); }
  .imsg .impl-grid { grid-template-columns: 1fr; }
  .imsg .prompt-row { flex-direction: column; align-items: flex-start; }
  .imsg .prompt-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .imsg .feature-grid { grid-template-columns: 1fr; }
  .imsg .feature:last-child .feature-media { aspect-ratio: 4 / 3; }
  .imsg-cases .case-wide .agent-media { padding: 0 10px 14px; }
  .imsg-cases .case-wide .agent-ring { width: 100%; max-width: none; margin: 0; }
  .imsg .api-row { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 6px; }
  .imsg .api-desc { grid-column: 1 / -1; }
  /* the ring is the full viewport width (centred by .agent-left, so it overflows both gutters equally);
     r 36% leaves a 100px node 5px inside each edge on a 390px phone */
  .imsg .agent-ring {
    --node-w: clamp(92px, 27vw, 100px);
    --r: min(36%, calc(50% - var(--node-w) / 2 - 4px));   /* never lets the 3 / 9 o'clock nodes leave the viewport */
    width: calc(100% + 2 * var(--imsg-gutter)); max-width: 460px; margin: 0;
  }
  .imsg .loop-node { padding: 8px 4px; gap: 2px; border-radius: 10px; }
  .imsg .loop-title { font-size: .8rem; letter-spacing: -.02em; }
  .imsg .loop-node .mono { font-size: 10.5px; line-height: 1.35; }
  .imsg .loop-icon { height: 22px; margin-bottom: 2px; }
  .imsg .loop-icon svg { width: 20px; height: 20px; }
  .imsg .loop-icon img { width: 21px; height: 21px; }
  .imsg .loop-icon-pair img { width: 18px; height: 18px; }
  .imsg .prompt-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .imsg .copy-prompt { width: 100%; justify-content: center; }
  .imsg .agent-logos { justify-content: flex-start; }
  .imsg .thread-mock, .imsg .request-mock { padding: 14px 16px; }
}
@media (max-width: 360px) {
  .imsg .agent-ring { --node-w: 84px; }
  .imsg .loop-title { font-size: .74rem; }
  .imsg .loop-node .mono { font-size: 10px; }
}

/* ============================================================
   Pricing
   ============================================================ */
.imsg .plan-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  max-width: 1080px;
}
.imsg .plan { position: relative; display: flex; flex-direction: column; padding: 28px 28px 26px; }
.imsg .plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--imsg-blue, #007AFF); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.imsg .plan.featured { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.imsg .plan-head { margin: 0 0 20px; }
.imsg .plan-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); margin: 0 0 4px; }
.imsg .plan-head .note { margin: 0; }
.imsg .plan-amount { margin: 0; display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.imsg .plan-figure { font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.imsg .plan-period { font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.imsg .plan-terms {
  align-self: center; margin: 16px 0 0; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
  background: #fff; color: #000; border: 1px solid #000;
}
.imsg .plan .perks {
  list-style: none; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--hairline);
  display: grid; gap: 10px;
}
.imsg .plan .perks li { position: relative; padding-left: 24px; font-size: .98rem; color: var(--ink-2); line-height: 1.45; }
.imsg .plan .perks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px;
  background: var(--imsg-blue, #007AFF);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-6" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-6" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}
.imsg .plan .btn { margin-top: auto; justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */
.imsg .faq-layout {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.imsg .faq-head { position: sticky; top: 96px; margin-bottom: 0; }
.imsg .faq-head .sec-sub a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.imsg .faq-head .sec-sub a:hover { color: var(--imsg-blue, #007AFF); }
.imsg .faq-list { max-width: 680px; margin: 0; border-top: 1px solid var(--hairline); }
.imsg .faq-item { border-bottom: 1px solid var(--hairline); }
.imsg .faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  list-style: none; padding: 18px 2px; font-size: 1.02rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.imsg .faq-question::-webkit-details-marker { display: none; }
.imsg .faq-chevron { flex: 0 0 auto; color: var(--ink-3); transition: transform .2s ease; }
.imsg .faq-item[open] .faq-chevron { transform: rotate(180deg); }
/* redesign.css collapses .faq-answer and expects a script to animate it; this
   page has none, so open/closed is purely the <details> state. */
.zs26 .imsg .faq-answer { max-height: none; opacity: 1; overflow: visible; transition: none; padding: 0 2px 20px; max-width: 62ch; }
.imsg .faq-answer p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .imsg .plan-grid { grid-template-columns: 1fr; max-width: 460px; }
  .imsg .faq-layout { grid-template-columns: 1fr; row-gap: 0; }
  .imsg .faq-head { position: static; margin-bottom: 28px; }
  .imsg .faq-list { max-width: none; margin: 0; }
}
@media (max-width: 560px) {
  .imsg .plan-grid { grid-template-columns: 1fr; max-width: 460px; }
  .imsg .plan { padding: 24px 20px 22px; }
  .imsg .faq-question { font-size: 1rem; padding: 16px 0; }
  .zs26 .imsg .faq-answer { padding: 0 0 18px; }
}


/* ============================================================
   Use cases — a horizontal rail of slightly tilted tiles. The first
   tile lines up with the page gutter; the rest run off the right edge.
   ============================================================ */
.imsg-cases .case-rail {
  --rail-pad: max(var(--imsg-gutter), calc((100vw - var(--imsg-maxw)) / 2 + var(--imsg-gutter)));
  position: relative; margin-inline: calc(50% - 50vw);
}
.imsg-cases .case-rail .case-grid {
  position: relative; display: flex; align-items: stretch; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 24px var(--rail-pad) 32px; scroll-padding-inline: var(--rail-pad);
  margin-block: -24px -32px; /* room for the tilt and shadows without moving the section */
  scrollbar-width: none;
}
.imsg-cases .case-rail .case-grid::-webkit-scrollbar { display: none; }
.imsg-cases .case-rail .case { flex: 0 0 auto; width: min(84vw, 420px); scroll-snap-align: start; rotate: -1deg; }
.imsg-cases .case-rail .case:nth-child(even) { rotate: 1deg; }
.imsg-cases .case-rail .case-wide { width: min(84vw, 960px); }
.imsg-cases .case-rail #agent { width: min(84vw, 560px); }   /* just the loop: about as wide as the ring */
.imsg-cases #agent .agent-media { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: stretch; }   /* the ring sits mid-tile beside taller neighbours */

/* scroll hint: a quiet round arrow over the peeking tile, gone at either end */
.imsg-cases .case-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline-2); color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(23,20,13,.12);
  transition: opacity 240ms ease, color 160ms ease, border-color 160ms ease;
}
.imsg-cases .case-arrow[hidden] { display: none; }
.imsg-cases .case-arrow svg { width: 18px; height: 18px; }
.imsg-cases .case-arrow:hover { color: var(--ink); border-color: var(--ink-3); }
.imsg-cases .case-arrow:focus-visible { outline: 3px solid color-mix(in srgb, var(--imsg-blue) 35%, transparent); outline-offset: 2px; }
.imsg-cases .case-arrow.is-off { opacity: 0; pointer-events: none; }
.imsg-cases .case-prev { left: max(12px, calc(var(--rail-pad) - 64px)); }
.imsg-cases .case-next { right: max(12px, calc(var(--rail-pad) - 64px)); }
.imsg-cases .case-rail.is-seen .case-next:not(.is-off) svg { animation: case-nudge 1.4s ease-in-out .4s 2; }
@keyframes case-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 4px 0; } }
@media (max-width: 560px) {
  .imsg-cases .case-rail .case-grid { gap: 16px; } /* phones too: every tile as tall as the tallest */
  .imsg-cases .case-arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .imsg-cases .case-rail.is-seen .case-next svg { animation: none; }
}
