/* GENERATED FILE - do not edit.
   Source: static/css/src/50-system.css, 60-tool-ui.css, 90-state.css, 70-tool-workbench.css
   Build:  python tools/build_css.py */

/* ============ 50-system.css ============ */
/* The design system pass: one visual language over the older page CSS.
   Was design-system.css. */

/* Tokens for this file's own components. They stay here rather than in
   10-tokens.css because the same names are redefined in @media blocks
   below, and moving the definition to an earlier bundle would flip which
   one wins. Move them only with a fingerprint check. */
:root {
  --ds-control-h: 52px;
  --ds-control-radius: 14px;
  --ds-panel-radius: 22px;
  --ds-card: rgba(255,255,255,.82);
  --ds-card-strong: rgba(255,255,255,.94);
  --ds-focus: 0 0 0 4px rgba(254,57,31,.13);
  --ds-cta-shadow: 0 18px 44px rgba(254,57,31,.26);
}
[data-theme="dark"] {
  --ds-card: rgba(24, 24, 24,.78);
  --ds-card-strong: rgba(24, 24, 24,.94);
  --ds-focus: 0 0 0 4px rgba(255,84,54,.18);
  --ds-cta-shadow: 0 20px 52px rgba(254,57,31,.34);
}
:root {
  --ds-report-shell: min(1320px, calc(100vw - 56px));
}
:root {
  --ds-gap-section: 26px;
}

/* SEOKit unified design system.
   Loaded last on purpose: it normalizes old page-specific CSS into one UI language. */

html {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--ds-bg);
  color: var(--ds-text);
}

body:has(.std-tool-page),
body:has(.tool-page),
body:has(.sa-page) {
  --tool-shell-width: var(--ds-tool-shell);
}

body::before {
  background: transparent !important;
  background-size: auto, auto, 56px 56px, 56px 56px !important;
}

[data-theme="dark"] body::before {
  background: transparent !important;
  background-size: auto, auto, 56px 56px, 56px 56px !important;
}

/* Layout primitives */
.std-tool-page,
.std-tool-page.tool-page,
.tool-page,
.sc-page,
.aio-page,
.kd-page,
.tq-page,
.sa-page,
.glossary-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px 0 76px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.ds-shell,
.std-tool-page > .std-hero,
.std-tool-page > .std-command,
.std-tool-page > .std-workspace,
.std-tool-page > .sc-shell,
.std-tool-page > .aio-input-card,
.std-tool-page > .kd-input-card,
.std-tool-page > .tq-input-card,
.std-tool-page > .sa-card,
.std-tool-page > .sa-section,
.std-tool-page > .tool-workbench,
.std-tool-page > .tool-panel,
.std-tool-page > .card,
.std-tool-page > .panel,
.sa-page > .rc-hero,
.sa-page > #sa-grid,
.sa-page > #sa-landing-seo,
.sa-page > #sa-results,
.sa-content,
.sa-proof-band,
.sc-page > .sc-hero,
.sc-page > .sc-shell,
.glossary-hero-inner,
.glossary-body,
.tool-content-wrap,
.ptb,
.container.blog-page,
.container.course-page,
.about-wrap,
.about-content,
.ap-section-inner,
.ap-screens-inner,
.ap-steps-inner {
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.container,
.nav-inner {
  max-width: var(--ds-shell);
}

/* Premium hero shared by tools and glossary */
/* The dark hero band. One class, set on the element by the template; the older
   per-page names are kept beside it so nothing depends on the marking pass
   having been exhaustive. */
.ds-hero,
.std-hero,
.tool-page > .tool-hero,
.tool-page > .hero,
.rc-hero,
.sc-hero,
.aio-hero,
.kd-hero,
.tq-hero,
.sa-hero,
.glossary-hero {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: var(--ds-radius-lg) !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: var(--ds-shadow-lg), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

/* A band needs room inside it. Declared without !important so the pages that
   already set their own padding keep it; the ones that never had a band get a
   sensible default instead of a tight rectangle. */
.ds-hero {
  padding: clamp(30px, 3.4vw, 46px) clamp(22px, 2.6vw, 40px);
}

.std-tool-page > .std-hero,
.sa-page > .rc-hero,
.sc-page > .sc-hero {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 30px 34px !important;
}

.ds-hero::before,
.std-hero::before,
.tool-page > .tool-hero::before,
.tool-page > .hero::before,
.rc-hero::before,
.sc-hero::before,
.aio-hero::before,
.kd-hero::before,
.tq-hero::before,
.sa-hero::before,
.glossary-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image: none !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.86) 58%, transparent 100%) !important;
}

.ds-hero > *,
.std-hero > *,
.tool-page > .tool-hero > *,
.tool-page > .hero > *,
.rc-hero > *,
.sc-hero > *,
.aio-hero > *,
.kd-hero > *,
.tq-hero > *,
.sa-hero > *,
.glossary-hero > * {
  position: relative;
  z-index: 1;
}

.std-title,
.ds-hero h1,
.std-hero h1,
.tool-page > .tool-hero h1,
.tool-page > .hero h1,
.rc-hero h1,
.sc-hero h1,
.aio-hero h1,
.kd-hero h1,
.tq-hero h1,
.sa-hero h1,
.glossary-hero h1 {
  color: #fff !important;
  
  
  
  
  
  text-wrap: balance;
}

.std-lead,
.ds-hero > p,
.std-hero p,
.tool-page > .tool-hero p,
.tool-page > .hero p,
.rc-hero p,
.sc-hero-p,
.aio-hero p,
.kd-hero p,
.tq-hero p,
.sa-hero p,
.glossary-hero p {
  color: rgba(242, 242, 242,.78) !important;
  
  
  max-width: 780px !important;
}

.std-kicker,
.sc-eyebrow,
.aio-label,
.kd-label,
.glossary-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.92) !important;
  
  
  text-transform: uppercase !important;
}

/* Cards, command panels, workspaces */
.std-tool-page > .std-command,
.std-tool-page > .std-workspace,
.std-tool-page > .sc-shell,
.std-tool-page > .aio-input-card,
.std-tool-page > .kd-input-card,
.std-tool-page > .tq-input-card,
.std-tool-page > .sa-card,
.std-tool-page > .sa-section,
.std-tool-page > .tool-workbench,
.std-tool-page > .tool-panel,
.std-tool-page > .card,
.std-tool-page > .panel,
.sa-page > #sa-grid,
.sa-content,
.sa-proof-band,
.glossary-body {
  position: relative !important;
  z-index: 5 !important;
  margin-top: var(--ds-gap) !important;
  margin-bottom: 0 !important;
  transform: none !important;
  border-radius: var(--ds-radius) !important;
  padding: 22px !important;
  background: transparent !important;
  border: 1px solid var(--ds-border) !important;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255,255,255,.64) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .std-tool-page > .std-command,
[data-theme="dark"] .std-tool-page > .std-workspace,
[data-theme="dark"] .std-tool-page > .sc-shell,
[data-theme="dark"] .std-tool-page > .aio-input-card,
[data-theme="dark"] .std-tool-page > .kd-input-card,
[data-theme="dark"] .std-tool-page > .tq-input-card,
[data-theme="dark"] .std-tool-page > .sa-card,
[data-theme="dark"] .std-tool-page > .sa-section,
[data-theme="dark"] .std-tool-page > .tool-workbench,
[data-theme="dark"] .std-tool-page > .tool-panel,
[data-theme="dark"] .std-tool-page > .card,
[data-theme="dark"] .std-tool-page > .panel,
[data-theme="dark"] .sa-page > #sa-grid,
[data-theme="dark"] .sa-content,
[data-theme="dark"] .sa-proof-band,
[data-theme="dark"] .glossary-body {
  background: transparent !important;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.std-tool-page > .std-workspace:has(.auth-wall) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Form controls */
.std-command input:not([type="checkbox"]):not([type="radio"]),
.std-command select,
.std-command textarea,
.sc-shell input:not([type="checkbox"]):not([type="radio"]),
.sc-shell select,
.sc-shell textarea,
.aio-input-card input:not([type="checkbox"]):not([type="radio"]),
.aio-input-card select,
.aio-input-card textarea,
.kd-input-card input:not([type="checkbox"]):not([type="radio"]),
.kd-input-card select,
.kd-input-card textarea,
.tq-input-card input:not([type="checkbox"]):not([type="radio"]),
.tq-input-card select,
.tq-input-card textarea,
.search-wrap input {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: var(--ds-surface-soft);
  border: 1px solid var(--ds-border-strong);
  color: var(--ds-text);
  box-sizing: border-box;
  outline: none;
}

/* Content prose becomes scan-friendly cards instead of long text sheets. */
.tool-content-wrap,
.ptb {
  margin-top: 34px;
}

.tool-content-section,
.ptb > section,
.ptb > div,
.sc-content,
.sa-content,
.sa-proof-band {
  border-radius: var(--ds-radius) !important;
  border: 1px solid var(--ds-border) !important;
  background: var(--surface) !important;
  box-shadow: 0 18px 54px rgba(19, 19, 19,.08) !important;
  padding: clamp(24px, 3vw, 40px) !important;
  margin: 22px auto !important;
  box-sizing: border-box !important;
}

.tool-content-section,
.ptb > section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 18px;
  align-items: start;
}

.tool-content-section > h2,
.tool-content-section > h3,
.tool-content-section > .tool-faq,
.ptb > section > h2,
.ptb > section > h3,
.ptb > section > .tool-faq {
  grid-column: 1 / -1;
}

[data-theme="dark"] .tool-content-section,
[data-theme="dark"] .ptb > section,
[data-theme="dark"] .ptb > div,
[data-theme="dark"] .sc-content,
[data-theme="dark"] .sa-content,
[data-theme="dark"] .sa-proof-band {
  background: var(--surface) !important;
}

.tool-content-section h2,
.ptb h2,
.sc-article h2,
.sc-faq-sec h2,
.sa-section-title {
  max-width: 980px !important;
  
  
  
  margin: 0 0 22px !important;
  color: var(--ds-text) !important;
}

.tool-content-section h3,
.ptb h3,
.sc-article h3,
.sa-value-card h3,
.sa-faq-item h3 {
  color: var(--ds-text);
  
}

.tool-content-section p,
.tool-content-section li,
.ptb p,
.ptb li,
.sc-article p,
.sc-article li,
.sa-section-copy {
  max-width: var(--ds-readable) !important;
  color: var(--ds-muted) !important;
  
  
}

.tool-content-section > p,
.ptb > p,
.ptb section > p {
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(23,23,23,.18) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.58) !important;
  box-shadow: 0 12px 34px rgba(19, 19, 19,.055) !important;
}

[data-theme="dark"] .tool-content-section > p,
[data-theme="dark"] .ptb > p,
[data-theme="dark"] .ptb section > p {
  background: rgba(255,255,255,.045);
}

.tool-content-section ul,
.tool-content-section ol,
.ptb ul,
.ptb ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
  max-width: none;
}

.tool-content-section li,
.ptb li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 42px;
  border: 1px solid rgba(23,23,23,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 28px rgba(19, 19, 19,.05);
}

.tool-content-section li::before,
.ptb li::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: 1.45em !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: var(--ds-accent) !important;
  box-shadow: 0 0 0 5px rgba(254,57,31,.10) !important;
}

.tool-faq,
.sa-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.tool-faq details,
.sa-faq-item,
.sc-faq-item,
.sa-value-card,
.sa-proof-item,
.sa-cat-card,
.term-card {
  border-radius: 18px !important;
  border: 1px solid var(--ds-border) !important;
  background: rgba(255,255,255,.68) !important;
  box-shadow: 0 14px 38px rgba(19, 19, 19,.06) !important;
}

.tool-faq details {
  padding: 18px 20px;
}

[data-theme="dark"] .tool-faq details,
[data-theme="dark"] .sa-faq-item,
[data-theme="dark"] .sc-faq-item,
[data-theme="dark"] .sa-value-card,
[data-theme="dark"] .sa-proof-item,
[data-theme="dark"] .sa-cat-card,
[data-theme="dark"] .term-card {
  background: rgba(255,255,255,.045) !important;
}

.sa-pregrid,
.sa-value-grid,
.sa-proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sc-textarea {
  min-height: 300px !important;
}

.std-command button[type="submit"],
.std-command .btn-primary,
.std-command .ca-run,
.std-command .ga4-run,
.std-command .sa-run-btn,
.sc-check-btn,
.btn-aio-analyze {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--ds-accent);
  color: #14100f;
  box-shadow: 0 18px 42px rgba(254,57,31,.24);
}

/* Glossary normalization */
.glossary-hero {
  width: var(--ds-shell) !important;
  max-width: var(--ds-shell) !important;
  margin: 20px auto 0 !important;
  padding: 44px 34px !important;
}

.glossary-hero-inner {
  width: 100% !important;
  max-width: 900px !important;
  padding: 0 !important;
}

.glossary-body {
  margin-top: var(--ds-gap);
}

.letter-jump a,
.sc-lang-btn,
.sc-clear-btn,
#periodPicker button,
#periodPicker .pp-preset {
  border-radius: 10px !important;
  border-color: var(--ds-border) !important;
  background: var(--ds-surface-soft) !important;
  color: var(--ds-muted) !important;
}

.letter-jump a:hover,
.letter-jump a.active,
.sc-lang-btn.active,
#periodPicker .pp-preset.is-active {
  background: var(--ds-accent) !important;
  border-color: var(--ds-accent) !important;
  color: #14100f !important;
}

.alpha-heading {
  border: 0 !important;
  color: var(--ds-accent) !important;
  
  
}

.alpha-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.term-list {
  align-items: stretch;
}

.term-card {
  border-radius: 14px;
  border-color: var(--ds-border);
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 32px rgba(19, 19, 19,.06);
}

[data-theme="dark"] .term-card {
  background: rgba(24, 24, 24,.74);
}

.term-card:hover {
  border-color: rgba(254,57,31,.42) !important;
  box-shadow: 0 20px 50px rgba(19, 19, 19,.12) !important;
  transform: translateY(-2px);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .std-hero,
  .sc-hero,
  .glossary-hero,
  .std-command,
  .sc-shell,
  .glossary-body,
  .term-card {
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  }

  .std-hero:hover,
  .sc-hero:hover,
  .glossary-hero:hover {
    box-shadow: 0 38px 106px rgba(19, 19, 19,.22), inset 0 1px 0 rgba(255,255,255,.14) !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --ds-shell: min(720px, calc(100vw - 24px));
    --ds-gap: 14px;
  }

  .std-tool-page,
  .std-tool-page.tool-page,
  .tool-page,
  .sc-page,
  .glossary-page {
    padding-top: 14px !important;
  }

  .std-tool-page > .std-hero,
  .sc-page > .sc-hero,
  .glossary-hero {
    padding: 24px 22px 26px !important;
    border-radius: 22px !important;
  }

  .std-title,
  .std-hero h1,
  .rc-hero h1,
  .sc-hero h1,
  .glossary-hero h1 {
    
    
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .std-lead,
  .std-hero p,
  .rc-hero p,
  .sc-hero-p,
  .glossary-hero p {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .std-hero-inner,
  .std-hero-inner > *,
  .rc-hero > *,
  .sc-hero > *,
  .glossary-hero-inner {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .std-benefits,
  .sc-engines-row {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .std-benefit,
  .sc-engine-pill {
    min-width: 0;
    max-width: 100%;
  }

  .sa-input-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .sa-input-prefix {
    min-width: 0;
  }

  .sa-input {
    width: 100%;
    min-width: 0;
  }

  .sa-run-btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    border-radius: 0 0 14px 14px;
  }

  .sa-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .std-demo {
    display: none;
  }

  .std-tool-page > .std-command,
  .std-tool-page > .sc-shell,
  .std-tool-page > .aio-input-card,
  .std-tool-page > .kd-input-card,
  .std-tool-page > .tq-input-card,
  .glossary-body {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .sc-textarea {
    min-height: 240px !important;
  }

  .sc-btn-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .sc-check-btn,
  .sc-typo-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  #periodPicker,
  .period-picker,
  .period-row,
  .std-command .quick-periods,
  .std-command .period-buttons,
  .letter-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
  }

  #periodPicker button,
  #periodPicker .pp-preset,
  .period-picker button,
  .period-row button {
    width: auto;
    min-width: 54px;
    flex: 0 0 auto;
  }
}

/* DS8: legacy pages and shared premium blocks
   This layer normalizes older templates that do not use std-tool-page yet. */
.container.tool-page,
.container.blog-page,
.glossary-page,
.blog-page {
  width: var(--ds-shell) !important;
  max-width: var(--ds-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.container.tool-page {
  padding-top: 24px !important;
  padding-bottom: 72px !important;
}

.container.tool-page > .tool-hero,
.blog-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 24px !important;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4.5vw, 62px) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: var(--ds-hero-radius) !important;
  color: #fff !important;
  background: transparent !important;
  background-size: 64px 64px, 64px 64px, auto, auto, auto !important;
  box-shadow: 0 32px 90px rgba(19, 19, 19,.20), inset 0 1px 0 rgba(255,255,255,.14) !important;
  overflow: hidden !important;
  position: relative !important;
}

.container.tool-page > .tool-hero::before,
.blog-header::before {
  content: "" !important;
  position: absolute !important;
  inset: -1px !important;
  pointer-events: none !important;
  background: transparent !important;
  opacity: .58 !important;
  transform: translateX(-28%) !important;
  animation: dsHeroSheen 9s ease-in-out infinite !important;
}

.container.tool-page > .tool-hero > *,
.blog-header > * {
  position: relative;
  z-index: 1;
}

.container.tool-page > .tool-hero h1,
.blog-header h1 {
  max-width: 860px !important;
  margin: 0 0 18px !important;
  color: #fff !important;
  
  
}

.container.tool-page > .tool-hero p,
.blog-header p {
  max-width: 780px !important;
  margin: 0 !important;
  color: rgba(245, 245, 245,.76) !important;
  
  
}

.container.tool-page > .card,
.container.tool-page > #tableSection,
.container.tool-page > .mg-wrap,
.std-tool-page > .rc-compare-strip,
.std-tool-page > .rc-shell,
.std-tool-page > .rc-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.container.tool-page > .card,
.container.tool-page > #tableSection > .card,
.container.tool-page .mg-panel,
.container.tool-page .serp-box,
.std-tool-page > .rc-compare-strip,
.std-tool-page > .rc-shell,
.auth-wall {
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-panel-radius) !important;
  background: transparent !important;
  box-shadow: var(--ds-shadow-soft) !important;
}

.container.tool-page > .card {
  padding: 24px !important;
  margin-bottom: 20px !important;
}

.container.tool-page > .mg-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  gap: 24px !important;
  align-items: start !important;
}

.container.tool-page input,
.container.tool-page textarea,
.container.tool-page select,
.std-tool-page input,
.std-tool-page textarea,
.std-tool-page select {
  border-radius: 14px;
}

.container.tool-page .btn-primary,
.container.tool-page .btn-generate,
.std-tool-page button[type="submit"],
.auth-wall-btn {
  border: 0 !important;
  border-radius: 14px !important;
  background: #fe391f !important;
  color: #14100f !important;
  box-shadow: 0 18px 42px rgba(254,57,31,.28) !important;
}

.std-tool-page > .rc-compare-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  margin-top: 18px !important;
  margin-bottom: 22px !important;
  position: relative !important;
  z-index: 1 !important;
}

.std-tool-page .rc-compare-card {
  margin: 0 !important;
  padding: 20px 22px !important;
  min-width: 0 !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: 0 18px 48px rgba(19, 19, 19,.08) !important;
  backdrop-filter: blur(18px) !important;
}

