body.zmt-hashtag-generator-page main.container.page-id-1668,
body.zmt-hashtag-generator-page main.container.page-id-1668 > .content-wrap,
body.zmt-hashtag-generator-page main.container.page-id-1668 .content-layout,
body.zmt-hashtag-generator-page main.container.page-id-1668 article,
body.zmt-hashtag-generator-page main.container.page-id-1668 .article-content,
body.zmt-hashtag-generator-page main.container.page-id-1668 .wp-posts-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.zmt-hashtag-generator-page main.container.page-id-1668 article,
body.zmt-hashtag-generator-page main.container.page-id-1668 .article-content {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.zmt-hashtag-generator-page main.container.page-id-1668 .article-header,
body.zmt-hashtag-generator-page main.container.page-id-1668 .article-footer,
body.zmt-hashtag-generator-page main.container.page-id-1668 .article-title,
body.zmt-hashtag-generator-page main.container.page-id-1668 .breadcrumbs {
  display: none !important;
}

body.zmt-hashtag-generator-page {
  overflow-x: clip;
}

.zmthg {
  --hg-ink: #181817;
  --hg-ink-soft: #262624;
  --hg-paper: #fffdf9;
  --hg-canvas: #f1efea;
  --hg-muted: #716e68;
  --hg-muted-light: #9d9991;
  --hg-red: #e52b24;
  --hg-red-dark: #c9211c;
  --hg-red-soft: #fce9e7;
  --hg-divider: rgba(24, 24, 23, 0.09);
  --hg-dark-divider: rgba(255, 255, 255, 0.1);
  --hg-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.055),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 18px 48px -28px rgba(25, 23, 20, 0.2);
  --hg-shadow-hover:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 5px -2px rgba(0, 0, 0, 0.12),
    0 22px 54px -30px rgba(25, 23, 20, 0.24);
  color: var(--hg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.zmthg,
.zmthg * {
  box-sizing: border-box;
}

.zmthg [hidden] {
  display: none !important;
}

.zmthg button,
.zmthg input,
.zmthg textarea {
  font: inherit;
}

.zmthg button,
.zmthg a {
  -webkit-tap-highlight-color: transparent;
}

.zmthg h1,
.zmthg h2,
.zmthg h3,
.zmthg p {
  margin: 0;
}

.zmthg h1,
.zmthg h2,
.zmthg h3 {
  text-wrap: balance;
}

.zmthg p,
.zmthg small,
.zmthg li {
  text-wrap: pretty;
}

.zmthg-app {
  min-height: calc(100vh - 72px);
  padding: 26px 0 72px;
  background:
    linear-gradient(rgba(24, 24, 23, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 23, 0.028) 1px, transparent 1px),
    var(--hg-canvas);
  background-size: 32px 32px;
}

.zmthg-shell {
  width: min(1760px, calc(100vw - 48px));
  margin: 0 auto;
}

.zmthg-commandbar {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 132px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--hg-shadow);
}

.zmthg-title-block {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.zmthg-product-mark {
  position: relative;
  display: grid;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: var(--hg-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px -16px rgba(0, 0, 0, 0.6);
}

.zmthg-product-mark span {
  font-size: 33px;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-1px);
}

.zmthg-product-mark i {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--hg-ink);
  border-radius: 50%;
  background: var(--hg-red);
}

.zmthg-eyebrow {
  margin-bottom: 5px !important;
  color: var(--hg-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.zmthg-title-block h1 {
  color: var(--hg-ink);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.zmthg-subtitle {
  max-width: 680px;
  margin-top: 8px !important;
  color: var(--hg-muted);
  font-size: 14px;
  line-height: 1.65;
}

.zmthg-strategy-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(106px, 1fr));
  min-width: min(100%, 560px);
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: var(--hg-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 28px -20px rgba(0, 0, 0, 0.65);
}

.zmthg-strategy-snapshot > div {
  position: relative;
  min-width: 0;
  padding: 15px 16px;
}

.zmthg-strategy-snapshot > div + div::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.11);
  content: "";
}

.zmthg-strategy-snapshot span,
.zmthg-strategy-snapshot strong,
.zmthg-strategy-snapshot small {
  display: block;
}

.zmthg-strategy-snapshot span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.zmthg-strategy-snapshot strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  background: var(--hg-red);
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost span {
  grid-column: 1 / -1;
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost small {
  padding-left: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  line-height: 1.2;
}

.zmthg-desk {
  display: grid;
  grid-template-columns: minmax(430px, 5fr) minmax(600px, 7fr);
  gap: 16px;
  align-items: start;
}

.zmthg-composer,
.zmthg-results {
  min-width: 0;
  border-radius: 28px;
}

.zmthg-composer {
  position: relative;
  padding: 28px;
  color: #fff;
  background: var(--hg-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 22px 56px -34px rgba(0, 0, 0, 0.68);
}

@media (min-width: 1041px) and (min-height: 980px) {
  .zmthg-composer {
    position: sticky;
    top: 84px;
  }
}

.zmthg-results {
  min-height: 850px;
  padding: 28px;
  background: var(--hg-paper);
  box-shadow: var(--hg-shadow);
}

.zmthg-composer-head,
.zmthg-results-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.zmthg-step-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--hg-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1;
}

.zmthg-step-label i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  background: var(--hg-red);
}

.zmthg-composer-head h2,
.zmthg-results-head h2 {
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.zmthg-composer-head h2 {
  color: #fff;
}

.zmthg-results-head h2 {
  color: var(--hg-ink);
}

.zmthg-composer-head p,
.zmthg-results-head p {
  max-width: 590px;
  margin-top: 7px !important;
  font-size: 13px;
  line-height: 1.65;
}

.zmthg-composer-head p {
  color: rgba(255, 255, 255, 0.54);
}

.zmthg-results-head p {
  color: var(--hg-muted);
}

.zmthg-private-note,
.zmthg-result-state {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.zmthg-private-note {
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.zmthg-private-note i,
.zmthg-result-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.zmthg-private-note i {
  background: #67d4a0;
  box-shadow: 0 0 0 4px rgba(103, 212, 160, 0.1);
}

.zmthg-result-state {
  color: var(--hg-muted);
  background: #f1efea;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.045);
  transition-property: color, background-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.zmthg-result-state i {
  background: #aaa69e;
}

.zmthg-result-state.is-progress {
  color: #9f5116;
  background: #fff1df;
}

.zmthg-result-state.is-progress i {
  background: #e38b27;
  animation: zmthg-pulse 1.2s ease-in-out infinite;
}

.zmthg-result-state.is-success {
  color: #18704b;
  background: #e8f5ee;
}

.zmthg-result-state.is-success i {
  background: #2ca36d;
}

.zmthg-result-state.is-stale {
  color: #98541f;
  background: #fff0df;
}

.zmthg-result-state.is-stale i {
  background: #e68b31;
}

.zmthg-result-state.is-error {
  color: #a42a25;
  background: var(--hg-red-soft);
}

.zmthg-result-state.is-error i {
  background: var(--hg-red);
}

.zmthg-form {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.zmthg-field,
.zmthg-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.zmthg-field > label,
.zmthg-fieldset > legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
}

.zmthg-field > label small,
.zmthg-fieldset > legend small,
.zmthg-content-count {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}

.zmthg-content-count.is-near-limit {
  color: #ffb4ae;
}

.zmthg-textarea-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: var(--hg-ink-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 12px 28px -24px rgba(0, 0, 0, 0.8);
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 170ms;
  transition-timing-function: ease-out;
}

.zmthg-textarea-shell:focus-within {
  border-color: rgba(255, 97, 89, 0.72);
  background: #292927;
  box-shadow:
    0 0 0 3px rgba(229, 43, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 32px -24px rgba(0, 0, 0, 0.9);
}

.zmthg textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 19px 20px 14px;
  border: 0;
  outline: 0;
  color: #fff;
  caret-color: #ff625a;
  font-size: 15px;
  line-height: 1.8;
  background: transparent;
}

.zmthg textarea::placeholder,
.zmthg input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.zmthg-input-guidance {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 13px 8px 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 1.4;
}

.zmthg-input-guidance span:last-child {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
}

.zmthg-input-guidance i {
  color: #78cba3;
  font-style: normal;
}

.zmthg-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zmthg-platform-option,
.zmthg-purpose-option {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.zmthg-platform-option input,
.zmthg-purpose-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.zmthg-platform-surface {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: #242422;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-platform-surface > i {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.08);
}

.zmthg-platform-surface b {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
}

.zmthg-platform-surface b small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-platform-surface em,
.zmthg-purpose-option em {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.zmthg-platform-option:hover .zmthg-platform-surface {
  background: #2a2a28;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface {
  color: var(--hg-ink);
  background: #fffdf9;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 8px 22px -16px rgba(0, 0, 0, 0.8);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface > i {
  color: #fff;
  background: var(--hg-ink);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface b small {
  color: #817d76;
}

.zmthg-platform-option input:checked + .zmthg-platform-surface em {
  background: var(--hg-red);
  box-shadow: 0 0 0 4px rgba(229, 43, 36, 0.11);
}

.zmthg-platform-option input:focus-visible + .zmthg-platform-surface,
.zmthg-purpose-option input:focus-visible + span {
  outline: 2px solid #ff655e;
  outline-offset: 3px;
}

.zmthg-line-input {
  position: relative;
}

.zmthg-line-input input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 104px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  outline: 0;
  color: #fff;
  caret-color: #ff625a;
  font-size: 13px;
  background: #242422;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 170ms;
  transition-timing-function: ease-out;
}

.zmthg-line-input input:focus {
  border-color: rgba(255, 97, 89, 0.72);
  background: #292927;
  box-shadow: 0 0 0 3px rgba(229, 43, 36, 0.14);
}

.zmthg-line-input > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.12em;
  pointer-events: none;
  transform: translateY(-50%);
}

.zmthg-purposes {
  display: grid;
  gap: 7px;
}

.zmthg-purpose-option > span {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 12px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.76);
  background: #242422;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-purpose-option > span > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.055);
}

.zmthg-purpose-option b {
  display: grid;
  gap: 2px;
  font-size: 12px;
  font-weight: 650;
}

.zmthg-purpose-option b small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  font-weight: 450;
  line-height: 1.4;
}

.zmthg-purpose-option em {
  position: static;
  justify-self: end;
}

.zmthg-purpose-option:hover > span {
  background: #2a2a28;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  transform: translateX(2px);
}

.zmthg-purpose-option input:checked + span {
  color: var(--hg-ink);
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.zmthg-purpose-option input:checked + span > i {
  color: #fff;
  background: var(--hg-red);
}

.zmthg-purpose-option input:checked + span b small {
  color: #7b7770;
}

.zmthg-purpose-option input:checked + span em {
  background: var(--hg-red);
  box-shadow: 0 0 0 4px rgba(229, 43, 36, 0.11);
}

.zmthg-runway {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.zmthg-quote {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 13px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
  transition-property: opacity, box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.zmthg-quote > span {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.zmthg-quote strong {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.zmthg-quote strong b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.zmthg-quote p {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-quote.is-loading {
  opacity: 0.62;
}

.zmthg-quote.is-error {
  background: rgba(229, 43, 36, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 104, 97, 0.22);
}

.zmthg-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 18px;
  border: 0;
  border-radius: 18px;
  outline: 0;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  background: var(--hg-red);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 26px -17px rgba(229, 43, 36, 0.88);
  transition-property: background-color, box-shadow, scale, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.zmthg-button:hover {
  color: #fff !important;
  background: #ef342d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 32px -18px rgba(229, 43, 36, 0.95);
}

.zmthg-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px rgba(229, 43, 36, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.zmthg-button:active {
  scale: 0.96;
}

.zmthg-button:disabled {
  color: rgba(255, 255, 255, 0.54) !important;
  cursor: not-allowed;
  background: #3a3a37;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
  scale: 1;
}

.zmthg-button > span:first-child {
  display: grid;
  gap: 3px;
  text-align: left;
}

.zmthg-button b {
  font-size: 14px;
  font-weight: 680;
}

.zmthg-button small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 450;
}

.zmthg-button > i,
.zmthg-button-icons {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.14);
}

.zmthg-button-icons {
  position: relative;
}

.zmthg-button-icons i {
  position: absolute;
  display: grid;
  inset: 0;
  place-items: center;
  font-style: normal;
  transition-property: opacity, scale, filter;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-button-icons .is-spinner,
.zmthg-button-icons .is-check {
  opacity: 0;
  filter: blur(4px);
  scale: 0.25;
}

.zmthg-button-icons .is-spinner {
  width: 17px;
  height: 17px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
}

.zmthg.is-busy .zmthg-button-icons .is-arrow,
.zmthg.is-busy .zmthg-button-icons .is-check {
  opacity: 0;
  filter: blur(4px);
  scale: 0.25;
}

.zmthg.is-busy .zmthg-button-icons .is-spinner {
  opacity: 1;
  filter: blur(0);
  scale: 1;
  animation: zmthg-spin 0.75s linear infinite;
}

.zmthg-status {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 1.55;
}

.zmthg-status > i {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.zmthg-status.is-progress {
  color: #efc28a;
}

.zmthg-status.is-progress > i {
  background: #eba14c;
  animation: zmthg-pulse 1.2s ease-in-out infinite;
}

.zmthg-status.is-success {
  color: #82d8ad;
}

.zmthg-status.is-success > i {
  background: #58c58e;
}

.zmthg-status.is-error {
  color: #ffaaa5;
}

.zmthg-status.is-error > i {
  background: #ff655e;
}

.zmthg-progress {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 4px;
  align-items: center;
  margin-top: 28px;
  padding: 10px;
  border-radius: 18px;
  background: #f3f1ed;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.035);
}

.zmthg-progress > i {
  height: 1px;
  background: rgba(24, 24, 23, 0.12);
}

.zmthg-progress-stage {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--hg-muted-light);
  transition-property: color, background-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.zmthg-progress-stage > span {
  position: relative;
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #8f8b84;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  background: rgba(24, 24, 23, 0.06);
}

.zmthg-progress-stage div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.zmthg-progress-stage b {
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.zmthg-progress-stage small {
  overflow: hidden;
  font-size: 9px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-progress-stage.is-current {
  color: var(--hg-ink);
  background: var(--hg-paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.045), 0 5px 14px -10px rgba(0, 0, 0, 0.35);
}

.zmthg-progress-stage.is-current > span {
  color: #fff;
  background: var(--hg-red);
}

.zmthg-progress-stage.is-done {
  color: #287553;
}

.zmthg-progress-stage.is-done > span {
  color: transparent;
  background: #e3f2e9;
}

.zmthg-progress-stage.is-done > span::after {
  position: absolute;
  color: #27825a;
  font-size: 12px;
  content: "✓";
}

.zmthg-progress-stage.is-skipped {
  color: #9d9991;
  opacity: 0.62;
}

.zmthg-progress-stage.is-error {
  color: #ac302a;
  background: var(--hg-red-soft);
}

.zmthg-empty {
  margin-top: 16px;
}

.zmthg-combination-preview,
.zmthg-final-set {
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: var(--hg-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 18px 40px -30px rgba(0, 0, 0, 0.7);
}

.zmthg-combination-preview {
  padding: 24px;
}

.zmthg-preview-head {
  display: grid;
  gap: 6px;
}

.zmthg-preview-head span,
.zmthg-final-set header span {
  color: #ff6b64;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.14em;
}

.zmthg-preview-head strong {
  font-size: 18px;
  font-weight: 620;
}

.zmthg-preview-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 24px;
}

.zmthg-preview-slots i {
  display: flex;
  min-width: 0;
  height: 54px;
  align-items: flex-end;
  padding: 9px 10px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 52%, transparent 52%) 10px 13px / calc(100% - 20px) 4px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 72%, transparent 72%) 10px 22px / calc(100% - 20px) 3px no-repeat,
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.zmthg-combination-preview > p {
  max-width: 640px;
  margin-top: 18px !important;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  line-height: 1.65;
}

.zmthg-dimension-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: #f5f3ef;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.zmthg-dimension-preview > div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.zmthg-dimension-preview > div:nth-child(odd) {
  border-right: 1px solid rgba(0, 0, 0, 0.055);
}

.zmthg-dimension-preview > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.zmthg-dimension-preview i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--hg-muted);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  background: rgba(24, 24, 23, 0.055);
}

.zmthg-dimension-preview span {
  display: grid;
  gap: 3px;
}

.zmthg-dimension-preview b {
  color: var(--hg-ink);
  font-size: 12px;
  font-weight: 650;
}

.zmthg-dimension-preview small {
  color: var(--hg-muted);
  font-size: 9px;
}

.zmthg-dimension-preview em {
  color: var(--hg-muted-light);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.zmthg-output {
  margin-top: 16px;
}

.zmthg-final-set {
  padding: 26px;
}

.zmthg-final-set > header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.zmthg-final-set header > div {
  display: grid;
  gap: 6px;
}

.zmthg-final-set h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.zmthg-copy-combination {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  padding: 0 13px 0 11px;
  border: 0;
  border-radius: 13px;
  outline: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.zmthg-copy-combination:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.zmthg-copy-combination:focus-visible,
.zmthg-final-tag:focus-visible,
.zmthg-tag-row:focus-visible {
  outline: 2px solid var(--hg-red);
  outline-offset: 3px;
}

.zmthg-copy-combination:active,
.zmthg-final-tag:active {
  scale: 0.96;
}

.zmthg-copy-combination b {
  font-size: 11px;
  font-weight: 620;
}

.zmthg-copy-icons {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.zmthg-copy-icons > span {
  position: absolute;
  display: grid;
  inset: 0;
  place-items: center;
  transition-property: opacity, scale, filter;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-copy-icons svg {
  width: 17px;
  height: 17px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.zmthg-copy-icons .is-success-icon {
  color: #62d298;
  opacity: 0;
  filter: blur(4px);
  scale: 0.25;
}

.is-copied .zmthg-copy-icons .is-copy-icon {
  opacity: 0;
  filter: blur(4px);
  scale: 0.25;
}

.is-copied .zmthg-copy-icons .is-success-icon {
  opacity: 1;
  filter: blur(0);
  scale: 1;
}

.zmthg-final-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.zmthg-final-tag {
  display: grid;
  gap: 4px;
  min-height: 60px;
  padding: 10px 14px;
  border: 0;
  border-radius: 15px;
  outline: 0;
  color: var(--hg-ink);
  text-align: left;
  cursor: pointer;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transition-property: background-color, box-shadow, scale, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.zmthg-final-tag:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #fff, 0 8px 18px -13px rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

.zmthg-final-tag span {
  font-size: 14px;
  font-weight: 680;
}

.zmthg-final-tag small {
  color: #7d7971;
  font-size: 9px;
}

.zmthg-final-tag.is-copied {
  color: #fff;
  background: #2a9365;
}

.zmthg-composition {
  margin-top: 13px !important;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  line-height: 1.5;
}

.zmthg-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 23px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.zmthg-role-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  padding: 8px 0;
}

.zmthg-role-list li > i {
  color: #ff6b64;
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.zmthg-role-list strong {
  display: block;
  color: #fff;
  font-size: 11px;
  font-weight: 630;
}

.zmthg-role-list p {
  margin-top: 3px !important;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  line-height: 1.55;
}

.zmthg-result-summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin: 12px 0;
  padding: 15px 17px;
  border-radius: 16px;
  background: var(--hg-red-soft);
  box-shadow: inset 0 0 0 1px rgba(229, 43, 36, 0.065);
}

.zmthg-result-summary span {
  color: var(--hg-red);
  font-size: 10px;
  font-weight: 700;
}

.zmthg-result-summary p {
  color: #775a57;
  font-size: 11px;
  line-height: 1.6;
}

.zmthg-dimensions {
  overflow: hidden;
  border-radius: 20px;
  background: #f6f4f0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.045);
}

.zmthg-dimension {
  --dimension: #84817a;
  padding: 20px;
}

.zmthg-dimension + .zmthg-dimension {
  border-top: 1px solid rgba(24, 24, 23, 0.075);
}

.zmthg-dimension--core { --dimension: #e52b24; }
.zmthg-dimension--longTail { --dimension: #c77821; }
.zmthg-dimension--industry { --dimension: #3867a8; }
.zmthg-dimension--audience { --dimension: #765a9d; }
.zmthg-dimension--location { --dimension: #25806b; }
.zmthg-dimension--hotspot { --dimension: #ca4f46; }

.zmthg-dimension > header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.zmthg-dimension > header > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  background: var(--dimension);
}

.zmthg-dimension > header div {
  display: grid;
  gap: 2px;
}

.zmthg-dimension > header h3 {
  color: var(--hg-ink);
  font-size: 15px;
  font-weight: 670;
}

.zmthg-dimension > header p {
  color: var(--hg-muted);
  font-size: 9px;
}

.zmthg-dimension > header > span {
  color: var(--dimension);
  font-size: 19px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.zmthg-tag-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: var(--hg-paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.045);
  list-style: none;
}

.zmthg-tag-list li + li {
  border-top: 1px solid rgba(24, 24, 23, 0.065);
}

.zmthg-tag-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(220px, 1.8fr) 54px;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  align-items: center;
  padding: 10px 12px 10px 15px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--hg-ink);
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition-property: background-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.zmthg-tag-row:hover {
  background: #f9f6f1;
}

.zmthg-tag-row.is-copied {
  background: #edf7f1;
}

.zmthg-tag-name {
  overflow-wrap: anywhere;
  color: var(--hg-ink);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.zmthg-tag-explanation {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.zmthg-tag-explanation > b {
  color: var(--dimension);
  font-size: 9px;
  font-weight: 680;
}

.zmthg-tag-explanation > span:not(.zmthg-tag-proof) {
  color: var(--hg-muted);
  font-size: 10px;
  line-height: 1.55;
}

.zmthg-tag-proof {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  color: #2b7e5b;
  font-size: 8px;
}

.zmthg-tag-proof i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #37a472;
}

.zmthg-tag-proof.is-location {
  color: #267465;
}

.zmthg-copy-action {
  display: grid;
  grid-template-columns: 18px auto;
  gap: 4px;
  align-items: center;
  justify-content: end;
  color: var(--hg-muted-light);
}

.zmthg-copy-action small {
  font-size: 9px;
}

.zmthg-tag-row.is-copied .zmthg-copy-action small {
  color: #287a56;
}

.zmthg-no-tags {
  display: flex;
  gap: 10px;
  min-height: 54px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--hg-muted);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.035);
}

.zmthg-no-tags i {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--hg-muted-light);
  font-style: normal;
  background: rgba(24, 24, 23, 0.05);
}

.zmthg-no-tags p {
  font-size: 10px;
  line-height: 1.55;
}

.zmthg-output.is-ready > .zmthg-final-set,
.zmthg-output.is-ready > .zmthg-result-summary,
.zmthg-output.is-ready .zmthg-dimension {
  opacity: 0;
  animation: zmthg-enter 380ms cubic-bezier(0.2, 0, 0, 1) forwards;
}

.zmthg-output.is-ready > .zmthg-result-summary { animation-delay: 80ms; }
.zmthg-output.is-ready .zmthg-dimension:nth-child(1) { animation-delay: 120ms; }
.zmthg-output.is-ready .zmthg-dimension:nth-child(2) { animation-delay: 180ms; }
.zmthg-output.is-ready .zmthg-dimension:nth-child(3) { animation-delay: 240ms; }
.zmthg-output.is-ready .zmthg-dimension:nth-child(4) { animation-delay: 300ms; }
.zmthg-output.is-ready .zmthg-dimension:nth-child(5) { animation-delay: 360ms; }
.zmthg-output.is-ready .zmthg-dimension:nth-child(6) { animation-delay: 420ms; }

.zmthg.has-stale-result .zmthg-output {
  opacity: 0.62;
  filter: saturate(0.75);
  transition-property: opacity, filter;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

@keyframes zmthg-enter {
  from { opacity: 0; filter: blur(4px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes zmthg-spin {
  to { transform: rotate(360deg); }
}

@keyframes zmthg-pulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@media (max-width: 1240px) {
  .zmthg-commandbar {
    grid-template-columns: 1fr;
  }

  .zmthg-strategy-snapshot {
    width: 100%;
    min-width: 0;
  }

  .zmthg-desk {
    grid-template-columns: minmax(400px, 0.88fr) minmax(540px, 1.12fr);
  }
}

@media (max-width: 1040px) {
  .zmthg-shell {
    width: min(960px, calc(100vw - 32px));
  }

  .zmthg-desk {
    grid-template-columns: 1fr;
  }

  .zmthg-composer {
    position: relative;
    top: auto;
  }

  .zmthg-results {
    min-height: 0;
  }

  .zmthg-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zmthg-platform-surface {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body.zmt-hashtag-generator-page {
    background: var(--hg-canvas, #f1efea);
  }

  .zmthg-app {
    padding: 12px 0 40px;
    background-size: 24px 24px;
  }

  .zmthg-shell {
    width: calc(100vw - 24px);
  }

  .zmthg-commandbar {
    min-height: 0;
    gap: 20px;
    margin-bottom: 10px;
    padding: 18px;
    border-radius: 20px;
  }

  .zmthg-title-block {
    align-items: flex-start;
  }

  .zmthg-product-mark {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .zmthg-product-mark span {
    font-size: 25px;
  }

  .zmthg-product-mark i {
    right: 6px;
    bottom: 6px;
    width: 9px;
    height: 9px;
  }

  .zmthg-title-block h1 {
    font-size: 28px;
  }

  .zmthg-subtitle {
    font-size: 12px;
  }

  .zmthg-strategy-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }

  .zmthg-strategy-snapshot > div:nth-child(3)::before {
    display: none;
  }

  .zmthg-strategy-snapshot > div:nth-child(-n + 2)::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    content: "";
  }

  .zmthg-composer,
  .zmthg-results {
    padding: 20px;
    border-radius: 22px;
  }

  .zmthg-composer-head,
  .zmthg-results-head {
    display: grid;
  }

  .zmthg-private-note,
  .zmthg-result-state {
    justify-self: start;
  }

  .zmthg-form {
    gap: 21px;
    margin-top: 24px;
  }

  .zmthg textarea {
    min-height: 190px;
    padding: 16px;
    font-size: 14px;
  }

  .zmthg-input-guidance {
    display: grid;
    gap: 3px;
    padding: 9px 15px;
  }

  .zmthg-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmthg-quote {
    grid-template-columns: auto 1fr;
  }

  .zmthg-quote p {
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
  }

  .zmthg-progress {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 7px;
  }

  .zmthg-progress > i {
    display: none;
  }

  .zmthg-progress-stage {
    display: grid;
    gap: 5px;
    min-height: 70px;
    justify-items: center;
    text-align: center;
  }

  .zmthg-progress-stage div {
    gap: 1px;
  }

  .zmthg-progress-stage small {
    white-space: normal;
  }

  .zmthg-combination-preview,
  .zmthg-final-set {
    border-radius: 18px;
  }

  .zmthg-combination-preview,
  .zmthg-final-set {
    padding: 20px;
  }

  .zmthg-preview-slots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .zmthg-dimension-preview {
    grid-template-columns: 1fr;
  }

  .zmthg-dimension-preview > div:nth-child(odd) {
    border-right: 0;
  }

  .zmthg-dimension-preview > div:nth-last-child(2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  }

  .zmthg-final-set > header {
    display: grid;
  }

  .zmthg-copy-combination {
    justify-self: start;
  }

  .zmthg-role-list {
    grid-template-columns: 1fr;
  }

  .zmthg-result-summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .zmthg-dimension {
    padding: 16px;
  }

  .zmthg-tag-row {
    grid-template-columns: 1fr 42px;
    gap: 9px;
    min-height: 82px;
    padding: 12px;
  }

  .zmthg-tag-name {
    grid-column: 1;
  }

  .zmthg-tag-explanation {
    grid-column: 1;
  }

  .zmthg-copy-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }

  .zmthg-copy-action small {
    display: none;
  }
}

@media (max-width: 420px) {
  .zmthg-shell {
    width: calc(100vw - 16px);
  }

  .zmthg-commandbar,
  .zmthg-composer,
  .zmthg-results {
    padding: 17px;
  }

  .zmthg-title-block {
    gap: 12px;
  }

  .zmthg-title-block h1 {
    font-size: 25px;
  }

  .zmthg-subtitle {
    line-height: 1.55;
  }

  .zmthg-strategy-snapshot > div {
    padding: 12px;
  }

  .zmthg-platform-surface {
    min-height: 62px;
    padding: 9px;
  }

  .zmthg-platform-surface > i {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .zmthg-purpose-option > span {
    padding-right: 10px;
  }

  .zmthg-final-tag {
    width: 100%;
  }

  .zmthg-dimension > header {
    grid-template-columns: 34px 1fr auto;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zmthg *,
  .zmthg *::before,
  .zmthg *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Decision clarity final cascade. */
.zmthg .zmthg-platform-option > input[type="radio"],
.zmthg .zmthg-purpose-option > input[type="radio"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  appearance: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  white-space: nowrap !important;
}

.zmthg .zmthg-purpose-option em {
  display: none !important;
}

.zmthg .zmthg-purposes {
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.07),
    0 8px 20px -18px rgba(28, 30, 27, 0.32);
}

.zmthg .zmthg-purpose-option > span {
  position: relative;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  min-height: 76px;
  padding: 14px 18px;
}

.zmthg .zmthg-purpose-option > span::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--hg-red);
  content: '';
  opacity: 0;
  transform: scaleY(0.35);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg .zmthg-purpose-option > span > i {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.zmthg .zmthg-purpose-option > span > i svg {
  width: 20px;
  height: 20px;
}

.zmthg .zmthg-purpose-option b {
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.zmthg .zmthg-purpose-option b small {
  color: #858a83;
  font-size: 11px;
  font-weight: 460;
  line-height: 1.45;
  text-wrap: pretty;
}

.zmthg .zmthg-purpose-option input:checked + span::before {
  opacity: 1;
  transform: scaleY(1);
}

.zmthg .zmthg-purpose-option input:checked + span {
  background: #262824;
}

.zmthg .zmthg-purpose-option input:checked + span > i {
  background: var(--hg-red);
  box-shadow: 0 8px 16px -12px rgba(231, 53, 45, 0.9);
}

.zmthg .zmthg-runway {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-top: 2px;
}

.zmthg .zmthg-quote {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  min-height: 48px;
  align-items: center;
  padding: 9px 4px;
  overflow: visible;
  border-radius: 0;
  color: #746a5e;
  background: transparent;
  box-shadow: none;
}

.zmthg .zmthg-quote::before {
  display: none;
}

.zmthg .zmthg-quote > span {
  align-self: center;
  color: #7c766d;
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
}

.zmthg .zmthg-quote strong {
  grid-column: auto;
  grid-row: auto;
  align-self: center;
  color: #8d4e20;
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.zmthg .zmthg-quote strong b {
  color: #b85d18;
  font-size: 25px;
  font-weight: 760;
}

.zmthg .zmthg-quote p {
  grid-column: auto;
  min-width: 0;
  margin: 0;
  padding-left: 14px;
  overflow: visible;
  border-left: 1px solid #e5e0d7;
  color: #8d8a83;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  text-wrap: pretty;
}

.zmthg .zmthg-quote.is-error {
  color: #a63630;
  background: transparent;
  box-shadow: none;
}

.zmthg .zmthg-button {
  min-height: 66px;
  padding: 11px 14px 11px 20px;
  border-radius: 17px;
}

.zmthg .zmthg-button b {
  font-size: 16px;
  font-weight: 720;
}

.zmthg .zmthg-button small {
  font-size: 11px;
  line-height: 1.35;
}

.zmthg .zmthg-button:disabled {
  color: #484b46 !important;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(231, 53, 45, 0.22),
    0 8px 20px -18px rgba(231, 53, 45, 0.52);
}

.zmthg .zmthg-button:disabled small {
  color: #99948c;
}

.zmthg .zmthg-button:disabled .zmthg-button-icons {
  color: var(--hg-red);
  background: #fff0ed;
}

.zmthg .zmthg-category-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zmthg .zmthg-category-overview__item {
  --category-color: #e7352d;
  --category-soft: #fff0ed;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 12px;
  min-height: 88px;
  align-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border-radius: 16px;
  color: #3e423d;
  background: linear-gradient(135deg, var(--category-soft) 0%, #fff 56%);
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.055),
    0 8px 18px -17px rgba(28, 30, 27, 0.3);
}

.zmthg .zmthg-category-overview__item + .zmthg-category-overview__item::before,
.zmthg .zmthg-category-overview__item::after {
  display: none;
}

.zmthg .zmthg-category-overview__item > i {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  border-radius: 13px;
  color: var(--category-color);
  background: var(--category-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.zmthg .zmthg-category-overview__item > i svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.zmthg .zmthg-category-overview__item > span {
  display: grid;
  grid-column: auto;
  gap: 5px;
  overflow: visible;
  color: inherit;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.zmthg .zmthg-category-overview__item > span b {
  color: #353934;
  font-size: 15px;
  font-weight: 710;
}

.zmthg .zmthg-category-overview__item > span small {
  color: #858a83;
  font-size: 11px;
  font-weight: 460;
  line-height: 1.35;
  text-wrap: pretty;
}

.zmthg .zmthg-category-overview__item > strong {
  display: none;
  position: static;
  align-self: center;
  padding: 5px 7px;
  border-radius: 999px;
  color: #a09f99;
  font-size: 10px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(28, 30, 27, 0.055);
}

.zmthg .zmthg-category-overview__item.is-long-tail {
  --category-color: #b96a19;
  --category-soft: #fff5e6;
}

.zmthg .zmthg-category-overview__item.is-industry {
  --category-color: #376ca9;
  --category-soft: #eef5ff;
}

.zmthg .zmthg-category-overview__item.is-audience {
  --category-color: #705795;
  --category-soft: #f4effa;
}

.zmthg .zmthg-category-overview__item.is-location {
  --category-color: #247c65;
  --category-soft: #edf8f4;
}

.zmthg .zmthg-category-overview__item.is-hotspot {
  --category-color: #c9564f;
  --category-soft: #fff1ef;
}

.zmthg .zmthg-category-overview.is-resolved .zmthg-category-overview__item {
  color: #3d423c;
  background: linear-gradient(135deg, var(--category-soft) 0%, #fff 56%);
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.055),
    0 8px 18px -17px rgba(28, 30, 27, 0.3);
}

.zmthg .zmthg-category-overview.is-resolved .zmthg-category-overview__item > strong {
  display: inline-flex;
  color: var(--category-color);
  background: var(--category-soft);
  box-shadow: none;
}

.zmthg .zmthg-category-overview.is-resolved .zmthg-category-overview__item.is-empty {
  color: #8c918b;
  background: #faf9f6;
}

@media (max-width: 720px) {
  .zmthg .zmthg-purpose-option > span {
    min-height: 72px;
    padding: 12px 14px;
  }

  .zmthg .zmthg-quote {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 8px 2px 10px;
  }

  .zmthg .zmthg-quote strong {
    justify-self: end;
  }

  .zmthg .zmthg-quote p {
    grid-column: 1 / -1;
    padding-top: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .zmthg .zmthg-category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .zmthg .zmthg-category-overview__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    min-height: 92px;
    padding: 13px;
  }

  .zmthg .zmthg-category-overview__item > i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .zmthg .zmthg-category-overview__item > i svg {
    width: 18px;
    height: 18px;
  }

  .zmthg .zmthg-category-overview__item > span b {
    font-size: 14px;
  }

  .zmthg .zmthg-category-overview__item > span small {
    font-size: 10px;
  }

  .zmthg .zmthg-category-overview__item > strong {
    grid-column: 2;
    justify-self: start;
    margin-top: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zmthg *,
  .zmthg *::before,
  .zmthg *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Decision clarity repair: one control, one action hierarchy, readable taxonomy. */
.zmthg .zmthg-platform-option > input[type="radio"],
.zmthg .zmthg-purpose-option > input[type="radio"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  appearance: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.zmthg-purposes {
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.07),
    0 8px 20px -18px rgba(28, 30, 27, 0.32);
}

.zmthg-purpose-option > span {
  position: relative;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  min-height: 76px;
  padding: 14px 18px;
}

.zmthg-purpose-option > span::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--hg-red);
  content: '';
  opacity: 0;
  transform: scaleY(0.35);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-purpose-option > span > i {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.zmthg-purpose-option > span > i svg {
  width: 20px;
  height: 20px;
}

.zmthg-purpose-option b {
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.zmthg-purpose-option b small {
  color: #858a83;
  font-size: 11px;
  font-weight: 460;
  line-height: 1.45;
  text-wrap: pretty;
}

.zmthg-purpose-option input:checked + span::before {
  opacity: 1;
  transform: scaleY(1);
}

.zmthg-purpose-option input:checked + span {
  background: #262824;
}

.zmthg-purpose-option input:checked + span > i {
  background: var(--hg-red);
  box-shadow: 0 8px 16px -12px rgba(231, 53, 45, 0.9);
}

.zmthg-runway {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-top: 2px;
}

.zmthg-quote {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  min-height: 48px;
  align-items: center;
  padding: 9px 4px;
  overflow: visible;
  border-radius: 0;
  color: #746a5e;
  background: transparent;
  box-shadow: none;
}

.zmthg-quote::before {
  display: none;
}

.zmthg-quote > span {
  align-self: center;
  color: #7c766d;
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
}

.zmthg-quote strong {
  grid-column: auto;
  grid-row: auto;
  align-self: center;
  color: #8d4e20;
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.zmthg-quote strong b {
  color: #b85d18;
  font-size: 25px;
  font-weight: 760;
}

.zmthg-quote p {
  grid-column: auto;
  min-width: 0;
  margin: 0;
  padding-left: 14px;
  overflow: visible;
  border-left: 1px solid #e5e0d7;
  color: #8d8a83;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  text-wrap: pretty;
}

.zmthg-quote.is-error {
  color: #a63630;
  background: transparent;
  box-shadow: none;
}

.zmthg-button {
  min-height: 66px;
  padding: 11px 14px 11px 20px;
  border-radius: 17px;
}

.zmthg-button b {
  font-size: 16px;
  font-weight: 720;
}

.zmthg-button small {
  font-size: 11px;
  line-height: 1.35;
}

.zmthg-button:disabled {
  color: #484b46 !important;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(231, 53, 45, 0.22),
    0 8px 20px -18px rgba(231, 53, 45, 0.52);
}

.zmthg-button:disabled small {
  color: #99948c;
}

.zmthg-button:disabled .zmthg-button-icons {
  color: var(--hg-red);
  background: #fff0ed;
}

.zmthg-category-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zmthg-category-overview__item {
  --category-color: #e7352d;
  --category-soft: #fff0ed;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 12px;
  min-height: 88px;
  align-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border-radius: 16px;
  color: #3e423d;
  background: linear-gradient(135deg, var(--category-soft) 0%, #fff 56%);
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.055),
    0 8px 18px -17px rgba(28, 30, 27, 0.3);
}

.zmthg-category-overview__item + .zmthg-category-overview__item::before,
.zmthg-category-overview__item::after {
  display: none;
}

.zmthg-category-overview__item > i {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  border-radius: 13px;
  color: var(--category-color);
  background: var(--category-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.zmthg-category-overview__item > i svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.zmthg-category-overview__item > span {
  display: grid;
  grid-column: auto;
  gap: 5px;
  overflow: visible;
  color: inherit;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.zmthg-category-overview__item > span b {
  color: #353934;
  font-size: 15px;
  font-weight: 710;
}

.zmthg-category-overview__item > span small {
  color: #858a83;
  font-size: 11px;
  font-weight: 460;
  line-height: 1.35;
  text-wrap: pretty;
}

.zmthg-category-overview__item > strong {
  position: static;
  align-self: center;
  padding: 5px 7px;
  border-radius: 999px;
  color: #a09f99;
  font-size: 10px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(28, 30, 27, 0.055);
}

.zmthg-category-overview__item.is-long-tail {
  --category-color: #b96a19;
  --category-soft: #fff5e6;
}

.zmthg-category-overview__item.is-industry {
  --category-color: #376ca9;
  --category-soft: #eef5ff;
}

.zmthg-category-overview__item.is-audience {
  --category-color: #705795;
  --category-soft: #f4effa;
}

.zmthg-category-overview__item.is-location {
  --category-color: #247c65;
  --category-soft: #edf8f4;
}

.zmthg-category-overview__item.is-hotspot {
  --category-color: #c9564f;
  --category-soft: #fff1ef;
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item {
  color: #3d423c;
  background: linear-gradient(135deg, var(--category-soft) 0%, #fff 56%);
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.055),
    0 8px 18px -17px rgba(28, 30, 27, 0.3);
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item > strong {
  color: var(--category-color);
  background: var(--category-soft);
  box-shadow: none;
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item.is-empty {
  color: #8c918b;
  background: #faf9f6;
}

@media (max-width: 720px) {
  .zmthg-purpose-option > span {
    min-height: 72px;
    padding: 12px 14px;
  }

  .zmthg-quote {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 8px 2px 10px;
  }

  .zmthg-quote strong {
    justify-self: end;
  }

  .zmthg-quote p {
    grid-column: 1 / -1;
    padding-top: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .zmthg-category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .zmthg-category-overview__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    min-height: 92px;
    padding: 13px;
  }

  .zmthg-category-overview__item > i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .zmthg-category-overview__item > i svg {
    width: 18px;
    height: 18px;
  }

  .zmthg-category-overview__item > span b {
    font-size: 14px;
  }

  .zmthg-category-overview__item > span small {
    font-size: 10px;
  }

  .zmthg-category-overview__item > strong {
    grid-column: 2;
    justify-self: start;
    margin-top: -3px;
  }
}

/* Light workspace refresh: inputs stay quiet, results carry the emphasis. */
.zmthg {
  --hg-ink: #20242a;
  --hg-ink-soft: #343941;
  --hg-paper: #ffffff;
  --hg-canvas: #f4f5f7;
  --hg-muted: #6f7680;
  --hg-muted-light: #9ba1aa;
  --hg-red: #e8322b;
  --hg-red-dark: #c92520;
  --hg-red-soft: #fff0ef;
  --hg-divider: rgba(32, 36, 42, 0.08);
  --hg-shadow:
    0 0 0 1px rgba(20, 24, 30, 0.045),
    0 2px 5px -3px rgba(20, 24, 30, 0.1),
    0 24px 56px -38px rgba(20, 24, 30, 0.22);
  --hg-shadow-hover:
    0 0 0 1px rgba(20, 24, 30, 0.075),
    0 5px 12px -7px rgba(20, 24, 30, 0.14),
    0 28px 64px -40px rgba(20, 24, 30, 0.25);
}

.zmthg-app {
  padding: 24px 0 72px;
  background: linear-gradient(180deg, #f8f9fa 0, var(--hg-canvas) 34%, #f6f7f8 100%);
}

.zmthg-commandbar {
  min-height: 116px;
  margin-bottom: 14px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--hg-shadow);
}

.zmthg-product-mark {
  flex-basis: 62px;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  color: var(--hg-red);
  background: #fff3f2;
  box-shadow:
    0 0 0 1px rgba(232, 50, 43, 0.08),
    0 10px 24px -17px rgba(232, 50, 43, 0.45);
}

.zmthg-product-mark i {
  border-color: #fff3f2;
}

.zmthg-title-block h1 {
  font-size: clamp(28px, 2.7vw, 40px);
}

.zmthg-strategy-snapshot {
  color: var(--hg-ink);
  background: #f7f8f9;
  box-shadow:
    0 0 0 1px rgba(20, 24, 30, 0.055),
    0 8px 24px -20px rgba(20, 24, 30, 0.24);
}

.zmthg-strategy-snapshot > div + div::before,
.zmthg-strategy-snapshot > div:nth-child(-n + 2)::after {
  background: rgba(32, 36, 42, 0.08);
}

.zmthg-strategy-snapshot span {
  color: #8b9199;
}

.zmthg-strategy-snapshot strong {
  color: var(--hg-ink);
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost {
  background: #fff0ef;
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost strong {
  color: var(--hg-red);
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost small {
  color: #bd6b66;
}

.zmthg-desk {
  grid-template-columns: minmax(430px, 5fr) minmax(600px, 7fr);
  gap: 14px;
}

.zmthg-composer,
.zmthg-results {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--hg-shadow);
}

.zmthg-composer {
  position: relative;
  top: auto;
  padding: 26px;
  color: var(--hg-ink);
}

.zmthg-results {
  min-height: 760px;
  padding: 26px;
}

.zmthg-composer-head h2,
.zmthg-results-head h2 {
  color: var(--hg-ink);
}

.zmthg-composer-head p,
.zmthg-results-head p {
  color: var(--hg-muted);
}

.zmthg-private-note {
  color: #34745d;
  background: #eef8f3;
  box-shadow: inset 0 0 0 1px rgba(45, 133, 96, 0.08);
}

.zmthg-private-note i {
  background: #42ad7c;
  box-shadow: 0 0 0 4px rgba(66, 173, 124, 0.1);
}

.zmthg-results-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hg-divider);
}

.zmthg-form {
  gap: 22px;
  margin-top: 25px;
}

.zmthg-field > label,
.zmthg-fieldset > legend {
  color: #3a3f46;
}

.zmthg-field > label small,
.zmthg-fieldset > legend small,
.zmthg-content-count {
  color: #9298a1;
}

.zmthg-content-count.is-near-limit {
  color: var(--hg-red);
}

.zmthg-textarea-shell {
  border: 1px solid #dfe2e6;
  border-radius: 18px;
  background: #fafbfc;
  box-shadow:
    inset 0 1px 2px rgba(20, 24, 30, 0.025),
    0 6px 18px -18px rgba(20, 24, 30, 0.28);
}

.zmthg-textarea-shell:focus-within {
  border-color: rgba(232, 50, 43, 0.58);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(232, 50, 43, 0.09),
    0 12px 28px -24px rgba(20, 24, 30, 0.3);
}

.zmthg textarea {
  min-height: 180px;
  padding: 17px 18px 12px;
  color: var(--hg-ink);
  caret-color: var(--hg-red);
  background: transparent;
}

.zmthg textarea::placeholder,
.zmthg input::placeholder {
  color: #a7acb4;
}

.zmthg-input-guidance {
  min-height: 38px;
  padding: 8px 12px 8px 17px;
  border-top-color: #e8eaed;
  color: #9298a1;
  background: #f7f8fa;
}

.zmthg-input-guidance i {
  color: #3f9c77;
}

.zmthg-platform-surface,
.zmthg-purpose-option > span {
  color: #3f444b;
  background: #f7f8f9;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.07);
}

.zmthg-platform-surface > i,
.zmthg-purpose-option > span > i {
  color: #626871;
  background: #eceef1;
}

.zmthg-platform-surface b small,
.zmthg-purpose-option b small {
  color: #858b94;
}

.zmthg-platform-surface em,
.zmthg-purpose-option em {
  box-shadow: inset 0 0 0 1px rgba(32, 36, 42, 0.25);
}

.zmthg-platform-option:hover .zmthg-platform-surface,
.zmthg-purpose-option:hover > span {
  color: var(--hg-ink);
  background: #fff;
  box-shadow: var(--hg-shadow-hover);
  transform: translateY(-1px);
}

.zmthg-purpose-option:hover > span {
  transform: translateX(2px);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface,
.zmthg-purpose-option input:checked + span {
  color: var(--hg-ink);
  background: #fff5f4;
  box-shadow:
    inset 0 0 0 1px rgba(232, 50, 43, 0.28),
    0 8px 22px -18px rgba(232, 50, 43, 0.42);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface > i,
.zmthg-purpose-option input:checked + span > i {
  color: #fff;
  background: var(--hg-red);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface b small,
.zmthg-purpose-option input:checked + span b small {
  color: #856f6e;
}

.zmthg-line-input input {
  border-color: #dfe2e6;
  color: var(--hg-ink);
  caret-color: var(--hg-red);
  background: #fafbfc;
  box-shadow: inset 0 1px 2px rgba(20, 24, 30, 0.025);
}

.zmthg-line-input input:focus {
  border-color: rgba(232, 50, 43, 0.58);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 50, 43, 0.09);
}

.zmthg-line-input > span {
  color: #b0b4bb;
}

.zmthg-quote {
  color: #777e87;
  background: #f6f7f8;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.065);
}

.zmthg-quote strong {
  color: var(--hg-ink);
}

.zmthg-quote p {
  color: #8c929b;
}

.zmthg-quote.is-error {
  background: #fff4f3;
  box-shadow: inset 0 0 0 1px rgba(232, 50, 43, 0.16);
}

.zmthg-button:focus-visible {
  outline-color: var(--hg-red-dark);
  box-shadow:
    0 0 0 5px rgba(232, 50, 43, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.zmthg-button:disabled {
  color: #8f959d !important;
  background: #e9ebee;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.045);
}

.zmthg-button:disabled small {
  color: #a1a6ae;
}

.zmthg-button:disabled .zmthg-button-icons {
  color: #8f959d;
  background: rgba(32, 36, 42, 0.06);
}

.zmthg-status {
  color: #8b9199;
}

.zmthg-status > i {
  background: #b1b6bd;
}

.zmthg-status.is-progress {
  color: #a05d22;
}

.zmthg-status.is-success {
  color: #287354;
}

.zmthg-status.is-error {
  color: #b62e28;
}

.zmthg-empty {
  display: grid;
  min-height: 650px;
  margin-top: 18px;
  place-items: center;
  border-radius: 18px;
  color: #e7e9ec;
  background:
    radial-gradient(circle at 50% 46%, rgba(232, 50, 43, 0.028), transparent 32%),
    #fafbfc;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.045);
}

.zmthg-empty > span {
  font-size: 68px;
  font-weight: 650;
  line-height: 1;
  transition-property: color, opacity, scale;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg.is-busy .zmthg-empty > span {
  color: rgba(232, 50, 43, 0.3);
  opacity: 0.8;
  scale: 1.04;
}

.zmthg-output {
  margin-top: 18px;
}

.zmthg-final-set {
  color: var(--hg-ink);
  background: #fff;
  box-shadow: var(--hg-shadow);
}

.zmthg-final-set h3,
.zmthg-role-list strong {
  color: var(--hg-ink);
}

.zmthg-final-set header span,
.zmthg-role-list li > i {
  color: var(--hg-red);
}

.zmthg-copy-combination {
  color: #fff;
  background: var(--hg-red);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px -16px rgba(232, 50, 43, 0.72);
}

.zmthg-copy-combination:hover {
  background: #ef3b34;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 13px 26px -17px rgba(232, 50, 43, 0.8);
}

.zmthg-final-tag {
  color: var(--hg-ink);
  background: #f7f8fa;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.065);
}

.zmthg-final-tag:hover {
  background: #fff4f3;
  box-shadow:
    inset 0 0 0 1px rgba(232, 50, 43, 0.2),
    0 8px 18px -14px rgba(232, 50, 43, 0.38);
}

.zmthg-final-tag small {
  color: #7e858e;
}

.zmthg-composition,
.zmthg-role-list p {
  color: #7d848d;
}

.zmthg-role-list {
  border-top-color: rgba(32, 36, 42, 0.08);
}

.zmthg-result-summary {
  background: #fff5f4;
  box-shadow: inset 0 0 0 1px rgba(232, 50, 43, 0.07);
}

.zmthg-result-summary p {
  color: #6d5d5c;
}

.zmthg-dimensions {
  background: #f6f7f8;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.045);
}

.zmthg-tag-list {
  background: #fff;
}

.zmthg-tag-row:hover {
  background: #fafbfc;
}

/* Compact result category overview */
.zmthg-category-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  transition-property: opacity, filter;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.zmthg-category-overview__item {
  --category-color: #e8322b;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-content: space-between;
  padding: 11px 12px 10px;
  overflow: hidden;
  border-radius: 14px;
  color: #5f6670;
  background: #f7f8fa;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.055);
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 170ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-category-overview__item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--category-color);
  content: '';
  opacity: 0.7;
  transform: scaleX(0.22);
  transform-origin: left center;
  transition-property: opacity, transform;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-category-overview__item > i {
  width: 6px;
  height: 6px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: var(--category-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--category-color) 10%, transparent);
}

.zmthg-category-overview__item > span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 620;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-category-overview__item > strong {
  position: absolute;
  top: 10px;
  right: 11px;
  color: #9da2aa;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.zmthg-category-overview__item.is-long-tail { --category-color: #c77821; }
.zmthg-category-overview__item.is-industry { --category-color: #3867a8; }
.zmthg-category-overview__item.is-audience { --category-color: #765a9d; }
.zmthg-category-overview__item.is-location { --category-color: #25806b; }
.zmthg-category-overview__item.is-hotspot { --category-color: #ca4f46; }

.zmthg-category-overview.is-resolved .zmthg-category-overview__item {
  color: #272c33;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(20, 24, 30, 0.065),
    0 8px 18px -18px rgba(20, 24, 30, 0.45);
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item > strong {
  color: var(--category-color);
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item.is-empty {
  color: #8b9199;
  background: #f8f9fa;
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item.is-empty::after {
  opacity: 0.18;
}

.zmthg.has-stale-result .zmthg-category-overview {
  filter: grayscale(0.45);
  opacity: 0.58;
}

/* Preserve the supplied platform marks without recolouring or invented glyphs. */
.zmthg-platform-surface {
  gap: 12px;
}

.zmthg-platform-logo {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.065);
}

.zmthg-platform-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.zmthg-platform-logo.is-douyin img,
.zmthg-platform-logo.is-xiaohongshu img {
  width: 40px;
  height: 40px;
}

.zmthg-platform-logo.is-wechat-channels img {
  width: 28px;
  height: 28px;
}

.zmthg-platform-logo.is-bilibili {
  padding: 0 4px;
}

.zmthg-platform-logo.is-bilibili img {
  width: 50px;
}

.zmthg-platform-option input:checked + .zmthg-platform-surface .zmthg-platform-logo {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(232, 50, 43, 0.12),
    0 7px 16px -13px rgba(20, 24, 30, 0.42);
}

.zmthg-empty {
  min-height: 570px;
}

@media (max-width: 1240px) {
  .zmthg-desk {
    grid-template-columns: minmax(400px, 0.92fr) minmax(540px, 1.08fr);
  }
}

@media (max-width: 1040px) {
  .zmthg-desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .zmthg-composer,
  .zmthg-results {
    width: 100%;
  }

  .zmthg-results {
    min-height: 0;
  }

  .zmthg-empty {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  body.zmt-hashtag-generator-page {
    background: var(--hg-canvas, #f4f5f7);
  }

  .zmthg-app {
    background: #f5f6f8;
  }

  .zmthg-commandbar,
  .zmthg-composer,
  .zmthg-results {
    border-radius: 20px;
  }

  .zmthg-composer-head,
  .zmthg-results-head {
    display: flex;
  }

  .zmthg-private-note,
  .zmthg-result-state {
    justify-self: auto;
  }

  .zmthg textarea {
    min-height: 160px;
  }

  .zmthg-empty {
    min-height: 220px;
  }

  .zmthg-empty > span {
    font-size: 52px;
  }
}

@media (max-width: 620px) {
  .zmthg-category-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zmthg-category-overview__item {
    min-height: 60px;
  }
}

@media (max-width: 520px) {
  .zmthg-composer-head,
  .zmthg-results-head {
    display: grid;
  }

  .zmthg-private-note,
  .zmthg-result-state {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zmthg *,
  .zmthg *::before,
  .zmthg *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Editorial utility system: one hierarchy, purposeful colour, no card wallpaper. */
.zmthg {
  --hg-ink: #20231f;
  --hg-ink-soft: #2d302b;
  --hg-paper: #fff;
  --hg-canvas: #f3f1ec;
  --hg-muted: #6f746f;
  --hg-muted-light: #9a9f99;
  --hg-red: #e7352d;
  --hg-red-dark: #c82b25;
  --hg-red-soft: #fff0ed;
  --hg-line: #e6e2da;
  --hg-cream: #faf8f3;
  --hg-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.055),
    0 1px 2px -1px rgba(28, 30, 27, 0.08),
    0 18px 44px -34px rgba(28, 30, 27, 0.22);
  --hg-shadow-hover:
    0 0 0 1px rgba(28, 30, 27, 0.09),
    0 3px 8px -5px rgba(28, 30, 27, 0.14),
    0 22px 50px -36px rgba(28, 30, 27, 0.27);
}

.zmthg-app {
  padding: 22px 0 72px;
  background: var(--hg-canvas);
}

.zmthg-shell {
  width: min(1740px, calc(100vw - 40px));
}

.zmthg-commandbar {
  grid-template-columns: minmax(440px, 1fr) minmax(470px, 600px);
  min-height: 112px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hg-shadow);
}

.zmthg-title-block {
  gap: 16px;
}

.zmthg-product-mark {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  color: #fff;
  background: var(--hg-red);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 11px 22px -16px rgba(231, 53, 45, 0.75);
}

.zmthg-product-mark span {
  font-size: 28px;
}

.zmthg-product-mark i {
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--hg-red);
  background: #fff;
}

.zmthg-eyebrow {
  margin-bottom: 5px !important;
  color: var(--hg-red);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.zmthg-title-block h1 {
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.zmthg-subtitle {
  margin-top: 7px !important;
  color: #72776f;
  font-size: 13px;
}

.zmthg-strategy-snapshot {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  color: var(--hg-ink);
  background: #faf9f6;
  box-shadow:
    inset 0 0 0 1px rgba(28, 30, 27, 0.055),
    0 4px 12px -10px rgba(28, 30, 27, 0.28);
}

.zmthg-strategy-snapshot > div {
  padding: 14px 15px;
}

.zmthg-strategy-snapshot > div + div::before {
  top: 13px;
  bottom: 13px;
  background: rgba(28, 30, 27, 0.08);
}

.zmthg-strategy-snapshot span {
  color: #929790;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.zmthg-strategy-snapshot strong {
  color: var(--hg-ink);
  font-size: 13px;
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost {
  background: #fff0dd;
}

.zmthg-strategy-snapshot .zmthg-snapshot-cost::before {
  background: rgba(183, 118, 31, 0.13);
}

.zmthg-snapshot-cost strong {
  display: inline;
  color: #bd5e16;
  font-size: 24px;
}

.zmthg-snapshot-cost small {
  display: inline;
  margin-left: 4px;
  color: #9a6d41;
}

.zmthg-desk {
  grid-template-columns: minmax(470px, 0.78fr) minmax(650px, 1.22fr);
  gap: 12px;
  align-items: start;
}

.zmthg-composer,
.zmthg-results {
  min-height: 0;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hg-shadow);
}

.zmthg-composer {
  position: sticky;
  top: 84px;
  color: var(--hg-ink);
}

.zmthg-composer-head,
.zmthg-results-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hg-line);
}

.zmthg-step-label {
  gap: 9px;
  color: var(--hg-red);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.zmthg-step-label i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 9px;
  background: var(--hg-red);
}

.zmthg-composer-head h2,
.zmthg-results-head h2 {
  margin-top: 19px !important;
  color: var(--hg-ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.zmthg-composer-head p {
  margin-top: 7px !important;
  color: #81867f;
  font-size: 11px;
}

.zmthg-private-note {
  min-height: 34px;
  padding: 0 11px;
  color: #27765b;
  background: #eef8f3;
  box-shadow: inset 0 0 0 1px rgba(39, 118, 91, 0.1);
}

.zmthg-result-state {
  min-height: 34px;
  padding: 0 12px;
  color: #787d76;
  background: #f4f2ed;
  box-shadow: inset 0 0 0 1px rgba(28, 30, 27, 0.06);
}

.zmthg-form {
  gap: 22px;
  margin-top: 24px;
}

.zmthg-field > label,
.zmthg-fieldset > legend {
  margin-bottom: 9px;
  color: #343832;
  font-size: 11px;
  font-weight: 670;
}

.zmthg-field > label small,
.zmthg-fieldset > legend small,
.zmthg-content-count {
  color: #989d96;
  font-size: 9px;
}

.zmthg-content-count.is-near-limit {
  color: var(--hg-red);
}

.zmthg-textarea-shell {
  border: 1px solid #dedbd4;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(28, 30, 27, 0.025),
    0 8px 22px -20px rgba(28, 30, 27, 0.28);
}

.zmthg-textarea-shell:focus-within {
  border-color: rgba(231, 53, 45, 0.62);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(231, 53, 45, 0.09),
    0 12px 28px -22px rgba(28, 30, 27, 0.34);
}

.zmthg textarea {
  min-height: 205px;
  padding: 17px 18px 13px;
  color: var(--hg-ink);
  caret-color: var(--hg-red);
  font-size: 14px;
  line-height: 1.75;
}

.zmthg textarea::placeholder,
.zmthg input::placeholder {
  color: #b3b6b0;
}

.zmthg-input-guidance {
  min-height: 38px;
  padding: 7px 12px 7px 18px;
  border-top-color: #efede8;
  color: #939890;
  font-size: 9px;
}

.zmthg-input-guidance i {
  color: #27866a;
}

.zmthg-platforms {
  gap: 8px;
}

.zmthg-platform-option:nth-child(1) { --platform-accent: #ff3158; --platform-tint: #fff1f4; }
.zmthg-platform-option:nth-child(2) { --platform-accent: #ff2442; --platform-tint: #fff0f2; }
.zmthg-platform-option:nth-child(3) { --platform-accent: #f19a32; --platform-tint: #fff7e9; }
.zmthg-platform-option:nth-child(4) { --platform-accent: #00aeec; --platform-tint: #edfaff; }

.zmthg-platform-surface {
  gap: 11px;
  min-height: 70px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 15px;
  color: #333731;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.075),
    0 2px 5px -4px rgba(28, 30, 27, 0.18);
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-platform-surface::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--platform-accent);
  content: '';
  opacity: 0.28;
  transform: scaleY(0.38);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-platform-logo {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zmthg-platform-logo img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.zmthg-platform-logo.is-douyin img,
.zmthg-platform-logo.is-xiaohongshu img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 9px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.zmthg-platform-logo.is-wechat-channels img,
.zmthg-platform-logo.is-bilibili img {
  width: 31px;
  height: 31px;
  max-width: 31px;
  max-height: 31px;
}

.zmthg-platform-logo.is-bilibili {
  padding: 0;
}

.zmthg-platform-surface b {
  gap: 4px;
  color: #2a2e29;
  font-size: 12px;
  font-weight: 680;
}

.zmthg-platform-surface b small {
  color: #888d86;
  font-size: 9px;
}

.zmthg-platform-surface em {
  top: 11px;
  right: 11px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #cdd1cb;
}

.zmthg-platform-option:hover .zmthg-platform-surface {
  color: var(--hg-ink);
  background: var(--platform-tint);
  box-shadow: var(--hg-shadow-hover);
  transform: translateY(-1px);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface {
  color: var(--hg-ink);
  background: var(--platform-tint);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--platform-accent) 42%, transparent),
    0 9px 22px -17px color-mix(in srgb, var(--platform-accent) 50%, transparent);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface::before {
  opacity: 1;
  transform: scaleY(1);
}

.zmthg-platform-option input:checked + .zmthg-platform-surface .zmthg-platform-logo {
  background: transparent;
  box-shadow: none;
}

.zmthg-platform-option input:checked + .zmthg-platform-surface b small {
  color: #747a73;
}

.zmthg-platform-option input:checked + .zmthg-platform-surface em {
  color: #fff;
  background: var(--platform-accent);
  box-shadow: none;
}

.zmthg-platform-option input:checked + .zmthg-platform-surface em::after {
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
  content: '✓';
}

.zmthg-platform-option input:focus-visible + .zmthg-platform-surface,
.zmthg-purpose-option input:focus-visible + span {
  outline: 2px solid var(--hg-red);
  outline-offset: 3px;
}

.zmthg-line-input input {
  height: 50px;
  border-color: #dedbd4;
  border-radius: 14px;
  color: var(--hg-ink);
  background: #fff;
}

.zmthg-line-input input:focus {
  border-color: rgba(231, 53, 45, 0.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(231, 53, 45, 0.09);
}

.zmthg-line-input > span {
  color: #aaa9a3;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0;
}

.zmthg-purposes {
  gap: 0;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.075),
    0 3px 8px -7px rgba(28, 30, 27, 0.2);
}

.zmthg-purpose-option + .zmthg-purpose-option {
  border-top: 1px solid #ece9e3;
}

.zmthg-purpose-option > span {
  grid-template-columns: 38px 1fr 20px;
  min-height: 66px;
  padding: 10px 13px;
  border-radius: 0;
  color: #333731;
  background: transparent;
  box-shadow: none;
  transition-property: color, background-color;
  transition-duration: 170ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-purpose-option > span > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #70766f;
  background: #f2f0eb;
  transition-property: color, background-color, scale;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-purpose-option > span > i svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.zmthg-purpose-option b {
  gap: 3px;
  font-size: 12px;
  font-weight: 680;
}

.zmthg-purpose-option b small {
  color: #858a83;
  font-size: 9px;
}

.zmthg-purpose-option em {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px #cbd0c9;
}

.zmthg-purpose-option:hover > span {
  color: var(--hg-ink);
  background: #faf8f4;
  box-shadow: none;
  transform: none;
}

.zmthg-purpose-option input:checked + span {
  color: #fff;
  background: #282a27;
  box-shadow: none;
}

.zmthg-purpose-option input:checked + span > i {
  color: #fff;
  background: var(--hg-red);
}

.zmthg-purpose-option input:checked + span b small {
  color: rgba(255, 255, 255, 0.58);
}

.zmthg-purpose-option input:checked + span em {
  color: #282a27;
  background: #fff;
  box-shadow: none;
}

.zmthg-purpose-option input:checked + span em::after {
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
  content: '✓';
}

.zmthg-runway {
  grid-template-columns: minmax(164px, 0.62fr) minmax(250px, 1.38fr);
  gap: 10px;
  padding-top: 0;
}

.zmthg-quote {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  min-height: 76px;
  padding: 13px 14px 12px 17px;
  overflow: hidden;
  border-radius: 16px;
  color: #8a6739;
  background: #fff6df;
  box-shadow:
    inset 0 0 0 1px rgba(190, 126, 37, 0.12),
    0 7px 18px -16px rgba(141, 91, 25, 0.35);
}

.zmthg-quote::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #d9922d;
  content: '';
}

.zmthg-quote > span {
  align-self: end;
  color: #9a7544;
  font-size: 9px;
}

.zmthg-quote strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #9c541e;
  font-size: 11px;
}

.zmthg-quote strong b {
  color: #b65d18;
  font-size: 23px;
}

.zmthg-quote p {
  grid-column: 1;
  overflow: hidden;
  color: #9c805b;
  font-size: 8px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-quote.is-error {
  color: #a63630;
  background: #fff0ed;
  box-shadow: inset 0 0 0 1px rgba(231, 53, 45, 0.13);
}

.zmthg-button {
  min-height: 76px;
  padding: 11px 13px 11px 18px;
  border-radius: 16px;
  background: var(--hg-red);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 24px -17px rgba(231, 53, 45, 0.8);
}

.zmthg-button:hover {
  background: #f03b32;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px -19px rgba(231, 53, 45, 0.9);
}

.zmthg-button:active {
  scale: 0.96;
}

.zmthg-button:disabled {
  color: #bd5b55 !important;
  cursor: not-allowed;
  background: #fff0ed;
  box-shadow:
    inset 0 0 0 1px rgba(231, 53, 45, 0.14),
    0 7px 18px -17px rgba(231, 53, 45, 0.35);
}

.zmthg-button:disabled small {
  color: #b98b86;
}

.zmthg-button:disabled .zmthg-button-icons {
  color: #bd5b55;
  background: rgba(231, 53, 45, 0.08);
}

.zmthg-button > i,
.zmthg-button-icons {
  border-radius: 12px;
}

.zmthg-status {
  grid-column: 1 / -1;
  color: #8a8f88;
}

.zmthg-status > i {
  background: #b3b7b1;
}

.zmthg-category-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding: 4px;
  overflow: hidden;
  border-radius: 17px;
  background: #f7f4ee;
  box-shadow:
    inset 0 0 0 1px rgba(28, 30, 27, 0.055),
    0 5px 14px -13px rgba(28, 30, 27, 0.28);
}

.zmthg-category-overview__item {
  --category-color: #e7352d;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 9px 8px;
  min-width: 0;
  min-height: 74px;
  align-content: center;
  padding: 11px 14px;
  overflow: hidden;
  border-radius: 12px;
  color: #555b54;
  background: transparent;
  box-shadow: none;
  transition-property: color, background-color, opacity;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.zmthg-category-overview__item + .zmthg-category-overview__item::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 1px;
  background: rgba(28, 30, 27, 0.08);
  content: '';
}

.zmthg-category-overview__item::after {
  position: absolute;
  top: 0;
  right: 14px;
  bottom: auto;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--category-color);
  content: '';
  opacity: 0.52;
  transform: scaleX(0.28);
  transform-origin: left center;
  transition-property: opacity, transform;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmthg-category-overview__item > i {
  width: auto;
  height: auto;
  margin: 0;
  color: var(--category-color);
  font-size: 9px;
  font-style: normal;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.06em;
  background: transparent;
  box-shadow: none;
}

.zmthg-category-overview__item > span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #3d423c;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmthg-category-overview__item > strong {
  position: static;
  align-self: start;
  color: #91968f;
  font-size: 13px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.zmthg-category-overview__item.is-long-tail { --category-color: #c47a27; }
.zmthg-category-overview__item.is-industry { --category-color: #3f6fae; }
.zmthg-category-overview__item.is-audience { --category-color: #745b9b; }
.zmthg-category-overview__item.is-location { --category-color: #2a806b; }
.zmthg-category-overview__item.is-hotspot { --category-color: #d15a51; }

.zmthg-category-overview.is-resolved .zmthg-category-overview__item {
  color: #3d423c;
  background: transparent;
  box-shadow: none;
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item > strong {
  color: var(--category-color);
}

.zmthg-category-overview.is-resolved .zmthg-category-overview__item.is-empty {
  color: #8c918b;
  background: transparent;
}

.zmthg-empty {
  display: flex;
  min-height: 600px;
  margin-top: 14px;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px 32px;
  border-radius: 16px;
  color: #e7e2da;
  background: #fbfaf7;
  box-shadow: inset 0 0 0 1px rgba(28, 30, 27, 0.045);
}

.zmthg-empty > span {
  font-size: 82px;
  font-weight: 630;
  line-height: 0.9;
}

.zmthg.is-busy .zmthg-empty > span {
  color: rgba(231, 53, 45, 0.28);
  opacity: 1;
  scale: 1.04;
}

.zmthg-output {
  margin-top: 14px;
}

.zmthg-final-set {
  border-radius: 18px;
  color: var(--hg-ink);
  background: #fff;
  box-shadow: var(--hg-shadow);
}

.zmthg-final-set h3,
.zmthg-role-list strong {
  color: var(--hg-ink);
}

.zmthg-final-set header span,
.zmthg-role-list li > i {
  color: var(--hg-red);
}

.zmthg-copy-combination {
  color: #fff;
  background: #282a27;
  box-shadow: none;
}

.zmthg-copy-combination:hover {
  background: #343732;
  box-shadow: 0 7px 16px -13px rgba(28, 30, 27, 0.55);
}

.zmthg-final-tag {
  color: var(--hg-ink);
  background: #fff3f0;
  box-shadow: inset 0 0 0 1px rgba(231, 53, 45, 0.09);
}

.zmthg-final-tag:hover {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(231, 53, 45, 0.2),
    0 8px 18px -14px rgba(231, 53, 45, 0.35);
}

.zmthg-final-tag small,
.zmthg-composition,
.zmthg-role-list p {
  color: #7e837c;
}

.zmthg-role-list {
  border-top-color: #ece9e3;
}

.zmthg-result-summary {
  background: #fff7e8;
  box-shadow: inset 0 0 0 1px rgba(190, 126, 37, 0.09);
}

.zmthg-result-summary span {
  color: #ae681f;
}

.zmthg-result-summary p {
  color: #786448;
}

.zmthg-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.zmthg-dimension {
  padding: 17px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(28, 30, 27, 0.055),
    0 5px 14px -13px rgba(28, 30, 27, 0.25);
}

.zmthg-dimension + .zmthg-dimension {
  border-top: 0;
}

.zmthg-dimension > header > i {
  border-radius: 10px;
}

.zmthg-tag-list {
  border-radius: 13px;
  background: #fbfaf7;
  box-shadow: inset 0 0 0 1px rgba(28, 30, 27, 0.045);
}

.zmthg-tag-row {
  grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1.55fr) 44px;
  gap: 12px;
}

.zmthg-tag-row:hover {
  background: #f7f4ee;
}

@media (max-width: 1240px) {
  .zmthg-commandbar {
    grid-template-columns: 1fr;
  }

  .zmthg-desk {
    grid-template-columns: minmax(400px, 0.88fr) minmax(540px, 1.12fr);
  }
}

@media (max-width: 1040px) {
  .zmthg-shell {
    width: min(960px, calc(100vw - 28px));
  }

  .zmthg-desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .zmthg-composer {
    position: relative;
    top: auto;
  }

  .zmthg-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zmthg-empty {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .zmthg-app {
    padding: 10px 0 44px;
    background: var(--hg-canvas);
  }

  .zmthg-shell {
    width: calc(100vw - 16px);
  }

  .zmthg-commandbar,
  .zmthg-composer,
  .zmthg-results {
    padding: 18px;
    border-radius: 17px;
  }

  .zmthg-commandbar {
    gap: 16px;
  }

  .zmthg-product-mark {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

  .zmthg-title-block h1 {
    font-size: 24px;
  }

  .zmthg-subtitle {
    font-size: 11px;
  }

  .zmthg-strategy-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmthg-strategy-snapshot > div:nth-child(3)::before {
    display: none;
  }

  .zmthg-strategy-snapshot > div:nth-child(n + 3) {
    border-top: 1px solid rgba(28, 30, 27, 0.07);
  }

  .zmthg-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmthg-runway {
    grid-template-columns: minmax(0, 1fr);
  }

  .zmthg-quote {
    min-height: 68px;
  }

  .zmthg-category-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zmthg-category-overview__item:nth-child(4)::before {
    display: none;
  }

  .zmthg-category-overview__item:nth-child(n + 4) {
    border-top: 1px solid rgba(28, 30, 27, 0.07);
  }

  .zmthg-category-overview__item {
    min-height: 68px;
    padding: 10px 12px;
  }

  .zmthg-empty {
    min-height: 235px;
    padding: 22px;
  }

  .zmthg-empty > span {
    font-size: 60px;
  }

  .zmthg-dimensions {
    grid-template-columns: minmax(0, 1fr);
  }

  .zmthg-final-set > header {
    display: grid;
  }

  .zmthg-copy-combination {
    justify-self: start;
  }

  .zmthg-role-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .zmthg-result-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .zmthg-tag-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    min-height: 80px;
    padding: 11px 10px 11px 12px;
  }

  .zmthg-tag-name,
  .zmthg-tag-explanation {
    grid-column: 1;
  }

  .zmthg-copy-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }

  .zmthg-copy-action small {
    display: none;
  }
}

@media (max-width: 520px) {
  .zmthg-composer-head,
  .zmthg-results-head {
    display: grid;
  }

  .zmthg-private-note,
  .zmthg-result-state {
    justify-self: start;
  }

  .zmthg-platform-logo {
    flex-basis: 38px;
    width: 38px;
  }

  .zmthg-platform-surface {
    gap: 8px;
    padding: 9px 10px;
  }

  .zmthg-platform-surface b {
    font-size: 11px;
  }

  .zmthg-platform-logo.is-douyin img,
  .zmthg-platform-logo.is-xiaohongshu img {
    width: 33px;
    height: 33px;
    max-width: 33px;
    max-height: 33px;
  }

  .zmthg-platform-logo.is-wechat-channels img,
  .zmthg-platform-logo.is-bilibili img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zmthg *,
  .zmthg *::before,
  .zmthg *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
