.smt-caption-page .smt-tool-hero-grid > div:first-child { text-align: center; }
.smt-caption-page .smt-tool-hero .smt-hub-kicker { margin-inline: auto; }
.smt-caption-page .smt-hub-head,
.smt-caption-page .smt-hub-article-body > h2,
.smt-caption-page .smt-hub-article-body > h3,
.smt-caption-guide h1,
.smt-caption-guide h2,
.smt-caption-guide h3 { text-align: center; }
.smt-caption-page [id], .smt-caption-guide [id] { scroll-margin-top: 120px; }
.smt-caption-page textarea { font: inherit; line-height: 1.5; }
.smt-caption-page .smt-hub-section { padding-block: 54px; }
.smt-caption-guide .smt-tool-hero { padding-bottom: 30px; }
.smt-caption-guide .smt-hub-section { padding-top: 24px; }
.smt-caption-preview { background: linear-gradient(145deg,#fff 0%,#f6f1ff 100%); }
.smt-caption-preview h2 { font-size: 28px; line-height: 1.2; text-align: center; margin: 0 0 20px; }
.smt-caption-preview-line { background: #efe7ff; border: 1px solid #d8c5ff; border-radius: 8px; padding: 14px 16px; margin-top: 10px; color: #212236; font-weight: 750; }
.smt-caption-preview-line:nth-of-type(2) { background: #eef7ff; border-color: #cfe4f7; }
.smt-caption-preview-line:nth-of-type(3) { background: #eaf9f4; border-color: #bfeadb; }
.smt-caption-preview p { color: var(--tool-muted); margin: 18px 0 0; text-align: center; }
.smt-caption-workspace { background: #fff; border: 1px solid var(--tool-line); border-radius: 12px; box-shadow: 0 18px 50px rgba(76,49,145,.08); padding: clamp(18px,3vw,34px); }
.smt-caption-form { margin: 0; }
.smt-caption-group { border: 1px solid #ded1f7; border-radius: 10px; margin: 0 0 16px; min-width: 0; padding: 22px; background: #f8f5ff; }
.smt-caption-group:nth-of-type(2) { background: #f1f8ff; border-color: #cfe4f7; }
.smt-caption-group:nth-of-type(3) { background: #effaf6; border-color: #bfeadb; }
.smt-caption-group legend { color: #321379; font-size: 19px; font-weight: 850; padding: 0 10px; text-align: center; }
.smt-caption-group:nth-of-type(2) legend { color: #175d9f; }
.smt-caption-group:nth-of-type(3) legend { color: #08785d; }
.smt-caption-fields { display: grid; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.smt-caption-field { min-width: 0; border-right: 1px solid rgba(95,80,125,.16); padding-right: 18px; }
.smt-caption-field:last-child { border-right: 0; padding-right: 0; }
.smt-caption-field label { color: #151523; display: block; font-weight: 800; margin-bottom: 8px; text-align: center; }
.smt-caption-field small { color: #62677a; display: block; font-size: 12px; line-height: 1.4; margin-top: 7px; text-align: center; }
.smt-caption-field textarea { min-height: 82px; resize: vertical; }
.smt-caption-actions,.smt-caption-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.smt-caption-result-actions + p { margin-top: 26px; }
.smt-caption-actions .smt-hub-btn,.smt-caption-result-actions .smt-hub-btn { min-width: 150px; padding: 12px 18px; text-align: center; }
.smt-caption-error { color: #a62b3a; font-weight: 700; text-align: center; }
.smt-caption-status { color: #08785d; text-align: center; }
.smt-caption-result { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e5def7; }
.smt-caption-result h3,.smt-caption-result > p { text-align: center; }
.smt-caption-drafts { display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 22px; }
.smt-caption-draft { background: #fff; border: 1px solid #ded1f7; border-top: 4px solid #7138e8; border-radius: 8px; padding: 18px; min-width: 0; display: flex; flex-direction: column; }
.smt-caption-draft:nth-child(2) { border-top-color: #1677d2; }
.smt-caption-draft:nth-child(3) { border-top-color: #08785d; }
.smt-caption-draft h4 { font-size: 17px; margin: 0 0 12px; text-align: center; }
.smt-caption-draft textarea { min-height: 245px; width: 100%; resize: vertical; flex: 1; }
.smt-caption-draft-meta { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-top: 12px; }
.smt-caption-draft-meta span { color: #62677a; font-size: 12px; }
.smt-caption-draft-meta button { background: #f5f0ff; border: 1px solid #daccff; border-radius: 6px; color: #5325bc; cursor: pointer; font-size: 13px; font-weight: 800; padding: 8px 10px; }
.smt-caption-page .smt-tool-guide-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.smt-caption-page .smt-tool-guide-grid > :nth-child(9):nth-last-child(2) { grid-column: 2; }
.smt-caption-directory .smt-caption-directory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.smt-caption-page .smt-tool-guide-card > a { align-self: center; }
.smt-caption-page .smt-tool-guide-card > p:has(> a) { margin-top: auto !important; text-align: center; }
.smt-caption-page .smt-tool-guide-card > p:empty,.smt-caption-page .smt-tool-guide-grid > p:empty { display: none !important; }
.smt-caption-guide .smt-tool-guide-links { grid-template-columns: repeat(5,minmax(0,1fr)); }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(5):last-of-type { grid-column: 1; justify-self: stretch; width: auto; }
.smt-caption-guide .smt-tool-guide-nav a:last-of-type { grid-column: auto; justify-self: stretch; width: auto; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(5) { background: #fff0ec; border-color: #f7d1c6; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(5)::before { background: #b64a32; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(6) { background: #ecf9fa; border-color: #bee7e7; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(6)::before { background: #087a84; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(7) { background: #f0f2ff; border-color: #d5dcff; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(7)::before { background: #4957bf; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(8) { background: #fff0f6; border-color: #f6cddd; }
.smt-caption-guide .smt-tool-guide-nav a:nth-of-type(8)::before { background: #a93e71; }
.smt-caption-guide .smt-hub-article-body > h2 { margin-top: 48px !important; }
.smt-caption-guide .smt-hub-article-body > h2 + p { margin-top: 20px; }
.smt-caption-guide .smt-hub-article-body > p + h2 { margin-top: 50px !important; }
.smt-caption-guide .smt-hub-faq + h2 { margin-top: 62px !important; }
.smt-caption-page .smt-tool-cta .smt-hub-btn { justify-self: center; }
@media (max-width: 1000px) {
  .smt-caption-fields,.smt-caption-drafts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-caption-page .smt-tool-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-caption-page .smt-tool-guide-grid > :nth-child(9):nth-last-child(2) { grid-column: auto; }
  .smt-caption-directory .smt-caption-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-caption-guide .smt-tool-guide-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-caption-field:nth-child(2) { border-right: 0; padding-right: 0; }
}
@media (max-width: 680px) {
  .smt-caption-fields,.smt-caption-drafts,.smt-caption-page .smt-tool-guide-grid,.smt-caption-guide .smt-tool-guide-links { grid-template-columns: 1fr; }
  .smt-caption-directory .smt-caption-directory-grid { grid-template-columns: 1fr; }
  .smt-caption-field { border-right: 0; border-bottom: 1px solid rgba(95,80,125,.16); padding: 0 0 14px; }
  .smt-caption-field:last-child { border-bottom: 0; padding-bottom: 0; }
  .smt-caption-group { padding: 18px 14px; }
  .smt-caption-actions .smt-hub-btn,.smt-caption-result-actions .smt-hub-btn { min-width: 0; width: 100%; }
}