[data-theme="dark"] .std-tool-page .rc-compare-card {
  background: rgba(24, 24, 24,.78) !important;
}

.auth-wall {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(34px, 5vw, 58px) !important;
  text-align: center !important;
  overflow: hidden !important;
  position: relative !important;
}

.auth-wall::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  background-size: 44px 44px, 44px 44px, auto !important;
}

.auth-wall > * {
  position: relative !important;
  z-index: 1 !important;
}


.blog-page {
  padding-top: 24px;
  padding-bottom: 82px;
}

.blog-header {
  min-height: 300px;
  display: grid;
  align-content: center;
}

.blog-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
  gap: 24px !important;
}

.tag-filter {
  width: 100% !important;
  margin: 0 0 24px !important;
}

.post-card {
  border-radius: 22px;
  border: 1px solid var(--ds-border);
  background: var(--ds-card);
  box-shadow: var(--ds-shadow-soft);
  overflow: hidden;
}

.post-card-cover {
  height: 210px;
}

.post-card-body {
  padding: 24px;
}

.post-title {
  color: var(--ds-text);
  
  
}

.post-excerpt {
  color: var(--ds-muted);
  
  
}

.glossary-hero {
  margin-top: 24px !important;
}

.glossary-body {
  margin-top: 22px !important;
}

