#atg-page {
      --atg-primary: #6c5ce7;
      --atg-primary-dark: #5546d8;
      --atg-primary-soft: #f0edff;
      --atg-secondary: #00b894;
      --atg-secondary-dark: #07866e;
      --atg-secondary-soft: rgba(0, 184, 148, 0.1);
      --atg-heading: #172033;
      --atg-text: #5d6678;
      --atg-muted: #8a93a5;
      --atg-bg: #f7f8fc;
      --atg-border: #e7e9f1;
      --atg-shadow: 0 18px 50px rgba(31, 38, 74, 0.08);
      --atg-container: 1120px;
}

#atg-page,
    #atg-page * {
      box-sizing: border-box;
    }

    #atg-page {
      position: relative !important;
      width: 100%;
      height: auto !important;
      min-height: 100vh !important;
      max-height: none !important;
      overflow-x: hidden !important;
      overflow-y: visible !important;
      color: var(--atg-text);
      background:
        radial-gradient(circle at 8% 5%, rgba(108, 92, 231, 0.13), transparent 27%),
        radial-gradient(circle at 92% 16%, rgba(0, 184, 148, 0.09), transparent 24%),
        var(--atg-bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.7;
      touch-action: pan-y;
    }

    #atg-page a {
      color: inherit;
      text-decoration: none;
    }

    #atg-page button,
    #atg-page textarea,
    #atg-page select,
    #atg-page input {
      font: inherit;
    }

    .atg-container {
      width: min(100% - 32px, var(--atg-container));
      margin-inline: auto;
    }

    .atg-main {
      padding: 42px 0 78px;
    }

    .atg-home-link {
      position: relative;
      z-index: 5;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 30px;
      color: var(--atg-primary) !important;
      font-size: 0.92rem;
      font-weight: 800;
      cursor: pointer;
      pointer-events: auto;
      transition: 0.2s ease;
    }

    .atg-home-link:hover {
      color: var(--atg-primary-dark) !important;
      transform: translateX(-3px);
    }

    .atg-hero {
      max-width: 840px;
      margin: 0 auto 36px;
      text-align: center;
    }

    .atg-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      padding: 7px 13px;
      border: 1px solid #ddd9ff;
      border-radius: 999px;
      color: var(--atg-primary);
      background: rgba(255, 255, 255, 0.86);
      font-size: 0.82rem;
      font-weight: 850;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

    .atg-eyebrow-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--atg-secondary);
      box-shadow: 0 0 0 5px rgba(0, 184, 148, 0.11);
    }

    #atg-page h1,
    #atg-page h2,
    #atg-page h3 {
      margin-top: 0;
      color: var(--atg-heading);
      line-height: 1.22;
      letter-spacing: -0.035em;
    }

    #atg-page h1 {
      margin-bottom: 17px;
      font-size: clamp(2.5rem, 6vw, 4.5rem);
    }

    .atg-gradient {
      background: linear-gradient(135deg, var(--atg-primary), #9b59ff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .atg-hero p {
      max-width: 730px;
      margin: 0 auto;
      color: #687184;
      font-size: 1.06rem;
    }

    .atg-tool-shell {
      padding: 26px;
      border: 1px solid rgba(231, 233, 241, 0.98);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: var(--atg-shadow);
      backdrop-filter: blur(12px);
    }

    .atg-tool-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
    }

    .atg-tool-header h2 {
      margin-bottom: 6px;
      font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .atg-tool-header p {
      margin: 0;
      color: #778093;
      font-size: 0.92rem;
    }

    .atg-free-badge {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 11px;
      border-radius: 999px;
      color: #087f67;
      background: var(--atg-secondary-soft);
      font-size: 0.76rem;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .atg-input-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      margin-bottom: 8px;
      color: #40495e;
      font-size: 0.88rem;
      font-weight: 800;
    }

    .atg-counter {
      color: var(--atg-muted);
      font-size: 0.78rem;
      font-weight: 700;
    }

    .atg-textarea {
      width: 100%;
      min-height: 128px;
      display: block;
      padding: 16px;
      border: 1px solid var(--atg-border);
      border-radius: 14px;
      outline: none;
      color: var(--atg-heading);
      background: #fbfcfe;
      resize: vertical;
      transition: 0.2s ease;
    }

    .atg-textarea:focus {
      border-color: var(--atg-primary);
      background: #fff;
      box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
    }

    .atg-textarea::placeholder {
      color: #a0a7b5;
    }

    .atg-settings {
      display: grid;
      grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 0.7fr) 1fr;
      gap: 14px;
      margin-top: 15px;
    }

    .atg-setting {
      min-height: 76px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 7px;
      padding: 13px 14px;
      border: 1px solid var(--atg-border);
      border-radius: 13px;
      background: #fbfcfe;
    }

    .atg-setting label,
    .atg-setting-title {
      color: #4a5367;
      font-size: 0.79rem;
      font-weight: 820;
    }

    .atg-select {
      width: 100%;
      min-height: 38px;
      padding: 0 10px;
      border: 1px solid #dfe2eb;
      border-radius: 9px;
      outline: none;
      color: var(--atg-heading);
      background: #fff;
      cursor: pointer;
    }

    .atg-select:focus {
      border-color: var(--atg-primary);
      box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.09);
    }

    .atg-checkbox-row {
      display: flex;
      align-items: center;
      gap: 9px;
      color: #5d6678;
      font-size: 0.84rem;
      font-weight: 700;
      cursor: pointer;
    }

    .atg-checkbox-row input {
      width: 17px;
      height: 17px;
      accent-color: var(--atg-primary);
      cursor: pointer;
    }

    .atg-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 15px;
    }

    .atg-action-button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 17px;
      border: 1px solid var(--atg-border);
      border-radius: 11px;
      color: #5d6678;
      background: #fff;
      font-size: 0.86rem;
      font-weight: 800;
      cursor: pointer;
      pointer-events: auto;
      transition: 0.2s ease;
    }

    .atg-action-button:hover {
      color: var(--atg-primary);
      border-color: #d4ceff;
      transform: translateY(-2px);
    }

    .atg-primary-action {
      color: #fff;
      border-color: var(--atg-primary);
      background: var(--atg-primary);
      box-shadow: 0 9px 20px rgba(108, 92, 231, 0.2);
    }

    .atg-primary-action:hover {
      color: #fff;
      border-color: var(--atg-primary-dark);
      background: var(--atg-primary-dark);
    }

    .atg-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 22px;
    }

    .atg-stat {
      padding: 15px;
      border: 1px solid var(--atg-border);
      border-radius: 13px;
      text-align: center;
      background: #fbfcfe;
    }

    .atg-stat strong {
      display: block;
      color: var(--atg-heading);
      font-size: 1.18rem;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .atg-stat span {
      color: #81899a;
      font-size: 0.76rem;
      font-weight: 750;
      text-transform: uppercase;
      letter-spacing: 0.045em;
    }

    .atg-message {
      display: none;
      margin-top: 16px;
      padding: 13px 15px;
      border-left: 4px solid var(--atg-primary);
      border-radius: 0 11px 11px 0;
      color: #586176;
      background: rgba(108, 92, 231, 0.07);
      font-size: 0.88rem;
    }

    .atg-message.show {
      display: block;
    }

    .atg-message.error {
      border-left-color: #e17055;
      background: rgba(225, 112, 85, 0.08);
    }

    .atg-results-section {
      margin-top: 30px;
    }

    .atg-results-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 15px;
    }

    .atg-results-heading h2 {
      margin-bottom: 4px;
      font-size: clamp(1.35rem, 3vw, 1.75rem);
    }

    .atg-results-heading p {
      margin: 0;
      color: #81899a;
      font-size: 0.86rem;
    }

    .atg-results-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .atg-result-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-width: 0;
      padding: 13px 13px 13px 15px;
      border: 1px solid var(--atg-border);
      border-radius: 13px;
      background: #fff;
      transition: 0.2s ease;
    }

    .atg-result-card:hover {
      border-color: #d7d2ff;
      box-shadow: 0 8px 22px rgba(31, 38, 74, 0.05);
    }

    .atg-result-text {
      min-width: 0;
      overflow-wrap: anywhere;
      color: #263047;
      font-size: 0.98rem;
      font-weight: 720;
    }

    .atg-copy-button {
      flex: 0 0 auto;
      min-width: 63px;
      min-height: 35px;
      padding: 0 10px;
      border: 1px solid #dcd8ff;
      border-radius: 9px;
      color: var(--atg-primary);
      background: var(--atg-primary-soft);
      font-size: 0.74rem;
      font-weight: 850;
      cursor: pointer;
      pointer-events: auto;
      transition: 0.2s ease;
    }

    .atg-copy-button:hover {
      color: #fff;
      border-color: var(--atg-primary);
      background: var(--atg-primary);
    }

    .atg-copy-button.copied {
      color: #fff;
      border-color: var(--atg-secondary);
      background: var(--atg-secondary);
    }

    .atg-empty {
      display: grid;
      place-items: center;
      min-height: 150px;
      padding: 25px;
      border: 1px dashed #d7d9e4;
      border-radius: 15px;
      text-align: center;
      background: rgba(247, 248, 252, 0.7);
    }

    .atg-empty strong {
      display: block;
      margin-bottom: 5px;
      color: var(--atg-heading);
    }

    .atg-empty span {
      color: #81899a;
      font-size: 0.88rem;
    }

    .atg-info-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin-top: 38px;
    }

    .atg-info-card {
      padding: 24px;
      border: 1px solid var(--atg-border);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 10px 30px rgba(31, 38, 74, 0.045);
    }

    .atg-info-icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      margin-bottom: 15px;
      border-radius: 13px;
      color: var(--atg-primary);
      background: var(--atg-primary-soft);
      font-weight: 900;
    }

    .atg-info-card h3 {
      margin-bottom: 8px;
      font-size: 1.06rem;
    }

    .atg-info-card p {
      margin: 0;
      color: #737c8e;
      font-size: 0.91rem;
    }

    .atg-content-card {
      margin-top: 30px;
      padding: 34px;
      border: 1px solid var(--atg-border);
      border-radius: 21px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 12px 34px rgba(31, 38, 74, 0.045);
    }

    .atg-content-section + .atg-content-section {
      margin-top: 30px;
      padding-top: 30px;
      border-top: 1px solid var(--atg-border);
    }

    .atg-content-section h2 {
      margin-bottom: 12px;
      font-size: clamp(1.45rem, 3vw, 2rem);
    }

    .atg-content-section p {
      margin: 0;
    }

    .atg-content-section p + p {
      margin-top: 12px;
    }

    .atg-steps {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 15px;
      margin-top: 18px;
      padding: 0;
      list-style: none;
      counter-reset: atg-step;
    }

    .atg-steps li {
      counter-increment: atg-step;
      padding: 19px;
      border: 1px solid var(--atg-border);
      border-radius: 15px;
      background: #fbfcfe;
    }

    .atg-steps li::before {
      content: counter(atg-step);
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      margin-bottom: 11px;
      border-radius: 9px;
      color: #fff;
      background: var(--atg-primary);
      font-size: 0.78rem;
      font-weight: 900;
    }

    .atg-steps strong {
      display: block;
      margin-bottom: 5px;
      color: var(--atg-heading);
    }

    .atg-steps span {
      color: #747d8f;
      font-size: 0.89rem;
    }

    .atg-faq details {
      padding: 16px 0;
      border-top: 1px solid var(--atg-border);
    }

    .atg-faq details:first-of-type {
      margin-top: 8px;
    }

    .atg-faq summary {
      color: var(--atg-heading);
      font-weight: 820;
      cursor: pointer;
    }

    .atg-faq details p {
      margin-top: 9px;
      color: #747d8f;
    }

    .atg-other-tools {
      margin-top: 42px;
    }

    .atg-section-heading {
      max-width: 720px;
      margin: 0 auto 25px;
      text-align: center;
    }

    .atg-section-heading h2 {
      margin-bottom: 9px;
      font-size: clamp(1.8rem, 4vw, 2.65rem);
    }

    .atg-section-heading p {
      margin: 0;
      color: #727b8d;
    }

    .atg-tools-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }

    .atg-tool-card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 220px;
      padding: 21px;
      border: 1px solid var(--atg-border);
      border-radius: 17px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 10px 28px rgba(31, 38, 74, 0.045);
      transition: 0.23s ease;
    }

    .atg-tool-card:hover {
      transform: translateY(-5px);
      border-color: #d8d3ff;
      box-shadow: var(--atg-shadow);
    }

    .atg-tool-card-icon {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      margin-bottom: 14px;
      border-radius: 13px;
      color: var(--atg-primary);
      background: var(--atg-primary-soft);
      font-size: 0.92rem;
      font-weight: 900;
    }

    .atg-tool-card h3 {
      margin-bottom: 7px;
      font-size: 1.02rem;
    }

    .atg-tool-card p {
      margin: 0 0 16px;
      color: #778092;
      font-size: 0.85rem;
    }

    .atg-tool-link {
      position: relative;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: auto;
      color: var(--atg-primary) !important;
      font-size: 0.82rem;
      font-weight: 850;
      pointer-events: auto;
    }

    .atg-tool-link:hover {
      color: var(--atg-primary-dark) !important;
    }

    .atg-bottom-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 32px;
    }

    .atg-bottom-button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 17px;
      border: 1px solid #dcd8ff;
      border-radius: 11px;
      color: var(--atg-primary);
      background: #fff;
      font-size: 0.86rem;
      font-weight: 850;
      cursor: pointer;
      pointer-events: auto;
      transition: 0.2s ease;
    }

    .atg-bottom-button:hover {
      color: #fff;
      border-color: var(--atg-primary);
      background: var(--atg-primary);
      transform: translateY(-2px);
    }

    @media (max-width: 1000px) {
      .atg-tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

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

    @media (max-width: 820px) {
      .atg-settings {
        grid-template-columns: 1fr 1fr;
      }

      .atg-setting:last-child {
        grid-column: 1 / -1;
      }

      .atg-info-grid,
      .atg-steps {
        grid-template-columns: 1fr;
      }

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

    @media (max-width: 640px) {
      .atg-container {
        width: min(100% - 22px, var(--atg-container));
      }

      .atg-main {
        padding: 34px 0 58px;
      }

      #atg-page h1 {
        font-size: 2.45rem;
      }

      .atg-tool-shell,
      .atg-content-card {
        padding: 22px 18px;
        border-radius: 19px;
      }

      .atg-tool-header,
      .atg-results-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .atg-settings,
      .atg-stats,
      .atg-results-grid,
      .atg-tools-grid {
        grid-template-columns: 1fr;
      }

      .atg-setting:last-child {
        grid-column: auto;
      }

      .atg-tool-card {
        min-height: 0;
      }

      .atg-bottom-actions {
        flex-direction: column;
      }

      .atg-bottom-button {
        width: 100%;
      }
    }

/* WordPress/theme compatibility resets scoped to this tool only. */
#atg-page button,
#atg-page input,
#atg-page select,
#atg-page textarea {
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}

#atg-page button {
  -webkit-appearance: none;
  appearance: none;
}

#atg-page [hidden] {
  display: none !important;
}

