.smt-character-page .smt-tool-hero-grid > div:first-child,
.smt-character-page .smt-hub-head,
.smt-character-page .smt-hub-article-body > h2,
.smt-character-guide h1,
.smt-character-guide h2,
.smt-character-guide h3 { text-align: center; }
.smt-character-page .smt-tool-hero .smt-hub-kicker { margin-inline: auto; }
.smt-character-page:not(.smt-character-guide) .smt-tool-hero { padding-block: 138px 42px; }
.smt-character-page:not(.smt-character-guide) .smt-tool-hero h1 { font-size: 52px; }
.smt-character-page #character-counter { padding-top: 52px; }
.smt-character-page [id] { scroll-margin-top: 120px; }
.smt-character-page .smt-hub-section { padding-block: 54px; }
.smt-character-guide .smt-tool-hero { padding-bottom: 30px; }
.smt-character-guide .smt-hub-section { padding-top: 24px; }
.smt-character-hero-preview { background: #fff; border-color: #dcd0f5; }
.smt-character-hero-preview > span { margin-bottom: 15px; }
.smt-character-hero-preview h2 { font-size: 27px; line-height: 1.2; margin: 0 0 18px; text-align: center; }
.smt-character-hero-preview .smt-character-sample {
  border: 1px solid #ded1f7; border-radius: 8px; color: #201d34;
  font-size: 16px; line-height: 1.5; overflow: hidden;
}
.smt-character-sample-row { align-items: center; display: grid; gap: 14px; grid-template-columns: 68px minmax(0,1fr); padding: 18px; }
.smt-character-sample-before { background: #f6f3ff; }
.smt-character-sample-after { background: #eaf9f4; border-top: 1px solid #d5e9e2; }
.smt-character-sample-row strong { color: #5428b2; font-size: 13px; text-transform: uppercase; }
.smt-character-sample-after strong { color: #08785d; }
.smt-character-sample-row > p:empty { display: none; }
.smt-character-sample-row p { color: #201d34; margin: 0; text-align: left; }
.smt-character-hero-preview > p { color: var(--tool-muted); margin: 16px 0 0; text-align: center; }
.smt-character-workspace { background: #fff; border: 1px solid var(--tool-line); border-radius: 8px; box-shadow: 0 16px 44px rgba(76,49,145,.08); padding: clamp(18px,3vw,32px); }
.smt-character-controls { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.smt-character-field { display: flex; flex-direction: column; min-width: 0; }
.smt-character-field label { align-items: center; color: var(--tool-ink); display: flex; flex: 0 0 3em; font-weight: 800; justify-content: center; margin: 0 0 7px; text-align: center; }
.smt-character-field small { color: var(--tool-muted); display: block; font-size: 13px; line-height: 1.45; margin-top: 7px; text-align: center; }
.smt-character-layout { align-items: stretch; display: grid; gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.smt-character-editor-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.smt-character-input-wrap { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.smt-character-input-wrap textarea { flex: 1; font: inherit; line-height: 1.55; min-height: 300px; resize: vertical; width: 100%; }
.smt-character-input-wrap > label { color: var(--tool-ink); display: block; font-weight: 800; margin-bottom: 8px; text-align: center; }
.smt-character-preview-panel { background: #f6f3ff; border: 1px solid #dcd0f5; border-radius: 8px; display: flex; flex-direction: column; min-width: 0; padding: 18px; }
.smt-character-preview-panel > h3 { font-size: 19px; margin: 0 0 13px; text-align: center; }
.smt-character-preview-card { background: #fff; border: 1px solid #e5def7; border-radius: 8px; box-shadow: 0 8px 22px rgba(76,49,145,.07); flex: 1; min-height: 232px; padding: 20px; }
.smt-character-preview-card > strong { color: #5428b2; display: block; font-size: 13px; margin-bottom: 14px; text-align: center; text-transform: uppercase; }
.smt-character-preview-text { color: var(--tool-ink); line-height: 1.55; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.smt-character-preview-text.smt-character-expanded { display: block; overflow: visible; }
.smt-character-preview-panel > button { background: transparent; border: 0; color: #5428b2; cursor: pointer; display: block; font-size: 14px; font-weight: 800; margin: 13px auto 0; padding: 6px; }
.smt-character-preview-panel > button:disabled { cursor: default; opacity: .45; }
.smt-character-preview-panel > p { color: var(--tool-muted); font-size: 13px; line-height: 1.5; margin: 14px 0 0; text-align: center; }
.smt-character-metrics { display: grid; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 22px; }
.smt-character-metric { background: #f7f3ff; border: 1px solid #e2d8fa; border-radius: 8px; min-width: 0; padding: 14px 10px; text-align: center; }
.smt-character-metric:nth-child(2),.smt-character-metric:nth-child(6) { background: #eef7ff; border-color: #cfe4f7; }
.smt-character-metric:nth-child(3),.smt-character-metric:nth-child(7) { background: #eaf9f4; border-color: #bfeadb; }
.smt-character-metric:nth-child(4),.smt-character-metric:nth-child(8) { background: #fff6e8; border-color: #f3d7aa; }
.smt-character-metric strong { color: #151523; display: block; font-size: 25px; line-height: 1.1; }
.smt-character-metric span { color: #535b70; display: block; font-size: 12px; font-weight: 750; margin-top: 5px; }
.smt-character-target-status { background: #eef9f5; border: 1px solid #bfeadb; border-radius: 8px; color: #08785d; font-weight: 750; margin: 14px 0 0; padding: 12px 16px; text-align: center; }
.smt-character-target-status.smt-character-over { background: #fff0ec; border-color: #f7d1c6; color: #a53628; }
.smt-character-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.smt-character-actions .smt-hub-btn { min-width: 140px; padding: 11px 16px; text-align: center; }
.smt-character-status { color: #08785d; min-height: 22px; margin: 18px 0 0; text-align: center; }
.smt-character-workspace-note { color: var(--tool-muted); font-size: 13px; margin: 18px 0 0; text-align: center; }
.smt-character-page .smt-tool-formula-card { display: flex; flex-direction: column; }
.smt-character-page .smt-tool-formula-card p { margin-bottom: 20px; }
.smt-character-page .smt-tool-formula-card code { display: block; margin-top: auto; text-align: center; }
.smt-character-page .smt-tool-formula-card > p:last-child { margin-top: auto; margin-bottom: 0; text-align: center; }
.smt-character-page .smt-tool-formula-card > p:last-child > code { margin-top: 0; }
.smt-character-page .smt-tool-guide-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.smt-character-page .smt-tool-guide-grid > :nth-child(9):nth-last-child(2) { grid-column: 2; }
.smt-character-directory .smt-tool-directory-grid.smt-caption-directory-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.smt-character-page .smt-tool-guide-card > a { align-self: center; }
.smt-character-page .smt-tool-guide-card > p:has(> a) { margin-top: auto !important; text-align: center; }
.smt-character-guide .smt-tool-guide-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
.smt-character-guide .smt-tool-guide-nav a:last-of-type { grid-column: auto; justify-self: stretch; width: auto; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(5) { background: #fff0ec; border-color: #f7d1c6; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(5)::before { background: #b64a32; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(6) { background: #ecf9fa; border-color: #bee7e7; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(6)::before { background: #087a84; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(7) { background: #f0f2ff; border-color: #d5dcff; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(7)::before { background: #4957bf; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(8) { background: #fff0f6; border-color: #f6cddd; }
.smt-character-guide .smt-tool-guide-nav a:nth-of-type(8)::before { background: #a93e71; }
.smt-character-guide .smt-hub-article-body > h2 { margin-top: 48px !important; }
.smt-character-guide .smt-hub-article-body > h2 + p { margin-top: 20px; }
.smt-character-guide .smt-hub-article-body > p + h2 { margin-top: 50px !important; }
.smt-character-guide .smt-hub-faq + h2 { margin-top: 62px !important; }
.smt-character-page .smt-tool-cta .smt-hub-btn { justify-self: center; }
@media (max-width: 1000px) {
  .smt-character-layout { grid-template-columns: 1fr; }
  .smt-character-page .smt-tool-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-character-page .smt-tool-guide-grid > :nth-child(9):nth-last-child(2) { grid-column: auto; }
  .smt-character-directory .smt-tool-directory-grid.smt-caption-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-character-guide .smt-tool-guide-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .smt-character-page:not(.smt-character-guide) .smt-tool-hero { padding-block: 116px 28px; }
  .smt-character-page:not(.smt-character-guide) .smt-tool-hero h1 { font-size: 40px; }
  .smt-character-page #character-counter { padding-top: 40px; }
  .smt-character-sample-row { gap: 8px; grid-template-columns: 1fr; }
  .smt-character-controls,.smt-character-page .smt-tool-guide-grid,.smt-character-guide .smt-tool-guide-links { grid-template-columns: 1fr; }
  .smt-character-directory .smt-tool-directory-grid.smt-caption-directory-grid { grid-template-columns: 1fr; }
  .smt-character-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-character-actions .smt-hub-btn { min-width: 0; width: 100%; }
  .smt-character-input-wrap textarea { min-height: 250px; }
}