.std-tool-page > .rc-compare-strip,
.std-tool-page > .rc-shell,
.std-tool-page > .rc-content {
  width: var(--ds-shell) !important;
  max-width: var(--ds-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.std-tool-page > .rc-shell {
  padding: 26px !important;
}

/* The rule exists to centre the sign-in card, and `display: flex` with no
   direction laid the whole workspace out in a row instead: on
   /tools/organic-performance-bridge the status box, the loading panel and both
   result tables became columns beside the card, 92px wide apiece. Anyone whose
   Google session had expired saw the tool in that state. The card centres
   itself; the workspace stacks, which is what a workspace does. */
.std-tool-page > .std-workspace:has(.auth-wall) {
  width: var(--ds-shell) !important;
  max-width: var(--ds-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* In a row it was sized by its content and centred by justify-content; in a
   column it would stretch to the full 1200px, which is a wide sign-in form. */
.std-tool-page > .std-workspace:has(.auth-wall) > .auth-wall {
  align-self: center !important;
  width: 100% !important;
  max-width: 560px !important;
}

@media (max-width: 900px) {
  .container.tool-page,
  .container.blog-page,
  .blog-page,
  .glossary-page {
    width: var(--ds-shell);
    max-width: var(--ds-shell);
  }

  .container.tool-page > .tool-hero,
  .blog-header {
    padding: 30px 22px !important;
    border-radius: 24px !important;
    min-height: 0 !important;
  }

  .container.tool-page > .tool-hero h1,
  .blog-header h1 {
    
  }

  .container.tool-page > .mg-wrap,
  .std-tool-page > .rc-compare-strip,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .auth-wall {
    max-width: 100% !important;
    padding: 30px 22px !important;
    border-radius: 24px !important;
  }

  .std-tool-page > .rc-compare-strip,
  .std-tool-page > .rc-shell,
  .std-tool-page > .rc-content {
    width: var(--ds-shell) !important;
    max-width: var(--ds-shell) !important;
  }
}

/* DS10: readable SEO/FAQ sections for text tools.
   Keep the wrapper unframed; only the meaningful content blocks are cards. */
.std-tool-page > .sc-content,
.std-tool-page > .rc-content {
  width: var(--ds-shell) !important;
  max-width: var(--ds-shell) !important;
  margin: 28px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

.std-tool-page .sc-article,
.std-tool-page .sc-faq-sec,
.std-tool-page .rc-article,
.std-tool-page .rc-faq {
  min-width: 0 !important;
  height: auto !important;
  padding: clamp(24px, 2.4vw, 34px) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 24px !important;
  background: var(--surface) !important;
  box-shadow: 0 18px 54px rgba(19, 19, 19,.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

[data-theme="dark"] .std-tool-page .sc-article,
[data-theme="dark"] .std-tool-page .sc-faq-sec,
[data-theme="dark"] .std-tool-page .rc-article,
[data-theme="dark"] .std-tool-page .rc-faq {
  background: var(--surface) !important;
}

.std-tool-page .sc-article h2,
.std-tool-page .sc-faq-sec h2,
.std-tool-page .rc-article h2,
.std-tool-page .rc-faq h2 {
  max-width: 760px !important;
  margin: 0 0 20px !important;
  color: var(--ds-text) !important;
  
  
  
}

.std-tool-page .sc-article h3,
.std-tool-page .rc-article h3 {
  margin: 26px 0 12px !important;
  
  
  
  color: var(--ds-text) !important;
}

.std-tool-page .sc-article p,
.std-tool-page .rc-article p {
  max-width: 72ch !important;
  margin: 0 0 14px !important;
  color: var(--ds-muted) !important;
  
  
}

.std-tool-page .sc-article ol,
.std-tool-page .sc-article ul,
.std-tool-page .rc-article ol,
.std-tool-page .rc-article ul {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: ds-step !important;
}

.std-tool-page .sc-article li,
.std-tool-page .rc-article li {
  position: relative !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 13px 16px 13px 48px !important;
  border: 1px solid rgba(23,23,23,.16) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.58) !important;
  box-shadow: 0 10px 28px rgba(19, 19, 19,.045) !important;
  color: var(--ds-muted) !important;
  
  
}

[data-theme="dark"] .std-tool-page .sc-article li,
[data-theme="dark"] .std-tool-page .rc-article li {
  background: rgba(255,255,255,.045) !important;
}

.std-tool-page .sc-article li::before,
.std-tool-page .rc-article li::before {
  counter-increment: ds-step !important;
  content: counter(ds-step) !important;
  position: absolute !important;
  left: 14px !important;
  top: 12px !important;
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 9px !important;
  background: var(--ds-accent) !important;
  color: #14100f !important;
  
  box-shadow: 0 8px 18px rgba(254,57,31,.22) !important;
}

.std-tool-page .sc-faq-item,
.std-tool-page .rc-faq-item {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 1px solid rgba(23,23,23,.16) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow: 0 10px 28px rgba(19, 19, 19,.045) !important;
  overflow: hidden !important;
}

[data-theme="dark"] .std-tool-page .sc-faq-item,
[data-theme="dark"] .std-tool-page .rc-faq-item {
  background: rgba(255,255,255,.045) !important;
}

.std-tool-page .sc-faq-item summary,
.std-tool-page .rc-faq-item h3 {
  min-height: 52px !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  color: var(--ds-text) !important;
  
  
  
}

.std-tool-page .rc-faq-item h3 {
  border-bottom: 1px solid rgba(23,23,23,.12) !important;
}

.std-tool-page .sc-faq-item p,
.std-tool-page .rc-faq-item p {
  margin: 0 !important;
  padding: 0 18px 18px !important;
  color: var(--ds-muted) !important;
  
  
}

.std-tool-page .sc-article kbd {
  padding: 2px 7px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(254,57,31,.24) !important;
  background: rgba(254,57,31,.10) !important;
  /* --ds-accent is the fill red and does not change with the theme; on the
     tinted chip in the dark theme it measured 4.09:1. --accent2 is the red the
     palette defines for text and follows both themes. */
  color: var(--accent2) !important;
  
}

@media (max-width: 900px) {
  .std-tool-page > .sc-content,
  .std-tool-page > .rc-content {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }

  .std-tool-page .sc-article,
  .std-tool-page .sc-faq-sec,
  .std-tool-page .rc-article,
  .std-tool-page .rc-faq {
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .std-tool-page .sc-article h2,
  .std-tool-page .sc-faq-sec h2,
  .std-tool-page .rc-article h2,
  .std-tool-page .rc-faq h2 {
    
  }
}

/* DS12: full-site audit cleanup.
   Normalize older tool families that still used full-viewport blocks. */
.std-tool-page > :is(
  .sc-guide,
  .sc-about,
  .sc-faq,
  .mc-guide-section,
  .pa-layout,
  .pa-copy,
  .ec-layout,
  .ec-copy,
  .acd-grid,
  .sa-seo-article,
  .error-box,
  .sc-progress,
  .sc-summary,
  .sc-health,
  .sc-system-notice,
  .sc-insights,
  .sc-patterns,
  .sc-type-summary,
  .sc-all-good,
  .sc-issues,
  .sc-export-bar,
  .sc-pages-wrap
),
.sa-seo-article,
.tq-page,
.sa-page,
.sa-page > :is(
  .sa-hero,
  .rc-hero,
  .sa-pregrid,
  .sa-content,
  #sa-results,
  .sa-header-card,
  .sa-stats,
  .sa-results-grid
) {
  width: var(--ds-shell) !important;
  max-width: var(--ds-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.std-tool-page > :is(.error-box, .sc-progress, .sc-summary, .sc-health, .sc-system-notice, .sc-insights, .sc-patterns, .sc-type-summary, .sc-all-good, .sc-issues, .sc-export-bar, .sc-pages-wrap) {
  margin-top: 18px;
}

.std-tool-page > :is(.sc-guide, .sc-about, .sc-faq, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article),
.sa-seo-article,
.tq-page > .tq-info,
.sa-page > .sa-content {
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-panel-radius) !important;
  background: var(--surface) !important;
  box-shadow: var(--ds-shadow-soft) !important;
  padding: clamp(24px, 3vw, 40px) !important;
  margin-top: 24px !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

[data-theme="dark"] .std-tool-page > :is(.sc-guide, .sc-about, .sc-faq, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article),
[data-theme="dark"] .sa-seo-article,
[data-theme="dark"] .tq-page > .tq-info,
[data-theme="dark"] .sa-page > .sa-content {
  background: var(--surface) !important;
}

.std-tool-page > :is(.pa-layout, .ec-layout, .acd-grid),
.tq-page > .tq-shell {
  margin-top: 22px !important;
}


.sa-page {
  padding-left: 0;
  padding-right: 0;
}

.sa-page > :is(.sa-pregrid, .sa-value-grid, .sa-proof-grid, .sa-stats) {
  max-width: 100% !important;
}

.sa-page .sa-content,
.sa-page .sa-proof-band {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.std-tool-page > .error-box:empty,
.std-tool-page > .sc-error:empty,
.std-tool-page > .sc-system-notice:empty,
.std-tool-page > .sc-patterns:empty,
.std-tool-page > .sc-type-summary:empty,
.std-tool-page > .sc-issues:empty {
  display: none;
}

.std-tool-page > .error-box:not(:empty),
.std-tool-page > .sc-error:not(:empty) {
  border: 1px solid rgba(217,77,106,.22) !important;
  border-radius: 18px !important;
  background: rgba(217,77,106,.06) !important;
  color: var(--ds-text) !important;
  padding: 16px 18px !important;
  box-shadow: 0 14px 34px rgba(217,77,106,.08) !important;
}

.std-tool-page :is(.sc-guide, .sc-about, .sc-faq, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article) h2,
.sa-seo-article h2,
.tq-info h2,
.sa-content h2 {
  margin-top: 0 !important;
  color: var(--ds-text) !important;
  
  
  
}

.std-tool-page :is(.sc-guide, .sc-about, .sc-faq, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article) p,
.std-tool-page :is(.sc-guide, .sc-about, .sc-faq, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article) li,
.sa-seo-article p,
.sa-seo-article li,
.tq-info p,
.tq-info li,
.sa-content p,
.sa-content li {
  color: var(--ds-muted) !important;
  
  
}

.std-tool-page :is(.sc-guide, .sc-about, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article) ol,
.std-tool-page :is(.sc-guide, .sc-about, .mc-guide-section, .pa-copy, .ec-copy, .sa-seo-article) ul,
.sa-seo-article ol,
.sa-seo-article ul {
  max-width: none !important;
}

.about-hero,
.about-cta {
  width: var(--ds-shell);
  max-width: var(--ds-shell);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.about-hero > .container,
.about-cta > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.about-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  max-width: 100%;
}

.about-content,
.about-name,
.why-block,
.stat-row,
.stat-card,
.cta-box {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.about-name {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .std-tool-page > :is(
    .sc-guide,
    .sc-about,
    .sc-faq,
    .mc-guide-section,
    .pa-layout,
    .pa-copy,
    .ec-layout,
    .ec-copy,
    .acd-grid,
    .sa-seo-article,
    .error-box,
    .sc-progress,
    .sc-summary,
    .sc-health,
    .sc-system-notice,
    .sc-insights,
    .sc-patterns,
    .sc-type-summary,
    .sc-all-good,
    .sc-issues,
    .sc-export-bar,
    .sc-pages-wrap
  ),
  .sa-seo-article,
  .tq-page,
  .sa-page,
  .about-hero,
  .about-cta {
    width: var(--ds-shell);
    max-width: var(--ds-shell);
  }


  .tq-page > .tq-shell,
  .std-tool-page > :is(.pa-layout, .ec-layout, .acd-grid) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }
}

/* DS13: mobile home hero audit.
   Keep the premium visual preview, but stop the first screen from becoming a
   two-page vertical dashboard on phones. */
@media (max-width: 720px) {


  .hero {
    min-height: auto !important;
    padding-top: 22px !important;
    padding-bottom: 34px !important;
  }

  .hero::before {
    height: 430px !important;
    inset: -4% -18% auto !important;
  }

  .hero-grid {
    gap: 24px !important;
  }

  .hero h1 {
    margin-top: 18px !important;
    margin-bottom: 16px !important;
    max-width: 10ch !important;
  }

  .hero-lead {
    margin-bottom: 20px;
  }

  .hero-actions {
    margin-bottom: 16px;
  }

  .audit-console {
    padding: 12px;
    border-radius: 20px;
  }

  .console-head {
    flex-direction: row;
    align-items: center;
    padding-bottom: 10px;
  }

  .console-title {
    
    
  }

  .audit-form {
    padding: 10px;
  }

  .audit-field,
  .audit-submit {
    min-height: 46px;
    height: 46px;
  }

  .score-board {
    display: block;
    margin-top: 10px;
  }

  .score-card {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 14px;
  }

  .score-value {
    
    
    grid-row: span 2;
  }

  .score-ring {
    height: 5px;
  }

  .signal-stack,
  .mini-report {
    display: none;
  }
}

@media (max-width: 440px) {
  .hero h1 {
    max-width: 9ch !important;
  }

  .trust-row {
    gap: 8px;
  }

  .trust-pill {
    min-height: 28px;
    
  }
}

@keyframes ds-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ds-soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,92,.26); }
  55% { box-shadow: 0 0 0 8px rgba(255,122,92,0); }
}

@keyframes ds-border-sheen {
  from { transform: translateX(-115%); }
  to { transform: translateX(115%); }
}

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

@keyframes ds-runner-progress {
  0% { transform: translateX(-36%) scaleX(.42); }
  45% { transform: translateX(0) scaleX(.68); }
  100% { transform: translateX(28%) scaleX(.82); }
}

@keyframes ds-runner-cursor {
  0%, 42% { opacity: .28; }
  43%, 100% { opacity: 1; }
}

@keyframes ds-runner-scan {
  0% { transform: scaleX(.38); opacity: .88; }
  42% { transform: scaleX(.56); opacity: 1; }
  72% { transform: scaleX(.68); opacity: 1; }
  100% { transform: scaleX(.62); opacity: .92; }
}

@keyframes ds-runner-active-glow {
  0%, 100% { background-color: rgba(255,84,54,0); border-color: transparent; }
  50% { background-color: rgba(255,84,54,.075); border-color: rgba(255,84,54,.14); }
}

@keyframes ds-runner-caret {
  0%, 45% { opacity: 0; }
  46%, 100% { opacity: 1; }
}

.std-tool-page,
.container.tool-page,
.rdc-page,
.tq-page,
.sa-page,
.sc-page {
  --ds-local-gap: 18px;
}

.std-tool-page > :is(.std-command, .std-workspace, .aio-input-card, .kd-input-card, .tq-input-card, .sa-card, .tool-workbench, .tool-panel, .card, .panel),
.container.tool-page > :is(.card, .panel, .input-panel, .search-card, #tableSection),
.rdc-batch-wrap,
.rdc-summary,
.rdc-batch-table-wrap,
.rdc-headers-wrap,
.rdc-card,
.rdc-step,
.rdc-link-card,
.rdc-insight,
.rdc-hop,
.gua-panel,
.gua-card,
.rc-compare-card,
.rc-result-panel,
.acd-card,
.modal,
.drawer,
.auth-wall,
.sum-card,
.metric-card,
.results-card,
.empty-card,
.form-card,
.advice-card,
.delta-summary,
.sa-section,
.sa-overview,
.blueprint-card,
.intent-kv,
.rec-item,
.gap-priority-item,
.finding,
.post-card,
.term-card {
  position: relative !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-panel-radius) !important;
  background: var(--surface) !important;
  box-shadow: var(--ds-shadow) !important;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
}

[data-theme="dark"] .std-tool-page > :is(.std-command, .std-workspace, .aio-input-card, .kd-input-card, .tq-input-card, .sa-card, .tool-workbench, .tool-panel, .card, .panel),
[data-theme="dark"] .container.tool-page > :is(.card, .panel, .input-panel, .search-card, #tableSection),
[data-theme="dark"] .rdc-batch-wrap,
[data-theme="dark"] .rdc-summary,
[data-theme="dark"] .rdc-batch-table-wrap,
[data-theme="dark"] .rdc-headers-wrap,
[data-theme="dark"] .rdc-card,
[data-theme="dark"] .rdc-step,
[data-theme="dark"] .rdc-link-card,
[data-theme="dark"] .rdc-insight,
[data-theme="dark"] .rdc-hop,
[data-theme="dark"] .gua-panel,
[data-theme="dark"] .gua-card,
[data-theme="dark"] .rc-compare-card,
[data-theme="dark"] .rc-result-panel,
[data-theme="dark"] .acd-card,
[data-theme="dark"] .modal,
[data-theme="dark"] .drawer,
[data-theme="dark"] .auth-wall,
[data-theme="dark"] .sum-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .results-card,
[data-theme="dark"] .empty-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .advice-card,
[data-theme="dark"] .delta-summary,
[data-theme="dark"] .sa-section,
[data-theme="dark"] .sa-overview,
[data-theme="dark"] .blueprint-card,
[data-theme="dark"] .intent-kv,
[data-theme="dark"] .rec-item,
[data-theme="dark"] .gap-priority-item,
[data-theme="dark"] .finding,
[data-theme="dark"] .post-card,
[data-theme="dark"] .term-card {
  background: var(--surface) !important;
}

.std-tool-page > :is(.std-command, .std-workspace, .aio-input-card, .kd-input-card, .tq-input-card, .sa-card, .tool-workbench, .tool-panel, .card, .panel)::before,
.container.tool-page > :is(.card, .panel, .input-panel, .search-card, #tableSection)::before,
.rdc-batch-wrap::before,
.rdc-summary::before,
.rdc-card::before,
.auth-wall::before,
.modal::before,
.drawer::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  height: 1px !important;
  background: transparent !important;
  opacity: .8 !important;
  pointer-events: none !important;
}

.std-tool-page > :is(.std-command, .std-workspace, .aio-input-card, .kd-input-card, .tq-input-card, .sa-card, .tool-workbench, .tool-panel, .card, .panel),
.container.tool-page > :is(.card, .panel, .input-panel, .search-card, #tableSection),
.rdc-batch-wrap,
.rdc-summary,
.rdc-batch-table-wrap,
.rdc-headers-wrap,
.rdc-card,
.auth-wall,
.modal {
  animation: ds-rise-in .48s cubic-bezier(.2,.8,.2,1) both;
}

@media (hover: hover) {
  .std-tool-page > :is(.tool-panel, .card, .panel, .sa-section):hover,
  .container.tool-page > :is(.card, .panel):hover,
  .rdc-card:hover,
  .rdc-link-card:hover,
  .term-card:hover,
  .post-card:hover,
  .advice-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--ds-border-strong) !important;
    box-shadow: var(--ds-shadow-lg) !important;
  }
}

.std-tool-page input:not([type="checkbox"]):not([type="radio"]),
.std-tool-page textarea,
.std-tool-page select,
.container.tool-page input:not([type="checkbox"]):not([type="radio"]),
.container.tool-page textarea,
.container.tool-page select,
.rdc-batch-textarea,
.gua-input,
.sa-field input,
.sa-field select,
.sa-field textarea,
.sa-input,
.ti-search-input,
.audit-field input,
.sc-shell input:not([type="checkbox"]):not([type="radio"]),
.sc-shell textarea,
.aio-input-card input,
.aio-input-card textarea,
.aio-input-card select,
.kd-input-card input,
.kd-input-card textarea,
.kd-input-card select,
.tq-input-card input,
.tq-input-card textarea,
.tq-input-card select,
.search-wrap input {
  min-height: var(--ds-control-h) !important;
  border: 1px solid var(--ds-border-strong) !important;
  border-radius: var(--ds-control-radius) !important;
  background: var(--surface) !important;
  color: var(--ds-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 28px rgba(19, 19, 19,.045) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease !important;
}

[data-theme="dark"] .std-tool-page input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .std-tool-page textarea,
[data-theme="dark"] .std-tool-page select,
[data-theme="dark"] .container.tool-page input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .container.tool-page textarea,
[data-theme="dark"] .container.tool-page select,
[data-theme="dark"] .rdc-batch-textarea,
[data-theme="dark"] .gua-input,
[data-theme="dark"] .sa-field input,
[data-theme="dark"] .sa-field select,
[data-theme="dark"] .sa-field textarea,
[data-theme="dark"] .sa-input,
[data-theme="dark"] .ti-search-input,
[data-theme="dark"] .audit-field input,
[data-theme="dark"] .sc-shell input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .sc-shell textarea,
[data-theme="dark"] .aio-input-card input,
[data-theme="dark"] .aio-input-card textarea,
[data-theme="dark"] .aio-input-card select,
[data-theme="dark"] .kd-input-card input,
[data-theme="dark"] .kd-input-card textarea,
[data-theme="dark"] .kd-input-card select,
[data-theme="dark"] .tq-input-card input,
[data-theme="dark"] .tq-input-card textarea,
[data-theme="dark"] .tq-input-card select,
[data-theme="dark"] .search-wrap input {
  background:
    linear-gradient(180deg, rgba(35, 35, 35,.92), rgba(22, 22, 22,.86)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 34px rgba(0,0,0,.18) !important;
}

.std-tool-page input:focus,
.std-tool-page textarea:focus,
.std-tool-page select:focus,
.container.tool-page input:focus,
.container.tool-page textarea:focus,
.container.tool-page select:focus,
.rdc-batch-textarea:focus,
.gua-input:focus,
.sa-field input:focus,
.sa-field select:focus,
.sa-field textarea:focus,
.sa-input:focus,
.ti-search-input:focus,
.audit-field input:focus,
.sc-shell input:focus,
.sc-shell textarea:focus,
.aio-input-card input:focus,
.aio-input-card textarea:focus,
.aio-input-card select:focus,
.kd-input-card input:focus,
.kd-input-card textarea:focus,
.kd-input-card select:focus,
.tq-input-card input:focus,
.tq-input-card textarea:focus,
.tq-input-card select:focus {
  border-color: rgba(254,57,31,.64) !important;
  box-shadow: var(--ds-focus), inset 0 1px 0 rgba(255,255,255,.75) !important;
  outline: none !important;
}

.std-tool-page label,
.std-tool-page .card-label,
.container.tool-page label,
.rdc-section-title,
.rdc-sum-label,
.rdc-headers-table th,
.rdc-batch-table th,
.sa-field label,
.sa-card-title,
.console-title,
.mini-report-title {
  color: var(--ds-muted) !important;
  
  
  
  
  text-transform: uppercase !important;
}

.std-tool-page button,
.std-tool-page .btn,
.std-tool-page .btn-run,
.std-tool-page .primary-btn,
.std-tool-page .submit-btn,
.std-tool-page .run-btn,
.std-tool-page .sa-run-btn,
.container.tool-page button,
.container.tool-page .btn,
.container.tool-page .btn-primary,
.container.tool-page .btn-generate,
.rdc-run-btn,
.sa-run-btn,
.audit-submit,
.auth-wall-btn,
.btn-analyze,
.btn-aio-analyze,
.sc-check-btn,
.csv-dl-btn,
.export-btn {
  min-height: var(--ds-control-h) !important;
  border-radius: var(--ds-control-radius) !important;
  border: 1px solid var(--ds-border-strong) !important;
  
  
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease !important;
}

.std-tool-page button[type="submit"],
.std-tool-page .btn-run,
.std-tool-page .primary-btn,
.std-tool-page .submit-btn,
.std-tool-page .run-btn,
.std-tool-page .sa-run-btn,
.container.tool-page .btn-primary,
.container.tool-page .btn-generate,
.rdc-run-btn,
.sa-run-btn,
.audit-submit,
.btn-analyze,
.btn-aio-analyze,
.sc-check-btn,
.auth-wall-btn {
  position: relative !important;
  overflow: hidden !important;
  border-color: transparent !important;
  color: #14100f !important;
  background: var(--accent) !important;
  box-shadow: var(--ds-cta-shadow), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.std-tool-page button[type="submit"]::after,
.std-tool-page .btn-run::after,
.std-tool-page .primary-btn::after,
.std-tool-page .submit-btn::after,
.std-tool-page .run-btn::after,
.std-tool-page .sa-run-btn::after,
.container.tool-page .btn-primary::after,
.container.tool-page .btn-generate::after,
.rdc-run-btn::after,
.sa-run-btn::after,
.audit-submit::after,
.btn-analyze::after,
.btn-aio-analyze::after,
.sc-check-btn::after,
.auth-wall-btn::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: var(--accent) !important;
  transform: translateX(-120%) !important;
  transition: transform .55s ease !important;
  pointer-events: none !important;
}

.std-tool-page button[type="submit"]:hover::after,
.std-tool-page .btn-run:hover::after,
.std-tool-page .primary-btn:hover::after,
.std-tool-page .submit-btn:hover::after,
.std-tool-page .run-btn:hover::after,
.std-tool-page .sa-run-btn:hover::after,
.container.tool-page .btn-primary:hover::after,
.container.tool-page .btn-generate:hover::after,
.rdc-run-btn:hover::after,
.sa-run-btn:hover::after,
.audit-submit:hover::after,
.btn-analyze:hover::after,
.btn-aio-analyze:hover::after,
.sc-check-btn:hover::after,
.auth-wall-btn:hover::after {
  transform: translateX(120%) !important;
}

.std-tool-page button:hover,
.std-tool-page .btn:hover,
.container.tool-page button:hover,
.container.tool-page .btn:hover,
.rdc-run-btn:hover,
.sa-run-btn:hover,
.audit-submit:hover,
.auth-wall-btn:hover,
.btn-analyze:hover,
.btn-aio-analyze:hover,
.sc-check-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--ds-cta-shadow) !important;
}

.std-tool-page button:disabled,
.container.tool-page button:disabled,
.rdc-run-btn:disabled,
.sa-run-btn:disabled,
.audit-submit:disabled,
.btn-analyze:disabled,
.btn-aio-analyze:disabled,
.sc-check-btn:disabled {
  opacity: .48 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.sc-lang-btn,
.filter-btn,
#periodPicker button,
.period-picker button,
.period-row button,
.std-command .quick-periods button,
.std-command .period-buttons button,
.rdc-badge,
.feat-chip,
.tag,
.pt-pill,
.tool-tag,
.trust-pill {
  min-height: 30px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ds-border) !important;
  background: rgba(254,57,31,.075) !important;
  color: var(--ds-muted) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42) !important;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease !important;
}

.sc-lang-btn.active,
.filter-btn.active,
#periodPicker button.active,
.period-picker button.active,
.period-row button.active,
.std-command .quick-periods button.active,
.std-command .period-buttons button.active,
.rdc-badge-ok,
.feat-chip.yes {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.rdc-progress-bar,
.progress-track,
.score-ring {
  height: 7px !important;
  border-radius: 999px !important;
  background: rgba(122, 122, 122,.16) !important;
  overflow: hidden !important;
}

.rdc-progress-fill,
.progress-track span,
.score-ring span {
  background: var(--ds-accent-2) !important;
  box-shadow: 0 0 20px rgba(254,57,31,.34) !important;
}

.rdc-loading.visible,
.loading,
.sa-spinner,
.rdc-spinner {
  animation: ds-rise-in .32s ease both;
}

.rdc-spinner,
.sa-spinner,
.spinner {
  border-top-color: var(--ds-accent);
  animation: ds-spin .8s linear infinite;
}

.rdc-summary,
.summary-grid,
.sa-overview-grid,
.mini-report-body {
  gap: 12px;
}

.rdc-sum-item,
.sum-card,
.metric-card,
.report-metric,
.sa-ov-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--ds-border);
  padding: 14px 16px;
}

[data-theme="dark"] .rdc-sum-item,
[data-theme="dark"] .sum-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .report-metric,
[data-theme="dark"] .sa-ov-item {
  background: var(--surface);
}

.rdc-sum-val,
.sum-card strong,
.metric-card strong,
.report-metric b,
.sa-ov-value,
.score-value {
  color: var(--ds-text) !important;
  
}

.rdc-chain {
  gap: 10px !important;
}

.rdc-hop {
  border-bottom: 1px solid var(--ds-border) !important;
  border-radius: 16px !important;
  animation: ds-rise-in .34s ease both;
}

.rdc-hop-num,
.rec-bullet,
.sa-step-dot,
.score-dot,
.console-live::before,
.scan-dot {
  animation: ds-soft-pulse 1.8s ease-in-out infinite;
}

.rdc-status,
.rdc-code,
.rdc-hdr-name {
  border-radius: 10px !important;
  
}

.rdc-batch-table,
.rdc-headers-table,
.kw-table,
.data-table,
.sa-table,
.rdc-types-table,
.ptb table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.rdc-batch-table th,
.rdc-headers-table th,
.kw-table th,
.data-table th,
.sa-table th,
.rdc-types-table th,
.ptb th {
  background: rgba(254,57,31,.07) !important;
  border-bottom: 1px solid var(--ds-border) !important;
}

.rdc-batch-table td,
.rdc-headers-table td,
.kw-table td,
.data-table td,
.sa-table td,
.rdc-types-table td,
.ptb td {
  border-bottom: 1px solid rgba(122, 122, 122,.14) !important;
}

.rdc-batch-table tr:hover td,
.rdc-headers-table tr:hover td,
.kw-table tr:hover td,
.data-table tr:hover td,
.sa-table tr:hover td,
.rdc-types-table tr:hover td {
  background: rgba(254,57,31,.055) !important;
}

.modal-overlay {
  background: rgba(14, 14, 14,.58) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

.modal {
  box-shadow: 0 34px 110px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.18) !important;
  animation: ds-rise-in .28s cubic-bezier(.2,.8,.2,1) both !important;
}

.drawer {
  border-radius: 24px 0 0 24px !important;
  box-shadow: -28px 0 84px rgba(0,0,0,.22) !important;
}

.close-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid var(--ds-border) !important;
  background: rgba(254,57,31,.08) !important;
}

.auth-wall {
  text-align: center !important;
  max-width: 560px !important;
}


.rdc-error,
.sa-error,
.sc-error:not(:empty),
.error-box:not(:empty) {
  border-radius: 16px !important;
  border: 1px solid rgba(217,77,106,.24) !important;
  background:
    linear-gradient(135deg, rgba(217,77,106,.09), rgba(217,77,106,.045)) !important;
  color: var(--ds-text) !important;
  box-shadow: 0 16px 42px rgba(217,77,106,.08) !important;
  animation: ds-rise-in .28s ease both !important;
}

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

@media (max-width: 720px) {
  :root {
    --ds-control-h: 48px;
    --ds-control-radius: 12px;
    --ds-panel-radius: 18px;
  }

  .std-tool-page > :is(.std-command, .std-workspace, .aio-input-card, .kd-input-card, .tq-input-card, .sa-card, .tool-workbench, .tool-panel, .card, .panel),
  .container.tool-page > :is(.card, .panel, .input-panel, .search-card, #tableSection),
  .rdc-batch-wrap,
  .rdc-summary,
  .rdc-batch-table-wrap,
  .rdc-headers-wrap,
  .rdc-card,
  .auth-wall,
  .modal {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .rdc-hop {
    grid-template-columns: 28px 54px minmax(0, 1fr) !important;
  }

  .drawer {
    width: min(100vw, 440px) !important;
    border-radius: 22px 22px 0 0 !important;
  }
}

/* DS18: SEO locked state.
   Replace the generic sign-in block with a product preview and hide empty
   report shells for locked tools. */
.std-workspace.qc-locked #tabsBar,
.std-workspace.qc-locked .qc-tabs,
.std-workspace.qc-locked .qc-section,
.std-workspace.qc-locked .qc-summary,
.std-workspace.qc-locked .qc-insights,
.std-workspace.qc-locked #queriesSection,
.std-workspace.qc-locked #pagesSection {
  display: none !important;
}

.std-workspace.qc-locked {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.std-workspace.qc-locked::before {
  display: none !important;
}

.auth-wall {
  width: min(960px, 100%) !important;
  max-width: min(960px, 100%) !important;
  min-height: 360px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .78fr) !important;
  gap: clamp(18px, 3vw, 34px) !important;
  align-items: center !important;
  text-align: left !important;
  padding: clamp(28px, 4vw, 46px) !important;
}

.auth-wall-copy,
.auth-wall-preview,
.auth-wall > * {
  position: relative !important;
  z-index: 1 !important;
}


.auth-audit-runner {
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--accent) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 24px 72px rgba(14, 14, 14,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
  color: #f6f6f6 !important;
}

[data-theme="dark"] .auth-audit-runner {
  background: var(--accent) !important;
}


@media (max-width: 860px) {
  .auth-wall {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    min-height: 0 !important;
  }


}

@media (max-width: 520px) {
  .auth-wall {
    padding: 24px 18px !important;
    gap: 18px !important;
  }


  .auth-audit-runner {
    padding: 0 !important;
  }


}

/* DS24: hero is a compact audit entry point.
   The animated runner lives in the workflow section below, so the first
   viewport does not duplicate the same console twice. */
.hero .audit-console {
  padding: 18px !important;
  background: transparent !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow) !important;
}

.hero .audit-console::before {
  display: block !important;
}

.hero .audit-console > .home-audit-runner {
  display: none;
}

.hero .audit-console > .console-head,
.hero .audit-console > .score-board,
.hero .audit-console > .mini-report {
  display: flex !important;
}

.hero .audit-form.audit-form,
.hero .audit-form {
  margin: 0 !important;
  padding: 14px !important;
  grid-template-columns: 1fr !important;
  align-items: center !important;
  background: rgba(14, 14, 14,.04) !important;
  border-color: var(--border) !important;
  border-radius: 16px !important;
}

.hero .audit-field {
  height: 50px;
  border-color: var(--border-strong);
  background: var(--bg);
}

.hero .audit-field input {
  color: var(--text);
}

.hero .audit-field input::placeholder {
  color: var(--muted2) !important;
}

.hero .audit-submit {
  min-height: 54px !important;
  white-space: nowrap !important;
}

.hero .score-board {
  display: grid;
}

.hero .mini-report {
  display: block;
}

.terminal-card .terminal-line {
  opacity: 1;
  transform: none;
  animation: none;
}

.terminal-card .terminal-line:nth-child(1),
.terminal-card .terminal-line:nth-child(2) {
  color: #f6f6f6;
}

.terminal-card .terminal-line:nth-child(3) {
  color: #ff8f7a !important;
  border: 1px solid rgba(255,84,54,.14) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  background: rgba(255,84,54,.055) !important;
  animation: ds-runner-active-glow 1.9s ease-in-out infinite !important;
}

.terminal-card .terminal-line:nth-child(4),
.terminal-card .terminal-line:nth-child(5) {
  opacity: .42;
}

.terminal-card .terminal-line:nth-child(3)::after {
  content: none !important;
  display: none !important;
}

.terminal-card .progress-track span {
  animation: ds-runner-scan 3.1s ease-in-out infinite alternate;
}

@media (max-width: 720px) {
  .hero .audit-console {
    border-radius: 20px;
  }

  .hero .audit-form {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .hero .audit-field,
  .hero .audit-submit {
    width: 100%;
  }
}

/* DS25: home workflow runner should behave like a premium live terminal,
   not a second form card or a static mockup. */
@keyframes ds-terminal-line-breathe {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 179, 161,0); }
  50% { text-shadow: 0 0 18px rgba(255, 179, 161,.42); }
}

@keyframes ds-terminal-progress-live {
  0% { width: 22%; opacity: .82; }
  45% { width: 38%; opacity: 1; }
  72% { width: 46%; opacity: 1; }
  100% { width: 38%; opacity: .94; }
}

@keyframes ds-terminal-subtle-scan {
  from { transform: translateX(-30%); opacity: .22; }
  to { transform: translateX(30%); opacity: .42; }
}


@media (max-width: 720px) {


}

#resultsWrap,
#results,
#sa-results,
#pa-results,
#rcResults,
#aioResults,
#kdResults,
#tqResults,
.results-card,
.rc-result-panel,
.rdc-summary,
.rdc-batch-wrap,
.sc-summary,
.sc-health,
.sc-insights,
.sc-patterns,
.sc-issues,
.sc-pages-wrap,
.sa-results-grid,
.pa-results,
.report-section,
.report-panel {
  max-width: var(--ds-report-shell);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#resultsWrap,
#results,
#sa-results,
#pa-results,
#rcResults,
#aioResults,
#kdResults,
#tqResults {
  width: var(--ds-report-shell);
}

.ds-report-brief {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.5fr) !important;
  gap: 18px !important;
  padding: 22px !important;
  margin: 0 auto 18px !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 24px !important;
  background: var(--surface) !important;
  box-shadow: 0 28px 86px rgba(19, 19, 19,.12) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
}

[data-theme="dark"] .ds-report-brief {
  background: var(--surface) !important;
  box-shadow: 0 30px 92px rgba(0,0,0,.36) !important;
}

.ds-report-brief::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  height: 1px !important;
  background: transparent !important;
}

.ds-report-main {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  min-width: 0 !important;
}

.ds-report-score {
  --score-color: var(--ds-accent) !important;
  width: 84px !important;
  height: 84px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  background:
    radial-gradient(circle at center, var(--ds-surface-solid) 0 55%, transparent 56%),
    conic-gradient(var(--score-color) calc(var(--score-value, 68) * 1%), rgba(122, 122, 122,.16) 0) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), 0 16px 34px rgba(19, 19, 19,.12) !important;
}

