:is(#request, #project-chat).zm-direct {
  --panel: clamp(18px, 2.2vw, 34px);
  --screen: #e7eef0;
  color: #253d35;
  background: linear-gradient(#fafbf8, #eef3ef);
}
.zm-direct [hidden] { display: none !important; }
.zm-direct-sheet {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  border: 1px solid #c3d0c8; border-radius: 23px; overflow: clip; background: white;
  box-shadow: 0 14px 34px -30px #395549;
}
.zm-direct-scene {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.88fr); align-items: center;
  gap: clamp(14px,2vw,30px); padding: var(--panel);
  background: radial-gradient(ellipse at 80% 75%, #c6dfd3, transparent 53%),linear-gradient(130deg,#f0f4ed,#e3ece4);
}
.zm-direct-copy, .zm-direct-form, .zm-direct-device-wrap { min-width: 0; }
.zm-direct .zm-direct-copy h2 { font-size: clamp(32px,3.2vw,48px); line-height: 1.04; max-width: 16ch; }
.zm-direct .zm-direct-copy h2 em { display: block; }
.zm-direct-copy > p, .zm-direct-form .zm-brief-heading p {
  margin-top: 12px; font-size: 16px; line-height: 1.43; max-width: 44ch; color: #465a50;
}
.zm-direct-form { align-self: center; padding: var(--panel); }
.zm-direct-form .zm-brief-heading h3 { font-size: clamp(21px,1.75vw,28px); }
.zm-direct-links { margin-top: 20px; display: grid; gap: 8px; }
.zm-direct-links a {
  display: flex; min-height: 49px; align-items: center; gap: 10px; padding: 8px 13px;
  border: 1px solid #bdced5; border-radius: 13px; color: #254965; background: #f5fbff; text-decoration: none;
}
.zm-direct-links a[data-channel=whatsapp] { background: #f4faf4; border-color: #bfd2c1; color: #294e3b; }
.zm-direct-links a:hover { box-shadow: 0 3px 12px #233d3520; border-color: #7e9893; }
.zm-direct-links img { flex: none; width: 28px; height: 28px; }
.zm-direct-links strong, .zm-direct-links small { display: block; }
.zm-direct-links strong { font-size: 16px; line-height: 1.15; }
.zm-direct-links small { margin-top: 2px; font-size: 13px; line-height: 1.2; color: #455c56; }
.zm-direct-arrow { margin-left: auto; }
.zm-direct-device-wrap { display: grid; place-items: center; padding: 8px 2px 14px; }
.zm-direct-device {
  position: relative; isolation: isolate; width: min(100%, 222px); aspect-ratio: 1216 / 2562;
  filter: drop-shadow(2px 3px 2px #26392e33) drop-shadow(6px 12px 9px #26392e26);
}
.zm-direct-device::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("images/messengers/pixel-6-frame.webp") center / 100% 100% no-repeat;
}
/* Pixel 6 portrait art: Android Developers device art generator.
   https://developer.android.com/distribute/marketing-tools/device-art-generator
   The screen starts at (62,69) in the 1216 × 2562 frame and measures 1080 × 2400.
   A one-pixel bleed under the opaque frame prevents seams at fractional scales. */
.zm-direct-glass {
  position: absolute; inset: 2.65% 6% 3.55% 5%; display: flex; flex-direction: column;
  overflow: hidden; background: var(--screen); border-radius: 5% / 2.25%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.zm-direct-status {
  display: flex; flex: none; align-items: center; gap: 4px; height: 21px; padding: 1px 9px 0;
  color: #34423e; background: #f4f7f5; font-size: 9px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums;
}
.zm-direct-signal { width: 10px; height: 8px; margin-left: auto; background: currentColor; clip-path: polygon(0 100%,100% 0,100% 100%); }
.zm-direct-battery { width: 11px; height: 6px; border: 1px solid currentColor; border-radius: 2px; background: linear-gradient(to right,currentColor 74%,transparent 74%) content-box; padding: 1px; box-sizing: border-box; }
.zm-direct-account { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid #c8d5d2; background: #ffffffad; }
.zm-direct-account img { width: 27px; height: 27px; flex: none; background: white; border-radius: 50%; padding: 2px; }
.zm-direct-account strong, .zm-direct-account small { display: block; }
.zm-direct-account strong { font-size: 13.5px; line-height: 1.2; }
.zm-direct-account small { margin-top: 2px; font-size: 12px; line-height: 1.18; color: #4c6262; }
.zm-direct-screen {
  position: relative; display: grid; align-content: center; flex: 1 1 0; min-height: 0; padding: 13px 10px; gap: 9px;
  align-content: safe center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: radial-gradient(ellipse at 0 20%, #ffffff78, transparent 65%), linear-gradient(145deg, transparent 30%, #728f8417);
}
.zm-direct-bubble {
  width: fit-content; max-width: 93%; padding: 9px 10px; border-radius: 12px 12px 12px 3px;
  background: white; box-shadow: 0 1px 2px #35483c15; font-size: 13.5px; line-height: 1.34; color: #263d36;
}
.zm-direct-bubble.is-mine { margin-left: auto; border-radius: 12px 12px 3px; background: #cfe6d6; }
.zm-direct-bubble strong { display: block; }
.zm-direct-continue {
  display: flex; flex: none; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px;
  margin: 0 8px 3px; padding: 6px 10px; border: 1px solid #c4d2d2; border-radius: 18px;
  background: #f7fbfa; color: #2f535e; text-decoration: none; font-size: 12px; font-weight: 650;
}
.zm-direct-continue:hover { background: white; text-decoration: underline; }
.zm-direct-homebar { flex: none; align-self: center; width: 46px; height: 3px; margin: 7px 0 6px; border-radius: 3px; background: #647570; }
.zm-direct-typing { display: none; }
.zm-direct-picks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.zm-direct-picks button {
  min-height: 44px; padding: 6px 11px; border: 1px solid #abbaaf; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 650; line-height: 1.15; color: #344b40; background: #fff; cursor: pointer;
}
.zm-direct-picks button[aria-pressed=true] { border-color: #8096aa; background: #dde8f4; color: #283e5e; }
.zm-direct--navigator .zm-direct-sheet { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.zm-direct--navigator .zm-direct-scene { grid-template-columns: minmax(175px,.8fr) minmax(0,1fr); background: linear-gradient(140deg,#344761,#536d82); }
.zm-direct--navigator .zm-direct-device-wrap { grid-row: 1; grid-column: 1; }
.zm-direct--navigator .zm-direct-copy { grid-column: 2; }
.zm-direct--navigator .zm-direct-copy h2, .zm-direct--navigator .zm-direct-copy p { color: #f6f8fa; }
.zm-direct--navigator .zm-direct-copy h2 em { color: #d9e9fc; }
.zm-direct--navigator .zm-direct-device { --screen: #e8eef6; }
.zm-direct-menu { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.zm-direct-menu li { counter-increment: steps; padding: 7px 8px; background: #fbfdff; border-radius: 6px; font-size: 13px; font-weight: 650; color: #344d6c; }
.zm-direct-menu li::before { content: counter(steps) ". "; margin-right: 4px; color: #617494; }
.zm-direct-hint { color: #53635f; font-size: 12px; line-height: 1.32; }
.zm-direct--draft .zm-direct-sheet { display: block; max-width: 930px; }
.zm-direct--draft .zm-direct-scene { grid-template-columns: minmax(0,1.4fr) minmax(185px,.75fr); background: radial-gradient(ellipse at 79% 84%,#dbcbb4,transparent 48%),#f4f0e7; }
.zm-direct--draft .zm-direct-links, .zm-direct--channels .zm-direct-links { display: flex; flex-wrap: wrap; }
.zm-direct--draft .zm-direct-device { --screen: #f3f2e9; }
.zm-direct-draftbox { padding: 14px 12px; border-radius: 12px 12px 3px; background: #fff; border: 1px solid #ccd1bf; }
.zm-direct-draftbox small { display: block; margin-bottom: 6px; font-size: 12px; color: #54665a; }
.zm-direct-draftbox p { font-size: 15px; line-height: 1.32; }
.zm-direct--draft .zm-direct-form, .zm-direct--channels .zm-direct-form {
  display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 22px; border-top: 1px solid #c3d0c8;
}
.zm-direct--channels .zm-direct-sheet { display: block; max-width: 980px; }
.zm-direct--channels .zm-direct-scene { grid-template-columns: minmax(0,1fr) minmax(180px,.67fr); background: linear-gradient(100deg,#eef2f7,#d7e4ef); }
.zm-direct--channels[data-preview-channel=whatsapp] .zm-direct-scene { background: linear-gradient(100deg,#eef4ed,#dbe9d9); }
.zm-direct--channels .zm-direct-device { transform: none; --screen: #e2eaf4; }
.zm-direct--channels[data-preview-channel=whatsapp] .zm-direct-device { --screen: #e3eee2; }
.zm-direct-screen [data-chat-thread] { display: grid; gap: 7px; }
.zm-direct--card .zm-direct-scene { background: linear-gradient(145deg,#f3f5ef,#dce6d9); }
.zm-direct--card .zm-direct-device { transform: none; --screen: #f2f5f0; }
.zm-direct-cardmark { display: grid; justify-items: center; padding: 4px; gap: 3px; font-size: 16px; }
.zm-direct-cardmark img { width: 43px; height: 43px; }
.zm-direct-screen .zm-direct-links { margin-top: 2px; }
.zm-direct-screen .zm-direct-links a { padding: 7px; }
@media (prefers-reduced-motion:no-preference) {
  .zm-direct[data-play-chat] .is-mine { animation: zm-chat-arrives .32s ease-out both; }
  .zm-direct[data-play-chat] .is-reply { animation: zm-chat-arrives .32s 1.65s ease-out both; }
  .zm-direct[data-play-chat] .zm-direct-typing { position: absolute; left: 16px; bottom: 18px; display: flex; gap: 4px; padding: 8px; border-radius: 12px; background: white; animation: zm-chat-typing 1.65s both; }
  .zm-direct-typing i { width: 4px; height: 4px; border-radius: 50%; background: #7b8e85; animation: zm-chat-dot .5s ease-in-out 3 alternate; }
  .zm-direct-typing i:nth-child(2) { animation-delay: .12s; }
  .zm-direct-typing i:nth-child(3) { animation-delay: .24s; }
}
@keyframes zm-chat-arrives { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes zm-chat-typing { 0%,100% { opacity: 0; } 20%,82% { opacity: 1; } }
@keyframes zm-chat-dot { to { translate: 0 -2px; } }

@media (min-width:741px) and (max-width:1100px) {
  .zm-direct .zm-direct-sheet { display: block; }
  .zm-direct .zm-direct-scene { padding-inline: clamp(26px,6vw,66px); }
  .zm-direct .zm-direct-form { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 22px; }
  .zm-direct-links { max-width: 360px; }
}
@media (max-width:740px) {
  .zm-direct .zm-direct-sheet { display: block; border-radius: 17px; }
  .zm-direct .zm-direct-scene { display: flex; flex-direction: column; align-items: stretch; gap: 15px; }
  .zm-direct .zm-direct-copy h2 { max-width: none; }
  .zm-direct .zm-direct-copy h2 em { display: inline; }
  .zm-direct .zm-direct-form { display: block; border-top: 1px solid #c3d0c8; }
  .zm-direct .zm-direct-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .zm-direct-links a { flex: 1 1 115px; padding: 7px 8px; gap: 6px; }
  .zm-direct-links small { font-size: 12px; }
  .zm-direct-links img { width: 24px; height: 24px; }
  .zm-direct-device { width: min(100%,210px); }
  .zm-direct--card .zm-direct-links { display: grid; margin: 0; }
}
