.attachment-main .smart-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
/* Keep old links to the instructions without the legacy screenshot above them. */
.attachment-main #sms_tab::before { content: none; }
.attachment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.attachment-actions .attachment-rate, .attachment-text-link, .attachment-demo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #294461;
  font-weight: 700;
  text-underline-offset: 3px;
}
.attachment-rate:hover, .attachment-demo-link:hover, .attachment-text-link:hover { color: #183453; }
.attachment-main .attachment-sms {
  background: #edf2f6;
  border: 1px solid #c1a759;
  border-radius: 12px;
  box-shadow: 0 5px 16px #795d1126;
  overflow: hidden;
}
.attachment-sms figcaption {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  color: #fff; background: #294461;
  font-size: 16px; font-weight: 700;
}
.attachment-sms figcaption::before {
  content: ""; width: 19px; height: 16px; flex-shrink: 0;
  border: 2px solid #ffcc29; border-radius: 5px 5px 5px 1px;
}
.attachment-bubble {
  margin: 18px 20px 20px 14px; padding: 14px 16px 5px;
  background: white; border: 1px solid #d2dce5; border-radius: 12px 12px 12px 2px;
}
.attachment-bubble p { line-height: 1.4; }
.attachment-demo-link { gap: 4px; line-height: 1.25; }
.attachment-scenarios, .attachment-gallery { display: grid; gap: 22px; margin-top: 18px; }
.attachment-scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.attachment-scenarios article { border-top: 2px solid #91abc4; padding: 12px 0 0; }
.attachment-scenarios p { margin-top: 7px; }
.attachment-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 16px; }
.attachment-gallery img { display: block; width: 100%; height: auto; }
.attachment-zoom, .video-cover {
  display: block; position: relative; overflow: hidden;
  background: #fff; border: 1px solid #c6d3df;
}
.attachment-zoom { cursor: zoom-in; }
.attachment-zoom img { height: 174px; object-fit: contain; }
.attachment-gallery figcaption { margin-top: 6px; }
.zoom-mark {
  position: absolute; bottom: 6px; right: 6px; padding: 0 6px;
  background: #294461; color: white; border-radius: 3px;
}
.attachment-video { min-width: 0; }
.video-cover { aspect-ratio: 16 / 9; color: white; }
.video-cover img { height: 100%; object-fit: cover; object-position: top; }
.video-label {
  position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #294461; font-weight: 700; color: #fff;
}
.video-play { color: #ffcc29; }
.attachment-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.attachment-video > a:not(.video-cover) { display: inline-flex; align-items: center; min-height: 44px; }
.attachment-main .attachment-guide:first-of-type { margin-top: 20px; }
@media (max-width: 767px) {
  .attachment-main .smart-hero-grid, .attachment-scenarios, .attachment-gallery { grid-template-columns: 1fr; }
  .attachment-main .smart-hero-grid { gap: 14px; }
  .attachment-sms figcaption { padding: 7px 12px; }
  .attachment-bubble { margin: 8px 12px 10px 8px; padding: 8px 12px 0; }
  .attachment-bubble p { font-size: 16px; }
  .attachment-scenarios { gap: 13px; }
  .attachment-gallery { gap: 16px; }
}
@media (max-width: 479px) {
  .attachment-actions { gap: 2px 10px; }
  .attachment-actions .smart-chat { font-size: 16px; padding-inline: 11px; }
  .attachment-actions .attachment-rate { font-size: 15px; }
}
@media (max-width: 479px) and (max-height: 700px) {
  .attachment-page .header > .container {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: start; gap: 6px; min-height: 106px;
  }
  .attachment-page .header > .container::before,
  .attachment-page .header > .container::after { display: none; }
  .attachment-page .header .column-logo, .attachment-page .header .column-in { width: auto; margin: 0; }
  .attachment-page .header .column-logo .logo { display: block; width: 100%; max-width: 130px; }
  .attachment-page .header .column-logo img { width: 100%; }
  .attachment-page .nav-main:not(.fixed) { top: auto; bottom: 3px; height: 44px; pointer-events: none; }
  .attachment-page .nav-main:not(.fixed) .btn--nav { top: 0; left: 16px; margin: 0; pointer-events: auto; }
  .attachment-page.show-nav .nav-main { pointer-events: auto; }
  .attachment-main .smart-hero { padding-block: 12px; }
  .attachment-main .smart-intro p { margin-block: 6px 8px; line-height: 1.35; }
  .attachment-main .smart-hero-grid { gap: 8px; }
  .attachment-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .attachment-actions .smart-chat { font-size: 15px; line-height: 1.2; padding: 6px 8px; white-space: normal; }
}