[data-theme="dark"] .ds-report-score {
  background:
    radial-gradient(circle at center, #151515 0 55%, transparent 56%),
    conic-gradient(var(--score-color) calc(var(--score-value, 68) * 1%), rgba(255,255,255,.14) 0) !important;
}

.ds-report-score strong {
  color: var(--ds-text) !important;
  
  
}

.ds-report-kicker {
  margin: 0 0 7px !important;
  color: var(--ds-muted-2) !important;
  
  
  text-transform: uppercase !important;
}

.ds-report-title {
  margin: 0 0 7px !important;
  color: var(--ds-text) !important;
  
  
  
  
}

.ds-report-lead {
  max-width: 62ch !important;
  margin: 0 !important;
  color: var(--ds-muted) !important;
  
  
}

.ds-report-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-content: center !important;
}

.ds-report-action {
  min-height: 98px !important;
  padding: 14px !important;
  border: 1px solid rgba(254,57,31,.16) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow: 0 12px 30px rgba(19, 19, 19,.07) !important;
}

[data-theme="dark"] .ds-report-action {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.16) !important;
}

.ds-report-action b {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-bottom: 7px !important;
  color: var(--ds-text) !important;
  
  
}

.ds-report-action b::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 99px !important;
  background: var(--ds-accent-2) !important;
  box-shadow: 0 0 16px rgba(255,122,92,.42) !important;
  flex: 0 0 auto !important;
}

.ds-report-action span {
  display: block !important;
  color: var(--ds-muted) !important;
  
  
}

#resultsWrap > .card,
#results > .card,
#sa-results > .card,
#pa-results > .card,
#rcResults > .card,
#aioResults > .card,
#kdResults > .card,
#tqResults > .card,
.results-card,
.rc-result-panel,
.rdc-summary,
.sc-summary,
.sc-health,
.sc-insights,
.sc-patterns,
.sc-issues,
.sc-pages-wrap,
.sa-results-grid > *,
.pa-results > * {
  border-radius: 22px !important;
  border-color: var(--ds-border) !important;
  background: transparent !important;
  box-shadow: 0 18px 52px rgba(19, 19, 19,.08) !important;
}

[data-theme="dark"] #resultsWrap > .card,
[data-theme="dark"] #results > .card,
[data-theme="dark"] #sa-results > .card,
[data-theme="dark"] #pa-results > .card,
[data-theme="dark"] #rcResults > .card,
[data-theme="dark"] #aioResults > .card,
[data-theme="dark"] #kdResults > .card,
[data-theme="dark"] #tqResults > .card,
[data-theme="dark"] .results-card,
[data-theme="dark"] .rc-result-panel,
[data-theme="dark"] .rdc-summary,
[data-theme="dark"] .sc-summary,
[data-theme="dark"] .sc-health,
[data-theme="dark"] .sc-insights,
[data-theme="dark"] .sc-patterns,
[data-theme="dark"] .sc-issues,
[data-theme="dark"] .sc-pages-wrap,
[data-theme="dark"] .sa-results-grid > *,
[data-theme="dark"] .pa-results > * {
  background:
    linear-gradient(180deg, rgba(32, 32, 32,.88), rgba(18, 18, 18,.78)),
    var(--ds-surface-solid) !important;
}

#resultsWrap .sec-label,
#results .sec-label,
#sa-results .sec-label,
#pa-results .sec-label,
#rcResults .sec-label,
#aioResults .sec-label,
#kdResults .sec-label,
#tqResults .sec-label,
.results-card .sec-label {
  color: var(--ds-muted-2) !important;
  
  
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

.adv-stat-table,
.kw-table,
#resultsWrap table,
#results table,
#sa-results table,
#pa-results table,
#rcResults table,
#aioResults table,
#kdResults table,
#tqResults table {
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

#resultsWrap th,
#results th,
#sa-results th,
#pa-results th,
#rcResults th,
#aioResults th,
#kdResults th,
#tqResults th {
  background: rgba(254,57,31,.06) !important;
  color: var(--ds-muted-2) !important;
}

#resultsWrap td,
#results td,
#sa-results td,
#pa-results td,
#rcResults td,
#aioResults td,
#kdResults td,
#tqResults td {
  color: var(--ds-text) !important;
  border-bottom-color: rgba(23,23,23,.14) !important;
}

.diagnosis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.diagnosis-list > * {
  margin: 0 !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  background: rgba(254,57,31,.045) !important;
}

@media (max-width: 920px) {
  :root {
    --ds-report-shell: min(100%, calc(100vw - 24px));
  }

  .ds-report-brief {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .ds-report-actions {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .ds-report-main {
    grid-template-columns: 1fr !important;
  }

  .ds-report-score {
    width: 72px !important;
    height: 72px !important;
  }
}

/* DS28: normalize all locked/access states.
   Some older tools render the sign-in wall inside .err-box and inherit mono/error
   styling. Treat these as product access panels, not error messages. */
.err-box:has(.auth-wall),
.error-box:has(.auth-wall),
.sc-error:has(.auth-wall) {
  display: grid !important;
  place-items: center !important;
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin: 18px auto 26px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ds-text) !important;
  
}

.err-box:has(.auth-wall)::before,
.error-box:has(.auth-wall)::before,
.sc-error:has(.auth-wall)::before {
  display: none !important;
}

.auth-wall {
  
  color: var(--ds-text) !important;
}


.auth-wall:has(.auth-wall-copy) {
  width: min(1040px, 100%) !important;
  max-width: min(1040px, 100%) !important;
  min-height: 410px !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr) !important;
  gap: clamp(22px, 3vw, 42px) !important;
  text-align: left !important;
}


.auth-wall:not(:has(.auth-wall-copy)) {
  width: min(760px, 100%) !important;
  max-width: min(760px, 100%) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  text-align: center !important;
  padding: clamp(34px, 5vw, 56px) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 26px !important;
  background: var(--surface) !important;
  box-shadow: 0 28px 86px rgba(19, 19, 19,.12) !important;
}

[data-theme="dark"] .auth-wall:not(:has(.auth-wall-copy)) {
  background: var(--surface) !important;
}


@media (max-width: 860px) {
  .auth-wall:has(.auth-wall-copy) {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }


}

/* DS29: constrain legacy tool heroes and secondary sections.
   Older tools reuse .rc-hero without .std-hero, so they missed the shared shell
   and stretched edge-to-edge. Keep them in the same 1600px system. */
.std-tool-page > :is(.rc-hero, .tool-hero, .hero, .gua-use-cases),
.tool-page > :is(.rc-hero, .tool-hero, .hero) {
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.std-tool-page > .rc-hero {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 30px 34px !important;
  border-radius: var(--ds-radius-lg) !important;
}

.std-tool-page > .gua-use-cases {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: var(--ds-gap) !important;
  margin-bottom: 0 !important;
}

.std-tool-page > .gua-use-cases > * {
  min-width: 0 !important;
}

.gua-page > .std-workspace:has(.auth-wall) {
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1100px) {
  .std-tool-page > .gua-use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .std-tool-page > .rc-hero {
    padding: 24px 20px !important;
  }

  .std-tool-page > .gua-use-cases {
    grid-template-columns: 1fr !important;
  }
}

/* DS30: product SEO layer.
   This layer makes every tool page feel like a premium SEO product page:
   indexable SEO workflow copy, scan-friendly guides, unified legacy forms,
   and client-readable empty/report states. */
.ds-seo-intent-band {
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin: 28px auto 76px !important;
  padding: clamp(24px, 3vw, 38px) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255,255,255,.72) !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .ds-seo-intent-band {
  background: var(--surface) !important;
}

.ds-seo-intent-head {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin-bottom: 20px;
}

.ds-seo-intent-kicker {
  margin: 0 !important;
  color: var(--ds-accent) !important;
  
  text-transform: uppercase !important;
  
}

.ds-seo-intent-head h2 {
  margin: 0;
  color: var(--ds-text);
  
  
  
  
}

.ds-seo-intent-head p,
.ds-seo-intent-grid p {
  margin: 0 !important;
  color: var(--ds-muted) !important;
  
  
}

.ds-seo-intent-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.ds-seo-intent-grid article,
.ds-prose-card,
.guide-step,
.rdc-step,
.rdc-link-card,
.ec-faq-item,
.faq-item,
.faq-card,
.tool-content-section > :is(p, ul, ol, div:not(.tool-faq)),
.ptb section > :is(p, ul, ol, div) {
  border: 1px solid var(--ds-border) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  box-shadow: 0 14px 38px rgba(19, 19, 19,.065) !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .ds-seo-intent-grid article,
[data-theme="dark"] .ds-prose-card,
[data-theme="dark"] .guide-step,
[data-theme="dark"] .rdc-step,
[data-theme="dark"] .rdc-link-card,
[data-theme="dark"] .ec-faq-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .faq-card,
[data-theme="dark"] .tool-content-section > :is(p, ul, ol, div:not(.tool-faq)),
[data-theme="dark"] .ptb section > :is(p, ul, ol, div) {
  background: var(--surface) !important;
}

.ds-seo-intent-grid article {
  display: grid !important;
  gap: 8px !important;
  padding: 18px !important;
}

.ds-seo-intent-grid span {
  color: var(--ds-accent) !important;
  
  
}

.ds-seo-intent-grid b {
  color: var(--ds-text) !important;
  
  
}

.tool-content-wrap,
.ptb,
.tool-layout,
.rdc-content,
.ec-copy,
.pa-copy,
.mc-guide-section,
.sc-guide,
.sc-about,
.sc-faq,
.sa-seo-article {
  width: var(--ds-tool-shell);
  max-width: var(--ds-tool-shell);
  margin-left: auto;
  margin-right: auto;
}

.std-tool-page > .tool-layout,
.tool-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr) !important;
  gap: 18px !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

.tool-layout > .card,
.tool-layout > .panel,
.tool-layout > aside,
.tool-layout > section {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: var(--ds-radius) !important;
  border: 1px solid var(--ds-border) !important;
  background: var(--surface) !important;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255,255,255,.64) !important;
  padding: 22px !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .tool-layout > .card,
[data-theme="dark"] .tool-layout > .panel,
[data-theme="dark"] .tool-layout > aside,
[data-theme="dark"] .tool-layout > section {
  background: var(--surface) !important;
}

.tool-layout .controls-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.tool-layout .field {
  display: grid !important;
  gap: 7px !important;
}

.tool-layout input:not([type="checkbox"]):not([type="radio"]),
.tool-layout textarea,
.tool-layout select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  background: var(--ds-surface-soft) !important;
  border: 1px solid var(--ds-border-strong) !important;
  box-sizing: border-box !important;
}

.tool-content-section > :is(p, ul, ol, div:not(.tool-faq)),
.ptb section > :is(p, ul, ol, div) {
  padding: 18px 20px !important;
}

.tool-content-section > :is(p, ul, ol):hover,
.ptb section > :is(p, ul, ol):hover,
.ds-seo-intent-grid article:hover,
.rdc-step:hover,
.rdc-link-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(254,57,31,.30) !important;
  box-shadow: 0 22px 56px rgba(19, 19, 19,.10) !important;
}

.std-command,
.rdc-batch-wrap,
.rdc-page > .rc-hero,
.tq-shell,
.html-editor-wrap,
.editor-shell,
.tool-form,
.input-card,
.acd-tool,
.ec-tool,
.pa-tool {
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
  background: transparent;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255,255,255,.64);
}

.rdc-batch-wrap,
.rdc-page > .rc-hero,
.tq-shell,
.html-editor-wrap,
.editor-shell,
.acd-tool,
.ec-tool,
.pa-tool {
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin: var(--ds-gap) auto 0 !important;
  padding: 22px !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .std-command,
[data-theme="dark"] .rdc-batch-wrap,
[data-theme="dark"] .tq-shell,
[data-theme="dark"] .html-editor-wrap,
[data-theme="dark"] .editor-shell,
[data-theme="dark"] .tool-form,
[data-theme="dark"] .input-card,
[data-theme="dark"] .acd-tool,
[data-theme="dark"] .ec-tool,
[data-theme="dark"] .pa-tool {
  background: var(--surface);
}

.rdc-batch-textarea,
.tq-shell textarea,
.html-editor-wrap textarea,
.editor-shell textarea,
.tool-form textarea,
.input-card textarea {
  min-height: 220px !important;
  border-radius: 16px !important;
  background: var(--ds-surface-soft) !important;
  border: 1px solid var(--ds-border-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42) !important;
}

.rdc-run-btn,
.gua-run,
.auth-wall-btn,
.sa-run-btn,
.acd-run,
.ec-run,
.pa-run,
.tq-run,
.btn-primary,
button[class*="run"],
button[class*="analyze"],
button[class*="check"] {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  
}

.rdc-run-btn::after,
.gua-run::after,
.auth-wall-btn::after,
.sa-run-btn::after,
.btn-primary::after,
button[class*="run"]::after,
button[class*="analyze"]::after,
button[class*="check"]::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: var(--accent) !important;
  transform: translateX(-120%) !important;
  transition: transform .65s ease !important;
  pointer-events: none !important;
}

.rdc-run-btn:hover::after,
.gua-run:hover::after,
.auth-wall-btn:hover::after,
.sa-run-btn:hover::after,
.btn-primary:hover::after,
button[class*="run"]:hover::after,
button[class*="analyze"]:hover::after,
button[class*="check"]:hover::after {
  transform: translateX(120%) !important;
}

.rdc-card,
.rdc-faq-item,
.rdc-types-table,
.rdc-links-grid,
.ec-faq-item,
.guide-step,
.tool-faq details {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.ds-auto-product {
  width: var(--ds-tool-shell) !important;
  max-width: var(--ds-tool-shell) !important;
  margin: 18px auto 0 !important;
}

.ds-auto-product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.ds-auto-product-card {
  padding: 16px 18px !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.68) !important;
  box-shadow: 0 14px 38px rgba(19, 19, 19,.06) !important;
}

[data-theme="dark"] .ds-auto-product-card {
  background: rgba(255,255,255,.045) !important;
}

.ds-auto-product-card b {
  display: block !important;
  margin-bottom: 6px !important;
  color: var(--ds-text) !important;
}

.ds-auto-product-card p {
  margin: 0 !important;
  color: var(--ds-muted) !important;
  
  
}

@media (max-width: 900px) {
  .ds-seo-intent-grid,
  .ds-auto-product-grid {
    grid-template-columns: 1fr !important;
  }

  .ds-seo-intent-band {
    margin-bottom: 42px !important;
  }
}

/* DS31b: final card override for legacy .tool-layout pages.
   Some local .card rules are loaded with equal specificity; keep the form cards
   visibly premium after every page-specific declaration. */
.std-tool-page .tool-layout > .card,
.std-tool-page .tool-layout > .panel,
.std-tool-page .tool-layout > aside,
.std-tool-page .tool-layout > section {
  background: var(--surface) !important;
  border: 1px solid var(--ds-border) !important;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255,255,255,.70) !important;
}

[data-theme="dark"] .std-tool-page .tool-layout > .card,
[data-theme="dark"] .std-tool-page .tool-layout > .panel,
[data-theme="dark"] .std-tool-page .tool-layout > aside,
[data-theme="dark"] .std-tool-page .tool-layout > section {
  background: var(--surface) !important;
}

/* DS33: make how-to and SEO lists use the full content canvas.
   Direct ol/ul elements were grid items themselves, so their internal cards
   stayed in one narrow column on wide screens. */
.tool-content-section > :is(ul, ol),
.ptb > section > :is(ul, ol),
.ptb > div > :is(ul, ol),
.sc-article > :is(ul, ol),
.rc-article > :is(ul, ol) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.tool-content-section > :is(ul, ol) > li,
.ptb > section > :is(ul, ol) > li,
.ptb > div > :is(ul, ol) > li,
.sc-article > :is(ul, ol) > li,
.rc-article > :is(ul, ol) > li {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
}

.tool-content-section > p:only-of-type,
.ptb > section > p:only-of-type {
  grid-column: 1 / -1 !important;
  max-width: 100% !important;
}

@media (min-width: 1280px) {
  .tool-content-section > :is(ul, ol),
  .ptb > section > :is(ul, ol),
  .ptb > div > :is(ul, ol) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* DS34: premium report layer.
   Reports should sell clarity first: score, category diagnosis, one priority
   finding, then raw tables as proof. */
.ds-report-brief {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr) !important;
  gap: 18px 22px !important;
  padding: 22px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(180, 180, 180, .22) !important;
  color: #fbfbfb !important;
  background: var(--surface) !important;
  background-size: auto, auto, 42px 42px, 42px 42px, auto !important;
  box-shadow: 0 34px 92px rgba(27, 27, 27, .26), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

.ds-report-brief::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  transform: translateX(-120%) !important;
  animation: dsReportSweep 7s ease-in-out infinite !important;
}

@keyframes dsReportSweep {
  0%, 52% { transform: translateX(-120%); opacity: 0; }
  62% { opacity: .95; }
  82%, 100% { transform: translateX(120%); opacity: 0; }
}

.ds-report-topbar {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding-bottom: 15px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(240, 240, 240, .68) !important;
  
  
  text-transform: uppercase !important;
}

.ds-report-topbar::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 99px !important;
  background: #ff8a6a !important;
  box-shadow: 0 0 18px rgba(255, 138, 106, .72) !important;
  flex: 0 0 auto !important;
}

.ds-report-topbar span,
.ds-report-topbar b {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.ds-report-topbar b {
  margin-left: auto !important;
  max-width: 34ch !important;
  color: rgba(255,255,255,.78) !important;
  
}

.ds-report-topbar em {
  flex: 0 0 auto !important;
  border: 1px solid rgba(255,138,106,.26) !important;
  border-radius: 999px !important;
  padding: 8px 10px !important;
  background: rgba(255,138,106,.10) !important;
  color: #ff7f66 !important;
  
  
}

.ds-report-main {
  align-self: stretch !important;
  grid-template-columns: 110px minmax(0, 1fr) !important;
  padding: 16px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
}

.ds-report-score {
  position: relative !important;
  width: 96px !important;
  height: 96px !important;
  background:
    radial-gradient(circle at center, #191919 0 55%, transparent 56%),
    conic-gradient(var(--score-color) calc(var(--score-value, 68) * 1%), rgba(255,255,255,.12) 0) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

.ds-report-score strong {
  color: #fff !important;
  
}

.ds-report-score span {
  position: absolute !important;
  margin-top: 45px !important;
  color: rgba(240, 240, 240,.56) !important;
  
  
  text-transform: uppercase !important;
}

.ds-report-kicker {
  color: #ff9a83 !important;
}

.ds-report-title {
  color: #fff !important;
  
}

.ds-report-lead {
  color: rgba(240, 240, 240,.72) !important;
}

.ds-report-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-self: stretch !important;
}

.ds-report-metric {
  position: relative !important;
  overflow: hidden !important;
  min-height: 66px !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.055) !important;
}

.ds-report-metric span {
  display: block !important;
  margin-bottom: 10px !important;
  color: rgba(240, 240, 240,.70) !important;
  
  
}

.ds-report-metric strong {
  color: #fff !important;
  
}

.ds-report-metric i {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 13px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
}

.ds-report-metric i::before {
  content: "" !important;
  display: block !important;
  width: calc(var(--metric-score, 68) * 1%) !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #ff8a6a, #fe391f, var(--metric-color)) !important;
  box-shadow: 0 0 18px rgba(254,57,31,.34) !important;
}

.ds-report-priority {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(255,214,102,.24) !important;
  border-radius: 20px !important;
  background: var(--surface) !important;
}

.ds-report-priority b {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #ffe09a !important;
  
  white-space: nowrap !important;
}

.ds-report-priority b::before {
  content: "!" !important;
  display: grid !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: rgba(255,214,102,.16) !important;
  color: #ffd666 !important;
  
}

.ds-report-priority p {
  margin: 0 !important;
  color: rgba(255,255,255,.75) !important;
  
  
}

.ds-report-actions {
  grid-column: 1 / -1 !important;
}

.ds-report-action {
  min-height: 84px !important;
  padding: 12px !important;
  border-color: rgba(255,255,255,.12) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.ds-report-action b {
  color: #fff !important;
}

.ds-report-action span {
  color: rgba(240, 240, 240,.68) !important;
}

.ds-report-brief + * {
  margin-top: 18px !important;
}

#resultsWrap > :not(.ds-report-brief),
#results > :not(.ds-report-brief),
#sa-results > :not(.ds-report-brief),
#pa-results > :not(.ds-report-brief),
#rcResults > :not(.ds-report-brief),
#aioResults > :not(.ds-report-brief),
#kdResults > :not(.ds-report-brief),
#tqResults > :not(.ds-report-brief) {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .ds-report-brief,
  .ds-report-main,
  .ds-report-priority {
    grid-template-columns: 1fr !important;
  }

  .ds-report-main {
    justify-items: start !important;
  }

  .ds-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .ds-report-brief {
    padding: 16px !important;
    border-radius: 22px !important;
    gap: 14px !important;
  }

  .ds-report-topbar {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    
  }

  .ds-report-topbar b {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ds-report-score {
    width: 78px !important;
    height: 78px !important;
  }

  .ds-report-score span {
    margin-top: 38px !important;
    
  }

  .ds-report-score strong {
    
  }

  .ds-report-main {
    padding: 13px !important;
    gap: 12px !important;
  }

  .ds-report-title {
    
  }

  .ds-report-lead {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    
    
  }

  .ds-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ds-report-metric {
    min-height: 62px !important;
    padding: 11px 12px !important;
  }

  .ds-report-actions {
    display: none !important;
  }

  .ds-report-priority {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .ds-report-priority b {
    white-space: normal !important;
  }
}

/* Primary/secondary actions and choices are owned by the tool components. */
.std-tool-page :is(button, .btn):disabled {
  opacity: .56 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* CTR Lens: calm, readable command panel across themes and narrow screens. */
.std-tool-page > .ctr-lens-controls .ctrl-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: 18px 14px !important;
}

.std-tool-page > .ctr-lens-controls .field {
  min-width: 0 !important;
  width: 100% !important;
}

.std-tool-page > .ctr-lens-controls .field:nth-child(3),
.std-tool-page > .ctr-lens-controls .btn-run {
  grid-column: 1 / -1 !important;
}

.std-tool-page > .ctr-lens-controls label {
  margin-bottom: 8px !important;
  color: var(--ds-muted) !important;
  opacity: 1 !important;
}

.std-tool-page > .ctr-lens-controls select {
  min-height: 50px !important;
  padding: 0 44px 0 15px !important;
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.std-tool-page > .ctr-lens-controls select:hover {
  border-color: rgba(254,57,31,.48) !important;
}

.std-tool-page > .ctr-lens-controls select:focus-visible {
  border-color: var(--ds-accent) !important;
  box-shadow: 0 0 0 4px rgba(254,57,31,.14) !important;
}

.std-tool-page > .ctr-lens-controls .btn-run {
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
}

@media (max-width: 620px) {
  .std-tool-page > .ctr-lens-controls .ctrl-row {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .std-tool-page > .ctr-lens-controls .field,
  .std-tool-page > .ctr-lens-controls .btn-run {
    grid-column: 1 !important;
  }
}

.std-tool-page :is(.status-box, .tool-status, .loading-box, .scan-status, #statusBox):not(.gfe-export-message):not(.err):not(.ok):not(:empty) {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(254,57,31,.24) !important;
  border-radius: 24px !important;
  background: var(--surface) !important;
  background-size: auto, auto, 38px 38px, 38px 38px, auto !important;
  /* Was #fff on var(--surface): in the light theme that is white on white, so
     the running tool showed an empty pill with only the progress bar in it.
     The one moment the user most needs to read the box is while it works. */
  color: var(--text) !important;
  
  
  /* Room under the text for the progress bar the ::after draws. */
  padding: 16px 22px 30px !important;
  box-shadow: 0 26px 72px rgba(27, 27, 27,.18), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

.std-tool-page :is(.status-box, .tool-status, .loading-box, .scan-status, #statusBox):not(.gfe-export-message):not(.err):not(.ok):not(:empty)::after {
  content: "" !important;
  position: absolute !important;
  left: 22px !important;
  right: 22px !important;
  bottom: 12px !important;
  height: 5px !important;
  border-radius: 999px !important;
  transform-origin: left !important;
  background: #ff8a6a !important;
  background-size: 220% 100% !important;
  animation: dsToolLoadBar 1.45s ease-in-out infinite !important;
}

@keyframes dsToolLoadBar {
  0% { background-position: 0% 50%; transform: scaleX(.18); }
  50% { background-position: 100% 50%; transform: scaleX(.74); }
  100% { background-position: 0% 50%; transform: scaleX(.98); }
}

.std-tool-page :is(table, .qc-table) {
  border-collapse: separate;
  border-spacing: 0;
}

.std-tool-page :is(.qc-section, .table-wrap, .results-table, .data-table-wrap, .ds-table-wrap) {
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  background: var(--surface) !important;
  box-shadow: 0 24px 70px rgba(19, 19, 19,.09) !important;
}

.std-tool-page :is(.qc-table, .results-table, .data-table) th {
  background: var(--surface) !important;
  color: #787878 !important;
}

.std-tool-page :is(.qc-table, .results-table, .data-table) tbody tr {
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.std-tool-page :is(.qc-table, .results-table, .data-table) tbody tr:hover {
  background: var(--surface) !important;
}

.std-tool-page :is(.qc-tabs, .tabs, .tool-tabs) {
  gap: 8px !important;
}

/* An accent-filled tab. #787878 on it measured 2.6:1, and the count badge
   inside kept --accent2 - a light red on red, 1.48:1. The near-black at 82%
   reads, and still sits a step behind the full-strength ink the active tab
   below takes, so the two states stay apart. */
.std-tool-page :is(.qc-tab, .tab-btn, .tool-tab) {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  background: var(--accent);
  --text: #16100e;
  --muted: rgba(22, 16, 14, .82);
  --accent2: rgba(22, 16, 14, .82);
  --accent3: rgba(22, 16, 14, .82);
  color: rgba(22, 16, 14, .82);
  box-shadow: 0 12px 30px rgba(19, 19, 19,.06);
}

.std-tool-page :is(.qc-tab, .tab-btn, .tool-tab) :is(span, b, i, small) {
  color: inherit !important;
}

.std-tool-page :is(.qc-tab.active, .tab-btn.active, .tool-tab.active) {
  border-color: transparent !important;
  background: #ff5436 !important;
  color: #14100f !important;
  box-shadow: 0 18px 42px rgba(254,57,31,.24) !important;
}

.ds-pagination,
.std-tool-page :is(.qc-pager, .pagination, .pager) {
  border-radius: 0 0 24px 24px !important;
}

.ds-table-pager {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: -1px !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 0 0 22px 22px !important;
  background: var(--surface) !important;
  box-shadow: 0 20px 48px rgba(19, 19, 19,.07) !important;
}

.ds-table-pager-info {
  color: #787878 !important;
  
  
  text-transform: uppercase !important;
}

.ds-table-pager-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ds-table-page-btn {
  min-width: 38px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid var(--ui-control-line) !important;
  border-radius: 11px !important;
  background: var(--ui-surface) !important;
  color: var(--ui-text) !important;
  
  cursor: pointer !important;
  box-shadow: var(--ui-shadow-soft) !important;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
}

.ds-table-page-btn:hover {
  transform: translateY(-1px) !important;
  border-color: var(--ui-accent) !important;
  color: var(--ui-accent) !important;
}

.ds-table-page-btn.active {
  border-color: transparent !important;
  color: var(--ui-on-primary) !important;
  background: var(--ui-primary) !important;
  box-shadow: none !important;
}

.ds-table-page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

[data-theme="dark"] .std-tool-page :is(.qc-section, .table-wrap, .results-table, .data-table-wrap, .ds-table-wrap) {
  background: linear-gradient(180deg, rgba(34, 34, 34,.96), rgba(27, 27, 27,.90)) !important;
  border-color: rgba(255,255,255,.18) !important;
}

[data-theme="dark"] .std-tool-page :is(.qc-tab, .tab-btn, .tool-tab) {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(240, 240, 240,.72) !important;
}

[data-theme="dark"] .ds-table-pager {
  background: linear-gradient(180deg, rgba(34, 34, 34,.94), rgba(27, 27, 27,.86)) !important;
  border-color: rgba(255,255,255,.18) !important;
}


/* DS39: geometry cleanup for shared tool controls */
.std-tool-page :is(.qc-tabs, .tabs, .tool-tabs) {
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 5px !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  box-shadow: 0 16px 42px rgba(19, 19, 19,.08) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.std-tool-page :is(.qc-tabs, .tabs, .tool-tabs)::after {
  display: none !important;
}

.std-tool-page :is(.qc-tab, .tab-btn, .tool-tab) {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #787878 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.std-tool-page :is(.qc-tab.active, .tab-btn.active, .tool-tab.active) {
  background: var(--accent) !important;
  color: #14100f !important;
  box-shadow: 0 10px 24px rgba(254,57,31,.24), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

@media (max-width: 640px) {
  .std-tool-page .snippet-workspace > .tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .std-tool-page .snippet-workspace > .tabs .tab-btn {
    width: 100% !important;
    justify-content: center !important;
    min-width: 0 !important;
  }
}

.audit-form,
.hero .audit-form {
  width: 100%;
  min-width: 0;
  border-radius: 18px;
}

.audit-field,
.hero .audit-field {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.audit-field input,
.hero .audit-field input,
.sa-input-row .sa-input {
  box-sizing: border-box !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.sa-input-row {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 720px !important;
  min-width: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: var(--surface) !important;
  box-shadow: 0 18px 46px rgba(19, 19, 19,.08) !important;
}

.sa-input-prefix {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 98px !important;
  padding: 0 14px !important;
  /* Was a white hairline at 26% and a fixed #787878 label: a visible divider in
     the dark theme, nothing in the light one, and a grey that followed neither. */
  border-right: 1px solid var(--border) !important;
  background: rgba(254,57,31,.045) !important;
  color: var(--muted) !important;
}

/* The segments are not standalone fields. The control layer gives every input a
   radius and a min-height of its own, which inside a group rounds a corner that
   is already the row's and leaves the input two pixels shorter than the prefix
   and the button either side of it. */
/* A segment of a composed field takes its height from the field, so it must not
   keep the standalone control's own min-height - but it does have to fill the
   box. Zeroing the min-height without saying so left the home page's audit
   input 18px tall, sized by its text inside a 52px field: on a phone there was
   almost nothing to tap. */
.sa-input-row .sa-input,
.audit-field input,
.hero .audit-field input {
  border-radius: 0 !important;
  min-height: 0 !important;
  align-self: stretch !important;
  height: auto !important;
}

.sa-input-row .sa-input {
  height: 54px !important;
  padding: 0 16px !important;
}

.sa-input-row .sa-run-btn {
  height: auto !important;
  min-height: 54px !important;
  border-radius: 0 !important;
  flex: 0 0 auto !important;
}

.mini-report,
.score-board,
.audit-console {
  min-width: 0;
}

.mini-report-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}

.report-metric {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 82px !important;
  padding: 14px 14px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 16px !important;
  background: var(--surface) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}

.report-metric b {
  display: block !important;
  margin-bottom: 8px !important;
  color: #262626 !important;
  
  
}

.report-metric span {
  display: block;
  max-width: 100%;
  color: #787878;
  
  
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .std-tool-page :is(.qc-tabs, .tabs, .tool-tabs) {
    width: 100% !important;
  }

  .std-tool-page :is(.qc-tab, .tab-btn, .tool-tab) {
    flex: 1 0 auto;
    justify-content: center;
  }

  .sa-input-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .sa-input-row .sa-run-btn {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 0;
    justify-content: center;
  }

  .mini-report-body {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .std-tool-page :is(.qc-tabs, .tabs, .tool-tabs),
[data-theme="dark"] .report-metric,
[data-theme="dark"] .sa-input-row {
  background: linear-gradient(180deg, rgba(34, 34, 34,.92), rgba(27, 27, 27,.78)) !important;
  border-color: rgba(255,255,255,.18) !important;
}

[data-theme="dark"] .report-metric b {
  color: #fff;
}

/* DS40: dark homepage audit preview.
   Keep the same composition as the light theme, but make the product mockup
   feel native to the dark site instead of a dimmed white card. */
[data-theme="dark"] .hero .audit-console {
  background: transparent !important;
  border-color: rgba(216, 216, 216,.22) !important;
  box-shadow:
    0 34px 90px rgba(0,0,0,.46),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 0 62px rgba(254,57,31,.18) !important;
}

[data-theme="dark"] .hero .audit-console::before {
  height: 2px !important;
  background: transparent !important;
  opacity: .9 !important;
}

[data-theme="dark"] .hero .console-title,
[data-theme="dark"] .hero .mini-report-title {
  color: rgba(208, 208, 208,.72) !important;
}

[data-theme="dark"] .hero .console-live {
  color: #fe391f;
  text-shadow: 0 0 16px rgba(41,224,191,.32);
}

[data-theme="dark"] .hero .audit-form {
  background: transparent !important;
  border-color: rgba(216, 216, 216,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 34px rgba(0,0,0,.18) !important;
}

[data-theme="dark"] .hero .audit-field {
  background:
    linear-gradient(180deg, rgba(12, 12, 12,.98), rgba(16, 16, 16,.95));
  border-color: rgba(201, 201, 201,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 12px 28px rgba(0,0,0,.22);
  color: #cbcbcb;
}

[data-theme="dark"] .hero .audit-field svg {
  color: #ffa48f;
  filter: drop-shadow(0 0 8px rgba(255, 179, 161,.34));
}

[data-theme="dark"] .hero .audit-field input {
  color: #f3f3f3 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .hero .audit-field input::placeholder {
  color: rgba(187, 187, 187,.56) !important;
}

[data-theme="dark"] .hero .score-card,
[data-theme="dark"] .hero .signal-stack,
[data-theme="dark"] .hero .mini-report {
  background: transparent;
  border-color: rgba(216, 216, 216,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 20px 44px rgba(0,0,0,.22);
}

[data-theme="dark"] .hero .score-value,
[data-theme="dark"] .hero .report-metric b {
  color: #fbfbfb !important;
}

[data-theme="dark"] .hero .score-value span,
[data-theme="dark"] .hero .score-label,
[data-theme="dark"] .hero .signal-text,
[data-theme="dark"] .hero .report-metric span {
  color: rgba(204, 204, 204,.74) !important;
}

[data-theme="dark"] .hero .score-ring {
  background: rgba(255,255,255,.08) !important;
}

[data-theme="dark"] .hero .signal {
  background: transparent;
  border-color: rgba(216, 216, 216,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

[data-theme="dark"] .hero .signal-icon {
  color: #ffa48f;
  background: rgba(254,57,31,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

[data-theme="dark"] .hero .signal-title {
  color: #f9f9f9;
}

[data-theme="dark"] .hero .signal-status {
  color: #fe391f;
}

[data-theme="dark"] .hero .mini-report-body {
  background: transparent;
}

[data-theme="dark"] .hero .report-metric {
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 154, 131,.15), transparent 38%),
    linear-gradient(180deg, rgba(28, 28, 28,.96), rgba(24, 24, 24,.96)) !important;
  border-color: rgba(216, 216, 216,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055) !important;
}

[data-theme="dark"] .hero .btn-secondary {
  background: rgba(21, 21, 21,.74);
  border-color: rgba(216, 216, 216,.16);
  color: #f3f3f3;
}

[data-theme="dark"] .hero .btn-secondary:hover {
  background: rgba(254,57,31,.16) !important;
  border-color: rgba(255,84,54,.42) !important;
}

/* Hero mini-report strip: label on the left, metric cards fill the rest */
.hero .mini-report {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.hero .mini-report-head {
  flex: 0 0 auto;
  padding: 0 6px 0 10px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .mini-report-body {
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  background: none !important;
}

.hero .report-metric,
.hero .report-metric b,
.hero .report-metric span {
  min-width: 0;
}

.hero .report-metric span {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

@media (max-width: 720px) {
  .hero .mini-report {
    display: grid !important;
    align-items: stretch !important;
  }

  .hero .mini-report-head {
    padding: 0 4px 2px !important;
  }

  .hero .mini-report-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .hero .mini-report-body {
    grid-template-columns: 1fr !important;
  }

  .hero .report-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .hero .report-metric b {
    margin-bottom: 0 !important;
  }
}

/* Dark theme: step/list cards were left with a light background */
[data-theme="dark"] .tool-content-section li,
[data-theme="dark"] .ptb li {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Auth wall: unbox ANY container it lands in (snippet-planner and other
   non-std layouts render it inside .card / .tab-panel / .empty-state) */
:is(.card, .tab-panel, .empty-state, .table-wrap):has(.auth-wall:not([hidden])) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

/* While logged out the tool chrome is noise — hide tabs/export next to the wall */
main:has(.auth-wall:not([hidden])) :is(.tabs, #tabsEl, #exportBar, .chips-row) {
  display: none !important;
}

:is(.ds-hero, .tool-page > .tool-hero, .container > .tool-hero) {
  margin-bottom: var(--ds-gap-section) !important;
}

:is(.cat-hero, .ti-hero-box, .std-hero, .rc-hero, .tq-hero, .aio-hero,
    .kd-hero, .sa-hero, .sc-hero,
    .tool-page > .tool-hero, .container > .tool-hero):has(
  + :is(.std-command, .sc-engines-row, .rc-compare-strip,
        .aio-input-card, .kd-input-card)) {
  margin-bottom: 0 !important;
}

/* Logged-out state: the tool workspace below the auth wall is dead
   weight (all API calls would 401). Dim it so the wall reads as the
   single action, while informational sections stay fully readable. */
.auth-wall:not([hidden]) ~ :is(section, div):has(select, input:not([type="hidden"]), textarea):not(:has(.auth-wall)) {
  opacity: .45;
  pointer-events: none;
  user-select: none;
  filter: saturate(.55);
}

/* ── Generic .card tool pages (meta-generator, html-editor, …) ──
   Bring ad-hoc .card layouts up to the same visual language as the
   std tool pages: rounded surfaces, calm borders, unified controls. */
.tool-page .card {
  border-radius: 18px !important;
  border: 1px solid var(--ds-border) !important;
  background: var(--surface) !important;
  box-shadow: 0 12px 34px rgba(19, 19, 19,.055) !important;
  padding: 20px 22px !important;
}

[data-theme="dark"] .tool-page .card {
  background: var(--surface) !important;
}

.tool-page .card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.tool-page .card select,
.tool-page .card textarea {
  border-radius: 12px !important;
  background: var(--ds-surface-soft) !important;
  border: 1px solid var(--ds-border-strong) !important;
  color: var(--ds-text) !important;
  
  outline: none !important;
  box-sizing: border-box !important;
}

.tool-page .card input:focus,
.tool-page .card select:focus,
.tool-page .card textarea:focus {
  border-color: var(--ds-accent) !important;
  box-shadow: 0 0 0 4px rgba(254,57,31,.12) !important;
}

.tool-page .card button:not(.btn):not([class*="tab"]) {
  border-radius: 10px !important;
  
}

/* SEO copy must never depend on tool execution, reveal animations, or
   dynamically rendered result panels. These sections are indexable page
   content and should be visible immediately on first paint. */
.tool-content-wrap,
.ptb,
.sa-seo-article,
.sa-content,
.rdc-guide,
.mc-guide-section,
.sc-content,
.sc-article,
.sc-faq-sec,
.gua-use-cases,
.ec-faq {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: none;
  filter: none;
  height: auto;
  max-height: none;
  overflow: visible;
  content-visibility: visible;
  contain: none;
}

.tool-content-section {
  display: grid;
  visibility: visible;
  opacity: 1;
  transform: none;
  filter: none;
  height: auto;
  max-height: none;
  overflow: visible;
  content-visibility: visible;
  contain: none;
}

.tool-content-wrap *,
.tool-content-section *,
.ptb *,
.sa-seo-article *,
.sa-content *,
.rdc-guide *,
.mc-guide-section *,
.sc-content *,
.sc-article *,
.sc-faq-sec *,
.gua-use-cases *,
.ec-faq * {
  visibility: visible;
  opacity: 1;
}

/* FAQ blocks are expanded site-wide by default. Older pages use several
   accordion implementations, so this keeps their answer panels visible. */
:is(.faq-item, .ap-faq-item, .sc-faq-item, .rdc-faq-item, .ec-faq-item, .sa-faq-item) :is(.faq-a, .faq-body, .ap-faq-a, .sc-faq-a, .rdc-faq-a, .ec-faq-a, .sa-faq-a) {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
}

.faq-item.open .faq-a,
.faq-item.is-open .faq-a,
.faq-item.is-open .faq-body {
  padding-bottom: 16px;
}

@media (max-width: 720px) {


}

@media (max-width: 440px) {


}

[data-theme="dark"] .home-courses {
  border-color: rgba(255,255,255,.18) !important;
  background: var(--surface) !important;
  box-shadow:
    0 28px 84px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
}

[data-theme="dark"] .home-courses .home-course-card {
  border-color: rgba(255,255,255,.16) !important;
  background: var(--surface) !important;
  color: #f6f6f6 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 44px rgba(0,0,0,.24) !important;
}

[data-theme="dark"] .home-courses .home-course-card.is-featured {
  border-color: rgba(255, 179, 161,.28) !important;
  background: var(--surface) !important;
}

[data-theme="dark"] .home-courses .btn-primary {
  background: #ffa48f;
  box-shadow: 0 18px 46px rgba(255, 154, 131,.28);
}

/* DS performance budget: keep the premium look, but stop idle infinite motion.
   Loading spinners remain active because they are short-lived and user-driven. */
body::before,
.container.tool-page > .tool-hero::before,
.blog-header::before,
.std-hero::after,
.kd-hero::after,
.sa-hero::after,
.sc-hero::after,
.tool-page > .hero::after,
.audit-console::before,
.audit-console::after,
.ds-report-brief::after,
.home-shell .terminal-card::after,
.std-kicker::before,
.tool-kicker::before,
.hero-kicker::before,
.rc-eyebrow::before,
.sc-eyebrow::before,
.aio-label::before,
.console-live::before,
.scan-dot,
.trust-pill::before,
.rdc-hop-num,
.rec-bullet,
.sa-step-dot,
.score-dot,
.auth-wall-live,
.auth-runner-line:nth-child(3),
.auth-runner-line.is-work b,
.auth-runner-progress span,
.home-shell .terminal-line.is-active,
.std-tool-page :is(.status-box, .tool-status, .loading-box, .scan-status, #statusBox):not(.gfe-export-message):not(.err):not(.ok):not(:empty)::after,
.audit-submit::after,
.btn-primary::after,
.ga4-run::after,
.sa-run-btn::after,
.std-command button[type="submit"]::after {
  animation: none !important;
}

.container.tool-page > .tool-hero::before,
.blog-header::before,
.std-hero::after,
.kd-hero::after,
.sa-hero::after,
.sc-hero::after,
.tool-page > .hero::after,
.audit-console::before,
.audit-console::after,
.ds-report-brief::after,
.home-shell .terminal-card::after,
.audit-submit::after,
.btn-primary::after,
.ga4-run::after,
.sa-run-btn::after,
.std-command button[type="submit"]::after {
  opacity: 0 !important;
  transform: none !important;
}


.scan-dot,
.console-live::before,
.trust-pill::before,
.rdc-hop-num,
.rec-bullet,
.sa-step-dot,
.score-dot,
.auth-wall-live,
.std-kicker::before,
.tool-kicker::before,
.hero-kicker::before,
.rc-eyebrow::before,
.sc-eyebrow::before,
.aio-label::before {
  box-shadow: none;
}

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

/* ── Ordered guides: numbered steps ───────────────────────────────
   The design system flattens every list into a bullet-card grid, which
   erased the sequence from "how to" guides. Ordered lists get their
   step number back so the reading order is unambiguous. */
.tool-content-section ol,
.ptb ol {
  counter-reset: ds-step;
}

.tool-content-section ol > li,
.ptb ol > li {
  counter-increment: ds-step !important;
  padding-left: 54px !important;
}

.tool-content-section ol > li::before,
.ptb ol > li::before {
  content: counter(ds-step) !important;
  top: 14px !important;
  left: 16px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  
  
  
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(254, 57, 31, .30) !important;
}

/* ── Related tools block (replaces the duplicated SEO boilerplate) ── */
.ds-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.ds-rel-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .60);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ds-rel-card b {
  
  
  
  
  color: var(--text);
}

.ds-rel-card span {
  
  
  color: var(--muted);
}

.ds-rel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(254, 57, 31, .35);
  box-shadow: 0 18px 44px rgba(19, 19, 19, .10);
}

[data-theme="dark"] .ds-rel-card {
  background: rgba(255, 255, 255, .045);
}

/* The article card sits under the tool grid rather than inside it: it is a
   different kind of destination, and a full-width row says so without needing
   a second heading. */
.ds-rel-read {
  margin-top: 12px;
  border-style: dashed;
}

.ds-rel-read b {
  color: var(--accent2);
}

.ds-rel-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  
  
  color: var(--accent2);
  text-decoration: none;
}

.ds-rel-hub:hover {
  text-decoration: underline;
}


/* ── Red brand: text contrast on solid accent ───────────────────
   White on #fe391f is 3.4:1, below WCAG AA. The reference design puts
   near-black on red, which is both on-brand and readable.
   NB: the base .btn class is deliberately excluded — it is shared with
   .btn-secondary, which sits on a surface background, not on the accent. */
#periodPicker .pp-preset.is-active,
.acd-btn,
.audit-submit,
.auth-wall-btn,
.brand-mark,
.btn-aio-analyze,
.btn-analyze,
.btn-check,
.btn-contact-submit,
.btn-cta-primary,
.btn-generate,
.btn-nav.primary,
.btn-primary,
.btn-run,
.btn-save,
.btn-start,
.co-pag-btn.active,
.co-pag-btn:hover,
.course-arrow,
.db-avatar-placeholder,
.db-level-badge,
.db-placeholder-btn,
.db-run-btn,
.detail-btn,
.doc-button,
.dp-pag-btn.active,
.dp-pag-btn:hover,
.exact-red-btn,
.fbtn.on,
.fbtn:hover,
.filter-active,
.filter-btn.active,
.ga4-run,
.gua-action-rank,
.gua-fbtn.on,
.gua-load-more,
.gua-mode-btn.on,
.gua-run,
.gua-step-num,
.he-btn.primary,
.hero-actions a:first-child,
.jv-task-cta-btn,
.kd-btn,
.kd-mode-btn.active,
.kw-pg-btn.active,
.landing-filter,
.lang-btn.active,
.lens-action-rank,
.lens-mode-btn.on,
.mc-run-btn,
.mg-step-no,
.mob-cta,
.module-num,
.nav-avatar-placeholder,
.next-lesson-cta a,
.pag-btn.active,
.person-cta .primary,
.pp-preset.is-active,
.pricing-card.featured .pricing-btn,
.pricing-submit,
.primary-button,
.qc-page-btn.active,
.qc-run,
.queue-page-btn.on,
.rc-submit,
.rdc-run-btn,
.report-filter-trigger,
.report-panel-action,
.rr-pag-btn.active,
.rr-pag-btn:hover,
.rr-run,
.sa-mode-switch .sa-mode-btn.active,
.sa-priority-num,
.sa-verdict-actions .sa-action-btn.primary,
.sc-action-btn.primary,
.sc-check-btn,
.sc-lang-btn.active,
.sc-run-btn,
.sc-typo-badge,
.std-tool-page .qc-tab.active,
.std-tool-page .tab-btn.active,
.std-tool-page .tool-tab.active,
.tq-btn-run,
.view-btn.active,
.wl-pag-btn.active,
.wl-pag-btn:hover {
  color: #14100f !important;
}

/* ============ 60-tool-ui.css ============ */
/* Tokens for this file's own components. They stay here rather than in
   10-tokens.css because the same names are redefined in @media blocks
   below, and moving the definition to an earlier bundle would flip which
   one wins. Move them only with a fingerprint check. */
:root {
  --tui-chip-h: 32px;
  --tui-chip-pad: 0 12px;
  --tui-chip-radius: 9px;
  --tui-tab-h: 38px;
  --tui-control-h: 46px;
  --tui-run-h: 50px;
}



/* ── Chips: quick ranges, presets, filters ───────────────────────────────── */
.std-tool-page .tui-chip,
.std-tool-page .wl-preset,
.std-tool-page .pp-preset,
.std-tool-page .cd-quick-btn,
.std-tool-page .fp-pbtn,
.std-tool-page .sc-filter-chip,
.std-tool-page .sc-lang-btn,
.std-tool-page .filter-btn,
.std-tool-page .quick-periods button,
.std-tool-page .period-row button,
.std-tool-page .period-picker button,
.std-tool-page #periodPicker button,
.std-command .wl-preset,
.std-command .pp-preset,
.wl-presets button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  height: var(--tui-chip-h) !important;
  min-height: var(--tui-chip-h) !important;
  padding: var(--tui-chip-pad) !important;
  border-radius: var(--tui-chip-radius) !important;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  
  
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  box-shadow: none !important;
}

.std-tool-page .tui-chip:hover,
.std-tool-page .wl-preset:hover,
.std-tool-page .pp-preset:hover,
.std-tool-page .fp-pbtn:hover,
.std-tool-page .cd-quick-btn:hover,
.std-tool-page .filter-btn:hover,
.std-command .wl-preset:hover,
.std-command .pp-preset:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: var(--surface);
}

.std-tool-page .tui-chip.is-active,
.std-tool-page .tui-chip.active,
.std-tool-page .wl-preset.active,
.std-tool-page .pp-preset.is-active,
.std-tool-page .fp-pbtn.active,
.std-tool-page .cd-quick-btn.active,
.std-tool-page .filter-btn.active,
.std-command .wl-preset.active,
.std-command .pp-preset.is-active {
  border-color: transparent !important;
  background: var(--accent) !important;
  color: #16100e !important;
}

/* Google-update presets read as a secondary, dated set. */
.std-tool-page .wl-preset.update,
.std-command .wl-preset.update {
  border-color: rgba(254, 57, 31, .34);
  color: var(--accent2);
  background: rgba(254, 57, 31, .05);
}

/* ── Tabs over a result set ──────────────────────────────────────────────── */
.std-tool-page .tui-tab,
.std-tool-page .tab-btn,
.std-tool-page .qc-tab,
.std-tool-page .tool-tab {
  height: var(--tui-tab-h) !important;
  min-height: var(--tui-tab-h) !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  
  white-space: nowrap;
}

/* ── The run button keeps its weight; nothing else in the form does ──────── */
.std-tool-page .tui-run,
.std-command button[type="submit"],
.std-command .btn-run {
  min-height: var(--tui-run-h) !important;
}

/* ── Narrow screens: the run button spans, chips stay chips ──────────────── */
@media (max-width: 900px) {
  .std-tool-page .tui-chip,
  .std-tool-page .wl-preset,
  .std-tool-page .pp-preset,
  .std-tool-page .cd-quick-btn,
  .std-tool-page .filter-btn,
  .std-command .wl-preset,
  .std-command .pp-preset,
  .wl-presets button {
    width: auto;
    flex: 0 0 auto;
  }

  .std-command button[type="submit"],
  .std-command .btn-run {
    width: 100% !important;
  }
}

/* ── Chip rows wrap instead of stretching ────────────────────────────────── */
.wl-presets,
.std-tool-page .quick-periods,
.std-tool-page .period-row,
.std-tool-page .tui-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center;
}

/* ===========================================================================
   Loading state
   ---------------------------------------------------------------------------
   17 of the 49 tools show a loading state, between them declaring 24 different
   inline spinner rules under eight different class names (.spinner, .sa-spinner,
   .sc-spinner, .ec-spinner, .acd-spinner, .ai-spinner, .gua-loading-spinner,
   .dq-loading). They are defined once here and the existing class names are
   listed alongside the generic one, so no template markup has to change.
   =========================================================================== */

.std-tool-page .tui-loading,
.std-tool-page .loading,
.std-tool-page .dq-loading,
.std-tool-page .ec-loading,
.std-tool-page .gua-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(40px, 6vw, 72px) 20px;
  text-align: center;
}

.std-tool-page .tui-loading.is-on,
.std-tool-page .loading[style*="flex"],
.std-tool-page .loading[style*="block"],
.std-tool-page .dq-loading[style*="flex"],
.std-tool-page .dq-loading[style*="block"] {
  display: flex !important;
}

/* The ring: a full track plus one bright accent arc, so the motion reads even
   at rest. Sized to sit comfortably above a caption. */
.std-tool-page .tui-spinner,
.std-tool-page .spinner,
.std-tool-page .sa-spinner,
.std-tool-page .sc-spinner,
.std-tool-page .ec-spinner,
.std-tool-page .acd-spinner,
.std-tool-page .ai-spinner,
.std-tool-page .gua-loading-spinner {
  position: relative;
  flex: 0 0 auto;
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  /* The track needs its own value: var(--border) is rgba(255,255,255,.10) in
     dark, which disappears against #0e0e0e and left the ring reading as a solid
     accent circle with no visible rotation. A single accent arc on a neutral
     track reads in both themes. */
  border: 3px solid rgba(128, 128, 128, .26) !important;
  border-top-color: var(--accent) !important;
  border-radius: 50% !important;
  animation: tui-spin .78s cubic-bezier(.62, .18, .36, .84) infinite !important;
  box-shadow: 0 0 0 6px rgba(254, 57, 31, .06);
}

/* A slow halo behind the ring keeps a long wait from feeling frozen. */
.std-tool-page .tui-spinner::after,
.std-tool-page .spinner::after,
.std-tool-page .sa-spinner::after,
.std-tool-page .sc-spinner::after {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 57, 31, .16), transparent 68%);
  animation: tui-halo 1.9s ease-in-out infinite;
  pointer-events: none;
}

.std-tool-page .tui-loading p,
.std-tool-page .loading p,
.std-tool-page .dq-loading p,
.std-tool-page .tui-loading-text {
  margin: 0;
  color: var(--muted);
  
  
}

.std-tool-page .tui-loading-hint {
  margin: 0;
  max-width: 380px;
  color: var(--muted);
  opacity: .72;
  
  
}

@keyframes tui-spin { to { transform: rotate(360deg); } }
@keyframes tui-halo {
  0%, 100% { opacity: .35; transform: scale(.94); }
  50%      { opacity: .9;  transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .std-tool-page .tui-spinner,
  .std-tool-page .spinner,
  .std-tool-page .sa-spinner,
  .std-tool-page .sc-spinner,
  .std-tool-page .ec-spinner,
  .std-tool-page .acd-spinner,
  .std-tool-page .ai-spinner,
  .std-tool-page .gua-loading-spinner {
    animation-duration: 2.4s;
    animation-timing-function: linear;
  }
  .std-tool-page .tui-spinner::after,
  .std-tool-page .spinner::after { animation: none; opacity: .45; }
}

/* Skeleton rows, for tools that can show the shape of the result while it loads. */
.std-tool-page .tui-skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 37%, var(--surface2) 63%);
  background-size: 400% 100%;
  animation: tui-shimmer 1.3s ease-in-out infinite;
}
@keyframes tui-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ===========================================================================
   Empty states — 12 class names across the tools, one definition here.
   =========================================================================== */
.std-tool-page .tui-empty,
.std-tool-page .empty-state,
.std-tool-page .ec-empty,
.std-tool-page .pa-empty,
.std-tool-page .tq-empty,
.std-tool-page .tp-empty,
.std-tool-page .acd-empty,
.std-tool-page .ga4-empty,
.std-tool-page .hl-empty,
.std-tool-page .var-empty {
  /* The answer area before a run was a full-width blank rectangle — measured
     1403x258 px holding one 30 px emoji and three lines of grey text. The
     content column is capped so it reads as a designed state, and a ghost of
     the result table below shows what the tool is about to produce. */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(30px, 3.6vw, 44px) 24px clamp(26px, 3vw, 36px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

/* Preview of the result shape: three ghost rows, drawn without extra markup. */
.std-tool-page .tui-empty::after,
.std-tool-page .empty-state::after,
.std-tool-page .ec-empty::after,
.std-tool-page .pa-empty::after,
.std-tool-page .tp-empty::after {
  content: "";
  display: block;
  width: min(100%, 420px);
  height: 62px;
  margin-top: 26px;
  opacity: .42;
  background:
    linear-gradient(var(--surface2) 0 0) left 0    top 0    / 100% 12px no-repeat,
    linear-gradient(var(--surface2) 0 0) left 0    top 25px / 74%  12px no-repeat,
    linear-gradient(var(--surface2) 0 0) left 0    top 50px / 48%  12px no-repeat;
  border-radius: 4px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}

/* A medallion instead of an emoji floating in white space. */
.std-tool-page .empty-icon,
.std-tool-page .tui-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface2);
  
  
}

.std-tool-page .empty-title,
.std-tool-page .tui-empty-title {
  margin: 0 0 8px;
  max-width: 620px;
  color: var(--text);
  
  
  
  
}

.std-tool-page .empty-desc,
.std-tool-page .tui-empty-desc {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  
  
}

/* The "start here" line reads as a cue, not as more body copy. */
.std-tool-page .empty-hint,
.std-tool-page .tui-empty-hint {
  margin: 14px 0 0;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
  
  
}

/* An "all clear" state is not a waiting state: the ghost rows below promise a
   result that is never coming, so they come off when the run found nothing to
   report because there was nothing wrong. */
.std-tool-page .tui-empty--done::after { content: none; }
.std-tool-page .tui-empty--done .tui-empty-icon {
  border-color: rgba(34, 160, 90, .34);
  background: rgba(34, 160, 90, .10);
}

/* ===========================================================================
   Result tables — the wrapper scrolls, the head sticks, the rows stay legible.
   =========================================================================== */
.std-tool-page .tui-table-wrap,
.std-tool-page .table-wrap,
.std-tool-page .ec-table-wrap,
.std-tool-page .tp-table-wrap,
.std-tool-page .pa-table-wrap,
.std-tool-page .cat-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.std-tool-page .tui-table-wrap table th,
.std-tool-page .table-wrap table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface2);
  color: var(--muted);
  
  
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===========================================================================
   The run button
   ---------------------------------------------------------------------------
   Measured across five tools, the same primary action rendered at 97%, 30%,
   30%, 12% and 12% of the form width, sitting left, centre and right. One
   treatment: a decisive control of predictable size, aligned to the end of the
   form, full width only where the form itself is a single column.
   =========================================================================== */
/* The run button carries a different class in almost every tool — .btn-primary,
   .btn-run, .acd-btn, .btn-aio-analyze, .fp-run, .kd-btn, .mc-run-btn,
   .rdc-run-btn, .sa-run-btn … — so they are all listed here rather than added
   to 40 templates. Secondary buttons (.btn-ghost, .acd-ghost, .btn-sm) are not. */
.std-tool-page .std-command button[type="submit"],
.std-tool-page .std-command .btn-primary,
.std-tool-page .std-command .btn-run,
.std-tool-page .std-command .primary-btn,
.std-tool-page .std-command .submit-btn,
.std-tool-page .std-command .run-btn,
.std-tool-page .std-command .acd-btn,
.std-tool-page .std-command .btn-aio-analyze,
.std-tool-page .std-command .btn-analyze,
.std-tool-page .std-command .fp-run,
.std-tool-page .std-command .kd-btn,
.std-tool-page .std-command .mc-run-btn,
.std-tool-page .std-command .rdc-run-btn,
.std-tool-page .std-command .sa-run-btn,
.std-tool-page .std-command .ga4-run,
.std-tool-page .std-command .ca-run,
.std-tool-page .std-command .gua-run,
.std-tool-page .std-command .sc-check-btn,
.std-tool-page .tui-run {
  width: auto !important;
  min-width: 220px !important;
  max-width: 100%;
  margin-left: auto;
  justify-self: end;
  padding: 0 26px !important;
  
  
  /* The brand colour, stated once. Declared without !important so a tool that
     deliberately paints its own run button still can; what this fixes is the
     tools that never set one and picked up whatever they were given. */
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #14100f;
  box-shadow: 0 14px 30px rgba(254, 57, 31, .26);
}

/* A button that is the only thing on its row keeps the row's alignment rather
   than drifting to the right edge of a 1364 px form. */
.std-tool-page .std-command > button[type="submit"]:only-child,
.std-tool-page .std-command > .btn-run:only-child {
  margin-left: 0;
  justify-self: start;
}

@media (max-width: 900px) {
  .std-tool-page .std-command button[type="submit"],
  .std-tool-page .std-command .btn-primary,
  .std-tool-page .std-command .btn-run,
  .std-tool-page .std-command .primary-btn,
  .std-tool-page .std-command .acd-btn,
  .std-tool-page .std-command .fp-run,
  .std-tool-page .std-command .kd-btn,
  .std-tool-page .std-command .mc-run-btn,
  .std-tool-page .std-command .rdc-run-btn,
  .std-tool-page .std-command .sa-run-btn,
  .std-tool-page .tui-run {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0;
  }
}

/* ===========================================================================
   Result views
   ---------------------------------------------------------------------------
   A tool that answers with a chart, a table and a set of recommendations does
   not have to stack all three on one page. This is the shared switcher: one
   segmented control, one view at a time. Any tool can adopt it by wrapping its
   result blocks in .tui-view and adding .tui-viewbar above them.
   =========================================================================== */
.std-tool-page .tui-viewbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
}

/* Higher specificity than the design-system rule that paints every tool-page
   button with the accent — without it all three tabs rendered red and the
   active one was indistinguishable. */
.std-tool-page .tui-viewbar > button:not(.is-on) {
  background: transparent;
  color: var(--muted);
}
.std-tool-page .tui-viewbar > button:not(.is-on):hover {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.std-tool-page .tui-viewbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px !important;
  min-height: 38px !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--muted) !important;
  
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, color .16s;
  box-shadow: none !important;
}

.std-tool-page .tui-viewbar button:hover {
  color: var(--text) !important;
  background: var(--surface) !important;
}

.std-tool-page .tui-viewbar button.is-on {
  background: var(--accent) !important;
  color: #16100e !important;
}

/* design-system.css sweeps a bright ::after across primary buttons in the tool
   page. On a tab that sweep passes over the label and hides part of it, so the
   view bar opts out. */
.std-tool-page .tui-viewbar button::after,
.std-tool-page .tui-viewbar button::before {
  content: none !important;
  animation: none !important;
}

/* The count rides along with the label rather than competing with it. */
.std-tool-page .tui-viewbar button b {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(23, 23, 23, .12);
  
}
.std-tool-page .tui-viewbar button.is-on b { background: rgba(22, 16, 14, .18); }
[data-theme="dark"] .std-tool-page .tui-viewbar button b { background: rgba(255, 255, 255, .12); }

.std-tool-page .tui-view { display: none; }
.std-tool-page .tui-view.is-on { display: block; animation: tui-view-in .22s ease both; }
@keyframes tui-view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .std-tool-page .tui-view.is-on { animation: none; }
}

@media (max-width: 700px) {
  .std-tool-page .tui-viewbar { overflow-x: auto; flex-wrap: nowrap; }
  .std-tool-page .tui-viewbar button { flex: 0 0 auto; }
}

/* ===========================================================================
   The shared progress bar (static/js/tool-loader.js).

   Every tool page gets one, so a running request is never a blank screen. It
   sits on the very top edge of the viewport, above everything else, and says
   nothing a tool's own status text would contradict. Anchoring it to the
   header height made the bar cut through content whenever a page used a
   different header or the sticky header was outside its containing block.
   =========================================================================== */
.tui-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.tui-progress.is-on { opacity: 1; }
.tui-progress > span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2, var(--accent)));
  transform: translateX(-100%);
}
.tui-progress.is-on > span { animation: tui-progress-run 1.15s cubic-bezier(.4,.0,.2,1) infinite; }
@keyframes tui-progress-run {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* The bar is decoration; this is what a screen reader hears. */
.tui-progress-live {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tui-progress.is-on > span { animation: none; transform: none; width: 100%; opacity: .75; }
}

/* ============ 90-state.css ============ */
/* Measured corrections that must land after everything else: contrast
   fixes, focus rings, the tool workspace width. Was core-final.css. */

/* Native hidden state wins over all legacy flex/grid component layouts.
   Keep until-found available for the browser's find-in-page disclosure. */
html body.tool-workbench-page #main [hidden]:not([hidden="until-found"]) {
  display: none !important;
}

/* Tokens for this file's own components. They stay here rather than in
   10-tokens.css because the same names are redefined in @media blocks
   below, and moving the definition to an earlier bundle would flip which
   one wins. Move them only with a fingerprint check. */
:root, html {
  --ds-shell: min(1420px, calc(100vw - 76px));
  --ds-tool-shell: var(--ds-shell);
}

/* Generated from templates/base.html — shared styles for every page.
   Edit here, not inline in a template. */

/* -- UX cleanup layer: readable breadcrumbs and balanced tool controls ----- */
body:has(.std-tool-page) .bc-bar,
body:has(.tool-page) .bc-bar,
body:has(.gua-page) .bc-bar,
body:has(.rc-page) .bc-bar,
body:has(.sa-page) .bc-bar {
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  background: rgba(248, 248, 248,.82) !important;
  border-bottom: 1px solid rgba(154, 154, 154,.22) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}
[data-theme="dark"] body:has(.std-tool-page) .bc-bar,
[data-theme="dark"] body:has(.tool-page) .bc-bar,
[data-theme="dark"] body:has(.gua-page) .bc-bar,
[data-theme="dark"] body:has(.rc-page) .bc-bar,
[data-theme="dark"] body:has(.sa-page) .bc-bar {
  background: rgba(12, 12, 12,.74) !important;
  border-bottom-color: rgba(255,255,255,.10) !important;
}
body:has(.std-tool-page) .bc,
body:has(.tool-page) .bc,
body:has(.gua-page) .bc,
body:has(.rc-page) .bc,
body:has(.sa-page) .bc,
.tool-hero-bc {
  max-width: var(--tool-shell-width, min(1280px, calc(100vw - 48px))) !important;
  margin: 0 auto !important;
  padding: 11px 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body:has(.std-tool-page) .bc li,
body:has(.tool-page) .bc li,
body:has(.gua-page) .bc li,
body:has(.rc-page) .bc li,
body:has(.sa-page) .bc li,
body:has(.std-tool-page) .bc a,
body:has(.tool-page) .bc a,
body:has(.gua-page) .bc a,
body:has(.rc-page) .bc a,
body:has(.sa-page) .bc a {
  color: #787878 !important;
  opacity: 1 !important;
}
body:has(.std-tool-page) .bc-cur,
body:has(.tool-page) .bc-cur,
body:has(.gua-page) .bc-cur,
body:has(.rc-page) .bc-cur,
body:has(.sa-page) .bc-cur {
  color: var(--text);
}
body:has(.std-tool-page) .bc li + li::before,
body:has(.tool-page) .bc li + li::before,
body:has(.gua-page) .bc li + li::before,
body:has(.rc-page) .bc li + li::before,
body:has(.sa-page) .bc li + li::before {
  color: #b5b5b5 !important;
}

.std-command .ctrl-row,
.std-command .controls-row {
  display: grid !important;
  grid-template-columns:
    minmax(220px, 1.05fr)
    minmax(300px, 1.1fr)
    minmax(120px, .42fr)
    minmax(210px, .72fr) !important;
  align-items: end !important;
  gap: 14px !important;
}
.std-command .field,
.std-command .form-group {
  min-width: 0 !important;
}
.std-command .ctrl-row > button,
.std-command .controls-row > button,
.std-command .ctrl-row > .btn,
.std-command .controls-row > .btn {
  width: 100% !important;
  min-height: 52px !important;
  align-self: end !important;
}
.tool-login-inline.auth-wall {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}
/* Auth state must win over the older !important flex/grid wall layouts. */
html body .auth-wall[hidden],
html body [data-auth-state][hidden],
html body [data-auth-ui][hidden] {
  display: none !important;
}
@media (min-width: 769px) {
  html body .nav-right > .btn-nav[data-auth-ui="guest"]:not([hidden]) {
    display: inline-flex;
  }
}
.tool-login-inline.auth-wall > div {
  width: 100% !important;
  max-width: 100% !important;
}
.tool-login-inline.auth-wall .btn,
.tool-login-inline.auth-wall .btn-primary {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  white-space: normal !important;
}
.tool-login-inline .tool-login-account {
  display: block;
  width: 100%;
  color: var(--ds-muted-2);
  
  text-align: center;
}
.tool-login-inline .tool-login-account a {
  color: var(--ds-text);
  
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 980px) {
  .std-command .ctrl-row,
  .std-command .controls-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .std-command .ctrl-row > button,
  .std-command .controls-row > button,
  .std-command .ctrl-row > .btn,
  .std-command .controls-row > .btn {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 640px) {
  body:has(.std-tool-page) .bc,
  body:has(.tool-page) .bc,
  body:has(.gua-page) .bc,
  body:has(.rc-page) .bc,
  body:has(.sa-page) .bc,
  .tool-hero-bc {
    max-width: min(720px, calc(100vw - 24px)) !important;
    padding: 9px 0 !important;
  }
  .std-command .ctrl-row,
  .std-command .controls-row {
    grid-template-columns: 1fr !important;
  }
  .tool-content-wrap,
  .tool-content-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.tip {
  display:inline-flex; align-items:center; justify-content:center;
  width:14px; height:14px; border-radius:50%;
  background:rgba(166, 166, 166,.18); color:var(--muted);
    
  cursor:help; margin-left:4px; flex-shrink:0;
  vertical-align:middle; user-select:none;
  transition:background .15s, color .15s;
}
.tip:hover { background:var(--accent); color:#fff; }
#g-tip {
  position:fixed; z-index:99999;
  max-width:272px; min-width:160px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:13px 15px;
  box-shadow:0 12px 40px rgba(28, 28, 28,.22);
  pointer-events:none;
  opacity:0; transform:translateY(4px);
  transition:opacity .14s, transform .14s;
}
#g-tip.vis { opacity:1; transform:translateY(0); }
#g-tip-title {   color:var(--text); margin-bottom:5px; }
#g-tip-body  {  color:var(--muted);  }

/* ---------------------------------------------------------------------------
   Light-theme contrast corrections.
   Measured with a WCAG walker over the rendered pages: each rule below replaces
   a colour that failed its required ratio. Numbers in the comments are the
   ratios that were measured before the fix.
   --------------------------------------------------------------------------- */

/* ── Text on the accent ──────────────────────────────────────────────────
   A block filled with the brand red is a surface in its own right and none of
   the theme tokens describe it: --text and --muted are the light greys chosen
   for a near-black page, --accent2 and --accent3 are the lighter reds chosen to
   sit on that page. Painted on #ff5436 they measure 2.96, 1.30, 1.44 and 1.55
   to 1 - the CTA heading on /alexander-yarovenko, its paragraph, the word it
   emphasises, and the line under the author's name.

   This used to name the leaf elements of one component (.cta-card h2, .cta-card
   p) and so covered the home page and nothing else, while the same red panel on
   the founder page, the course tiles, the lesson avatar and the numbered steps
   on /about and /pricing all stayed unreadable. Re-pointing the tokens on the
   surface covers the descendants too, including ones added later. New work can
   use .on-accent and skip this list entirely.
   --------------------------------------------------------------------------- */
.on-accent,
.cta-card,
.cta-box,
.about-cta-box,
.gt-cta-card,
.course-icon,
.ap-feat-icon,
.ap-step-num,
.ap-course-icon,
.ap-store-btn,
.jv-course-avatar,
.jv-bottom-next,
.about-work-step,
.pricing-hero-step span,
/* One filled control per tool, each with its own hex and its own color:#fff.
   Measured 2.48 to 4.10:1. The last three are not the accent but are the same
   arithmetic - a saturated mid-tone is too light to carry white text. */
.he-btn.primary,
.sm-btn-check,
.sf-period-btn.active,
.sf-period-btn:hover,
.cd-tab-btn.active,
.wl-run,
.gu-primary,
.acd-lang button.active,
.zc-period-btn.active,
.zc-period-btn:hover,
.tq-ring-val {
  /* .he-nbsp-badge used to be here. Once --red was darkened for the light theme
     the arithmetic flipped: near-black on #cc3355 is 3.69:1 and white is 5.03,
     so that badge keeps the white it already had. */
  --text:    #16100e;
  /* .82 composited on #fe391f is 4.31:1 - just under, at the 15 and 17px the
     CTA paragraphs use. */
  --muted:   rgba(22, 16, 14, .88);
  --muted2:  rgba(22, 16, 14, .78);
  --accent2: #16100e;
  --accent3: #16100e;
  --border:  rgba(22, 16, 14, .22);
}

/* The descendants that hardcode #fff or a light red rather than reading a
   token. Emphasis inside a heading flattens to the same ink - on red there is
   only one readable colour, and this is what .cta-card has always done. */
.on-accent,
.on-accent :is(h1, h2, h3, h4, span, em, strong, li, a, div),
.cta-card :is(h2, h3, span, em, strong, li),
.cta-box  :is(h2, h3, span, em, strong, li),
.about-cta-box :is(h2, h3, span, em, strong, li),
.gt-cta-card :is(p, span, em, strong, div),
.ap-store-btn,
.ap-store-btn span,
.course-icon,
.ap-feat-icon,
.ap-step-num,
.ap-course-icon,
.jv-course-avatar,
.jv-bottom-next,
.about-work-step,
.pricing-hero-step span,
.he-btn.primary,
.sm-btn-check,
.sf-period-btn.active,
.sf-period-btn:hover,
.cd-tab-btn.active,
.wl-run,
.gu-primary,
.acd-lang button.active,
.zc-period-btn.active,
.zc-period-btn:hover,
.tq-ring-val {
  color: var(--text) !important;
}

/* The glossary CTA button is white-on-white the other way round: a white pill
   sitting on the accent card, with the accent as its label - 3.61:1. */
.gt-cta-card .gt-cta-btn {
  color: var(--accent2);
}

.on-accent p,
.on-accent p *,
.cta-card p,
.cta-card p *,
.cta-box p,
.cta-box p *,
.about-cta-box p,
.about-cta-box p * {
  color: var(--muted);
}

/* Small accent text on a light surface: --accent (#fe391f) measured 2.56-3.61.
   --accent2 is the darker accent the light palette already defines for this. */
[data-theme="light"] .nav-logo span,
[data-theme="light"] .signal-status,
[data-theme="light"] .team-role,
/* The featured course card keeps a dark surface in light theme, so its badge
   must keep the light accent: forcing --accent2 there measured 3.07. */
[data-theme="light"] .course-badge,
[data-theme="light"] .home-course-card:not(.is-featured) .course-badge {
  color: var(--accent2);
}
[data-theme="light"] .home-course-card.is-featured .course-badge {
  color: var(--accent2-on-dark, #ff8f7a) !important;
}

/* Status green measured 3.19-3.38 on the light surfaces. */
[data-theme="light"] .console-live,
[data-theme="light"] .mini-report-head .console-live {
  color: #0a7350;
}

/* 11px labels at #787878 measured 4.42, just under the 4.5 they need. */
[data-theme="light"] .report-metric span,
[data-theme="light"] .mini-report-body .report-metric span {
  color: #5f5f5f !important;
}

/* ---------------------------------------------------------------------------
   Hero bands: a dark surface in BOTH themes.
   Their markup hardcodes white headings, white kickers and translucent-white
   borders, so the block is only readable on a dark surface. core-skin.css set
   `background: transparent` for the whole group and restored it only under
   [data-theme="light"]... no — only under [data-theme="dark"], which left the
   light theme rendering #ffffff text on the #f8f8f8 page: measured 1.06, i.e.
   the entire hero of /tools, /blog, /glossary, every category hub and every
   tool page was invisible in light mode.
   --------------------------------------------------------------------------- */
/* Doubled class on purpose. The old rule listed thirteen hero names, and
   several of those pages carry a one-class background rule of their own that
   loads later; a single .ds-hero would lose the tie and the band would vanish
   (measured on /blog and the .rc-hero tools). .ds-hero.ds-hero outranks any
   single-class rule without naming a single page. */
.ds-hero.ds-hero,
.tool-page > .tool-hero,
.container > .tool-hero,
.tool-page > .hero {
  background: #141414 !important;
}

/* Inside the dark hero band the theme tokens must read as they do in dark mode,
   otherwise light theme paints #626262 "muted" text on #141414 (measured 3.02). */
/* Five tools were built as self-contained apps with their own token namespace,
   so the band's --text/--muted overrides never reached their hero text: measured
   3.41 on the step line of /tools/google-updates. Their names are re-pointed
   here too, inside the band only. */
.ds-hero.ds-hero {
  --gu-text: #f6f6f6;
  --gu-muted: #b9b9b9;
  --gu-line: rgba(255, 255, 255, .16);
  --bn-muted: #b9b9b9;
  --bn-line: rgba(255, 255, 255, .16);
  --c-muted: #b9b9b9;
  --c-line: rgba(255, 255, 255, .16);
  --ca-muted: #b9b9b9;
  --ca-line: rgba(255, 255, 255, .16);
  --lc-muted: #b9b9b9;
  --lc-line: rgba(255, 255, 255, .16);
}

.ds-hero.ds-hero,
.tool-page > .tool-hero,
.container > .tool-hero,
.tool-page > .hero {
  --text: #f6f6f6;
  --muted: #a5a5a5;
  --border: rgba(255, 255, 255, .12);
  --surface: rgba(255, 255, 255, .07);
  --surface2: rgba(255, 255, 255, .05);
  --accent2: #ff8f7a;
  color: var(--text);
}

/* The demo panel sits on that dark band and hardcodes #fff text; a later rule
   had given it var(--surface), which is white in light theme (ratio 1.0). */
.std-demo {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}
.std-flow-card {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

/* The About CTA band keeps white headings, so it keeps a dark surface. */
.about-cta {
  background: #141414 !important;
  --text: #f6f6f6;
  --muted: #a5a5a5;
  --border: rgba(255, 255, 255, .12);
}
.about-cta h2,
.about-cta p {
  color: var(--text);
}
.about-cta p {
  color: var(--muted) !important;
}

/* Accent text on light surfaces: #fe391f measured 3.4 against #f8f8f8. */
[data-theme="light"] .about-kicker,
[data-theme="light"] .pricing-kicker,
[data-theme="light"] .sa-value-kicker {
  color: var(--accent2);
}

/* White on the light red tints measured 2.48 and 2.85.
   .sa-h1-grad used to be here too: the site-audit h1 painted a solid colour
   behind clipped text, so the accent word came out white-on-light-red and this
   file forced a filled red block behind it to make it readable. The template no
   longer clips a background - the word is simply accent-coloured text on the
   dark hero - so the block is gone with it. */
.pricing-choice-badge.popular {
  background: var(--accent2) !important;
}
[data-theme="light"] .about-action.primary {
  background: var(--accent2);
}

/* Remaining accent-on-light text, measured 3.4-3.61. */
[data-theme="light"] .about-eyebrow,
[data-theme="light"] .about-mini-link,
[data-theme="light"] .pricing-section-label,
[data-theme="light"] .std-kicker-accent,
[data-theme="light"] .cat-hero-label-accent,
/* Measured 3.02 to 3.43:1 once the light theme started naming itself and these
   rules could reach anything at all. */
[data-theme="light"] .alpha-heading,
[data-theme="light"] .lang-opt.active,
[data-theme="light"] .person-kicker,
[data-theme="light"] .gu-range-value,
[data-theme="light"] .gu-range-unit {
  color: var(--accent2) !important;
}

/* The mark asks for white in its own rule and a later link rule repaints it
   with --text: 3.15:1 on #0a66c2, where white is 4.6. */
.linkedin-mark,
.about-team-card h3 a.linkedin-mark {
  color: #fff !important;
}

/* Ink on a pale tinted badge. A tint lifts the background a few percent, which
   is enough to push a colour that clears 4.5 on the page under it: --accent2 is
   5.51:1 on white and 4.45 on #fee1dd, --green 4.83 and 4.17, --yellow 4.89 and
   4.35. Each is the same hue taken one more step down, measured on the tint it
   actually sits on rather than on the page. */
[data-theme="light"] .acd-side-num,
[data-theme="light"] .faq-icon,
[data-theme="light"] .gfe-step-chip b,
[data-theme="light"] .ap-level-badge.senior,
[data-theme="light"] .jv-badge.xp {
  color: #a32410;
}

[data-theme="light"] .cert-badge,
[data-theme="light"] .gfe-ready,
[data-theme="light"] .gfe-schema span.metric,
[data-theme="light"] .gfe-step-chip.done b,
[data-theme="light"] .ap-level-badge.junior,
[data-theme="light"] .jv-badge.free {
  color: #076b47 !important;
}

[data-theme="light"] .ap-level-badge.middle {
  color: #7d5210;
}

/* Breadcrumbs measured 4.16 against the light page; they need 4.5. */
[data-theme="light"] .bc a,
[data-theme="light"] .bc ol li a,
[data-theme="light"] nav[aria-label="breadcrumb"] a,
[data-theme="light"] .tool-hero-bc a,
[data-theme="light"] .tab-btn {
  color: #5c5c5c !important;
}

/* Hardcoded grey inside the dark hero band (4.17), and the second pricing
   badge tint (4.1 for 13px text). */
.sa-input-prefix {
  color: #a5a5a5 !important;
}
.pricing-choice-badge.top {
  background: var(--accent2) !important;
}

/* ---------------------------------------------------------------------------
   Dark-theme contrast corrections, measured the same way.
   --------------------------------------------------------------------------- */

/* --accent2 is the dark red in light theme and the light red in dark theme, so
   a badge painted with it needs the opposite text colour in each. White on the
   dark-theme tint measured 2.22. */
.pricing-choice-badge.popular,
.pricing-choice-badge.top,
.about-action.primary {
  background: var(--accent2) !important;
  color: #fff !important;
}
[data-theme="dark"] .pricing-choice-badge.popular,
[data-theme="dark"] .pricing-choice-badge.popular *,
[data-theme="dark"] .pricing-choice-badge.top,
[data-theme="dark"] .pricing-choice-badge.top *,
[data-theme="dark"] .about-action.primary {
  color: #16100e !important;
}

/* A near-white button with white text (1.08). */
[data-theme="dark"] .about-action.secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #f6f6f6;
}

/* 11-13px greys that sit just under 4.5 on the dark surfaces (3.48-4.43). */
[data-theme="dark"] .bc a,
[data-theme="dark"] .bc ol li a,
[data-theme="dark"] nav[aria-label="breadcrumb"] a,
[data-theme="dark"] .tool-hero-bc a,
[data-theme="dark"] .live-counter,
[data-theme="dark"] .lang-btn:not(.active),
[data-theme="dark"] .btn-clear,
[data-theme="dark"] .settings-toggle span {
  color: #9a9a9a !important;
}

/* The selected language chip has a light fill, so it needs dark text (1.14). */
[data-theme="dark"] .lang-btn.active {
  color: #16100e !important;
}

/* ---------------------------------------------------------------------------
   Keyboard focus.
   Several rules across the CSS set `outline: none !important` and nothing ever
   put an indicator back, so tabbing through the site moved an invisible cursor:
   40 of 40 interactive elements on a tool page had no focus indicator at all.
   :focus-visible keeps mouse clicks clean while making keyboard focus obvious.
   --------------------------------------------------------------------------- */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
details:focus-visible,
[tabindex]:focus-visible,
.nav-dropdown-btn:focus-visible,
.nav-dropdown-item:focus-visible,
.tool-card:focus-visible,
.btn:focus-visible,
.btn-nav:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
  border-radius: inherit;
}

/* On the dark hero bands the accent alone can sit close to the surface; a thin
   light halo keeps the ring readable there too. */
.std-hero :focus-visible,
.rc-hero :focus-visible,
.cat-hero :focus-visible,
.ti-hero-box :focus-visible,
.glossary-hero :focus-visible,
.blog-header :focus-visible,
.terminal-card :focus-visible,
.about-cta :focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22) !important;
}

/* Skip link: present for keyboard users, out of the way for everyone else. */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  background: var(--accent);
  color: #16100e;
  
  text-decoration: none;
}
.skip-to-content:focus {
  left: 0;
}

/* ---------------------------------------------------------------------------
   Tool workspace on the page grid.
   Inside main.std-tool-page the <section> blocks (hero, controls, workspace)
   are capped at 1420 px and centred, but the <div> blocks that hold the results
   — verdict, KPI cards, tables, empty states — had no width at all. Measured at
   a 1500 px viewport: sections 1420 px starting at x=38, results 1495 px
   starting at x=0, i.e. hard against both screen edges while everything above
   and below them was inset. Same on every tool page.
   `min(100% - 32px, 1420px)` keeps the 16 px gutter at any width.
   --------------------------------------------------------------------------- */
main.std-tool-page > div,
main.tool-page > div,
main.std-tool-page > section,
main.tool-page > section {
  width: min(100% - 32px, 1420px);
  margin-left: auto;
  margin-right: auto;
}

/* The breadcrumb bar spans the full width by design and carries its own
   container, so it keeps out of this. */
main.std-tool-page > div.bc-bar,
main.tool-page > div.bc-bar {
  width: 100%;
}

@media (max-width: 900px) {
  :root,
  html {
    --ds-shell: min(1420px, calc(100vw - 44px));
    --ds-tool-shell: var(--ds-shell);
  }
}

@media (max-width: 560px) {
  :root,
  html {
    --ds-shell: min(1420px, calc(100vw - 24px));
    --ds-tool-shell: var(--ds-shell);
  }
}

/* Period chips: moved to static/css/tool-ui.css, which owns the tool controls. */

/* ---------------------------------------------------------------------------
   The breadcrumb above the hero.

   base.html tags every .bc-bar breadcrumb with `tool-hero-bc`, and that class is
   styled for a crumb sitting INSIDE the dark hero: white current page, 64%-white
   links. The bar it actually lives in is the page background, so on every tool
   page that does not override the block the crumb was white on white - measured
   rgb(255,255,255) on rgba(248,248,248,.72), i.e. invisible.

   The colours are set in five separate blocks in 40-skin.css; rather than chase
   them, this states the rule once, last, for the crumb that is in the bar.
   A crumb genuinely inside a band is not in .bc-bar and is untouched.
   --------------------------------------------------------------------------- */
.bc-bar .tool-hero-bc li,
.bc-bar .tool-hero-bc a {
  color: var(--muted) !important;
}
.bc-bar .tool-hero-bc a:hover {
  color: var(--accent2) !important;
}
.bc-bar .tool-hero-bc .bc-cur {
  color: var(--text) !important;
}
.bc-bar .tool-hero-bc li + li::before {
  color: var(--border-strong) !important;
}

/* ---------------------------------------------------------------------------
   Shared primary action baseline.

   `.btn-primary` is used outside the tool bundle too (for example the glossary
   practice CTA). Previously its background and dimensions lived only in
   30-tool-legacy.css, so the same class became a 27px-high transparent text link
   on content hubs. Keep the semantic class self-contained in the final system
   layer; page-specific rules can still refine width and spacing.
   --------------------------------------------------------------------------- */
:where(a, button).btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #16100e;
  
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px var(--glow);
  transition: transform .18s, box-shadow .18s, background-color .18s;
}

@media (hover: hover) {
  :where(a, button).btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px var(--glow);
  }
}

/* ---------------------------------------------------------------------------
   Mobile rhythm shared by public pages.

   Hero titles previously ranged from 35px to 59px at the same 390px viewport.
   The cap gives every content family a predictable first screen. Long current
   breadcrumb labels stay available to assistive tech but no longer consume
   three visual lines above the actual page heading.
   --------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .about-title,
  .faq-hero h1 {
    max-width: 100%;
    
    
    overflow-wrap: anywhere;
  }

  .bc {
    max-width: 100%;
    overflow: hidden;
  }

  .bc ol {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .bc li:not(:last-child) {
    flex: 0 0 auto;
  }

  .bc li:last-child {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .bc li:last-child .bc-cur {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .letter-jump a {
    min-width: 40px;
    min-height: 40px;
  }
}

/* ============ 70-tool-workbench.css ============ */
/* Public tool workbench. One shared layout; never applied to the catalogue,
   marketing pages, dashboard or the independent GSC Workspace shell.
   !important is limited to the boundary with the legacy skin. Component
   states below are explicit, not inferred from button[type=button]. */
.tool-workbench-page #main {
  --tool-shell: min(1280px, calc(100% - 48px));
  --tool-accent-text: var(--accent2);
  
}
.tool-workbench-page #main :is(.std-tool-page, .container.tool-page) {
  padding-top: 0 !important;
  background: transparent !important;
}
.tool-workbench-page #main > :is(.container, .tq-page) {
  width: var(--tool-shell) !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
.tool-workbench-page #main :is(.ds-hero, .std-command, .std-workspace, .tool-content-section, .tool-content-wrap, .rc-shell, .rc-content, .html-editor-wrap) {
  width: var(--tool-shell) !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
  box-sizing: border-box;
  /* A work surface must be readable immediately, not fade through several
     inherited marketing entrance animations after every navigation. */
  animation: none !important;
  transition: none !important;
}
.tool-workbench-page #main .ds-hero {
  --text: var(--ds-text);
  --muted: var(--ds-muted);
  --surface: var(--ds-surface);
  --surface2: var(--ds-surface-soft);
  --border: var(--ds-border);
  --accent2: var(--tool-accent-text);
  --gu-muted: var(--ds-muted);
  --bn-muted: var(--ds-muted);
  --c-muted: var(--ds-muted);
  --ca-muted: var(--ds-muted);
  --lc-muted: var(--ds-muted);
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  padding: 24px 0 20px !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ds-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ds-text) !important;
  overflow: visible !important;
}
.tool-workbench-page #main .ds-hero::before,
.tool-workbench-page #main .ds-hero::after { content: none !important; }
.tool-workbench-page #main > :is(.container, .tq-page) > .ds-hero,
.tool-workbench-page #main .tool-content-wrap > .tool-content-section {
  width: 100% !important;
}
.tool-workbench-page #main .tq-editor > .tq-bar {
  position: static;
  width: 100% !important;
  padding: 12px 0 0 !important;
  margin: 12px 0 0 !important;
  border: 0;
  box-shadow: none !important;
  background: transparent !important;
}
.tool-workbench-page #main .std-hero-inner {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tool-workbench-page #main .ds-hero .std-kicker {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  border: 0 !important;
  
}
.tool-workbench-page #main .ds-hero h1 {
  max-width: 100% !important;
  margin: 6px 0 10px !important;
  
  
  
  
  color: var(--ds-text) !important;
  overflow-wrap: anywhere;
}
.tool-workbench-page #main .ds-hero :is(p, .std-lead) {
  max-width: 90ch !important;
  margin: 0 !important;
  
  
  color: var(--ds-muted) !important;
}
.tool-workbench-page #main .ds-hero :is(.std-kicker, .mg-eyebrow, .std-benefit, .std-benefit b) {
  color: var(--ds-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tool-workbench-page #main .ds-hero :is(.tq-eyebrow, .tq-hero-pill, .gua-trust-item, .sa-ticker) {
  color: var(--ds-muted) !important;
  border-color: var(--ds-border) !important;
  background: var(--ds-surface-soft) !important;
  box-shadow: none !important;
}
.tool-workbench-page #main .ds-hero .sa-input-prefix { color: var(--ds-muted) !important; }
.tool-workbench-page #main .std-benefits {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 16px !important;
  margin: 12px 0 0 !important;
}
.tool-workbench-page #main .std-benefit {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  
}
.tool-workbench-page #main .std-benefit b {  }

/* Optional instructions use native details: accessible without JS, no loss of
   content, and no three-card marketing column before the first field. */
.tool-workbench-page #main .tool-guide {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ds-text);
}
.tool-workbench-page #main .tool-guide > summary {
  width: fit-content;
  min-height: 36px;
  padding: 6px 0;
  
  color: var(--ds-text);
  cursor: pointer;
}
.tool-workbench-page #main .tool-guide :is(.std-flow, .mg-flow) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0;
}
.tool-workbench-page #main .tool-guide :is(.std-flow-card, .mg-flow-step) {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ds-border) !important;
  border-radius: 10px;
  background: var(--ds-surface-soft) !important;
  color: var(--ds-text) !important;
  box-shadow: none;
}
.tool-workbench-page #main .tool-guide :is(b, span, small) { color: inherit !important; }
.tool-workbench-page #main .tool-guide .std-benefit b { color: var(--ds-muted) !important; }
.tool-workbench-page #main .tool-guide :is(span, small) {   }
.tool-workbench-page #main .tool-guide .std-demo-head { display: none; }
.tool-workbench-page #main .tool-guide--comparison { width: var(--tool-shell); margin: 20px auto; }

/* Form typography and control geometry. Small icons/tabs retain their own
   shape; content is never forced into a fixed-height single line. */
.tool-workbench-page #main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]), select, textarea) {
  max-width: 100%;
  min-width: 0;
  
  
  border-radius: 10px !important;
  box-shadow: none !important;
}
.tool-workbench-page #main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]), select) {
  min-height: 44px !important;
}
.tool-workbench-page #main :is(button, .btn) {
  box-shadow: none !important;
  text-shadow: none;
  
  transform: none !important;
}
.tool-workbench-page #main :is(button, .btn)::after { content: none !important; }
.tool-workbench-page #main textarea { min-height: 180px !important; resize: vertical; }
.tool-workbench-page #main .tool-form-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px;
  align-items: center;
}
.tool-workbench-page #main .tool-form-row > * { min-width: 0; max-width: 100%; }
.tool-workbench-page #main .tool-input-group {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
.tool-workbench-page #main .tool-input-group > button { width: auto !important; }
.tool-workbench-page #main :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--accent2) !important;
  outline-offset: 3px !important;
}
.tool-workbench-page #main .tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: var(--surface2) !important;
  color: var(--text) !important;
  
  cursor: pointer;
  white-space: normal;
}
.tool-workbench-page #main .tool-button--primary {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #171717 !important;
}
.tool-workbench-page #main .tool-choice {
  border: 1px solid var(--border-strong) !important;
  background: var(--surface2) !important;
  color: var(--text) !important;
  cursor: pointer;
  
}
.tool-workbench-page #main .tool-choice[aria-pressed=true] {
  border-color: var(--accent2) !important;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface2)) !important;
  box-shadow: inset 0 0 0 1px var(--accent2) !important;
  color: var(--text) !important;
}
.tool-workbench-page #main .tool-choice:hover { border-color: var(--accent2) !important; }

/* Match the existing workbench shell without the marketing page's trailing
   76px spacer followed by another content wrapper margin. */
.tool-workbench-page #main > .std-tool-page { padding-bottom: 0 !important; }
.tool-workbench-page #main .tool-content-wrap {
  width: 100% !important;
  padding-bottom: 0;
  margin-top: 24px !important;
}

/* Help is readable prose, not a separate raised card for every paragraph.
   Results, table wrappers and interactive FAQ containers keep their structure. */
.tool-workbench-page #main :is(.tool-content-section, .ptb > section) {
  display: block;
  padding: 24px !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}
.tool-workbench-page #main :is(.tool-content-section, .ptb) :is(h2, h3) {
  
  
  margin: 0 0 14px !important;
  
  
}
.tool-workbench-page #main :is(.tool-content-section, .ptb) :is(p, li) {
  max-width: 85ch !important;
  
  
}
.tool-workbench-page #main :is(.tool-content-section, .ptb section) > :is(p, ul, ol) {
  display: block;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.tool-workbench-page #main :is(.tool-content-section, .ptb) :is(ul, ol) { padding-left: 22px !important; }
.tool-workbench-page #main :is(.tool-content-section, .ptb) ul { list-style: disc; }
.tool-workbench-page #main :is(.tool-content-section, .ptb) ol { list-style: decimal; }
.tool-workbench-page #main :is(.tool-content-section, .ptb) li {
  margin: 5px 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tool-workbench-page #main :is(.tool-content-section, .ptb) li::before { content: none !important; }
.tool-workbench-page #main :is(.std-command, .std-workspace, .rc-shell) {
  border-radius: 14px !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .tool-workbench-page #main .tool-input-group { grid-template-columns: auto minmax(0, 1fr) !important; }
  .tool-workbench-page #main .tool-input-group > button { grid-column: 1 / -1; width: 100% !important; }
}
@media (max-width: 700px) {
  .tool-workbench-page #main { --tool-shell: calc(100% - 24px); }
  .tool-workbench-page #main .ds-hero { padding: 16px 0 !important; }
  .tool-workbench-page #main .tool-guide :is(.std-flow, .mg-flow) { grid-template-columns: 1fr; }
  .tool-workbench-page #main .tool-form-row { grid-template-columns: minmax(0, 1fr) !important; padding: 0; border: 0; background: transparent; }
  .tool-workbench-page #main .tool-form-row > :is(input, button) { width: 100% !important; }
  .tool-workbench-page #main :is(.std-command, .std-workspace, .rc-shell, .tool-content-section, .ptb > section) { padding: 16px !important; }
  .tool-workbench-page #main :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {  }
}
