/* Public tools reuse Panel.rip typography, neutral surfaces and controls. */
.seo-tool-shell,
.seo-tools-shell {
  --tools-ink: #111827;
  --tools-muted: #475569;
  --tools-line: #cbd5e1;
  --tools-paper: #ffffff;
  --tools-soft: #f1f5f9;
  --tools-accent: #4338ca;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  color: var(--tools-ink);
}
.dark .seo-tool-shell,
.dark .seo-tools-shell {
  --tools-ink: #f1f5f9;
  --tools-muted: #cbd5e1;
  --tools-line: #475569;
  --tools-paper: #111827;
  --tools-soft: #0f172a;
  --tools-accent: #c7d2fe;
}
.seo-tool-shell *,
.seo-tools-shell * { box-sizing: border-box; }
.seo-tool-shell :is(a,button,input,select,summary):focus-visible,
.seo-tools-shell :is(a,button,summary):focus-visible {
  outline: 3px solid var(--tools-accent);
  outline-offset: 4px;
}
.seo-tool-shell .tools-breadcrumb,
.seo-tools-shell .tools-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--tools-muted);
  font-size: .8125rem;
}
.seo-tool-shell .tools-breadcrumb a,
.seo-tools-shell .tools-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.seo-tool-shell .seo-tool-hero,
.seo-tools-shell .seo-tools-hero {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.seo-tool-shell .seo-tool-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
.seo-tool-shell .seo-tool-hero > div { max-width: 810px; }
.seo-tool-shell h1,
.seo-tools-shell h1 {
  max-width: 27ch;
  margin: 0 0 14px;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.seo-tool-shell .seo-tool-hero p,
.seo-tools-shell .seo-tools-hero p {
  max-width: 74ch;
  margin: 0;
  color: var(--tools-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.seo-tool-shell .seo-tool-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  border: 1px solid #64748b;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--tools-ink);
  background: var(--tools-paper);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.seo-tool-shell .seo-tool-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 0;
  overflow: hidden;
  margin: 0 0 40px;
  border: 1px solid var(--tools-line);
  border-radius: 12px;
  background: var(--tools-paper);
}
.seo-tool-shell .seo-tool-card,
.seo-tool-shell .seo-tool-result { min-width: 0; padding: 28px; }
.seo-tool-shell .seo-tool-card h2 {
  margin: 0 0 20px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.seo-tool-shell .seo-tool-lede {
  margin: -8px 0 22px;
  color: var(--tools-muted);
  font-size: .875rem;
  line-height: 1.65;
}
.seo-tool-shell .seo-tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.seo-tool-shell .seo-tool-form label {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: var(--tools-ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}
.seo-tool-shell .tools-service-filter { grid-column: 1 / -1; }
.seo-tool-shell .tools-field-hint { margin: -8px 0 18px; color: var(--tools-muted); font-size: .8125rem; line-height: 1.7; }
.seo-tool-shell .seo-tool-form label:has(#servicePriceService, #refillService, #splitService) { grid-column: 1 / -1; }
.seo-tool-shell .seo-tool-form input,
.seo-tool-shell .seo-tool-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #64748b;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--tools-ink);
  background: var(--tools-paper);
  font: inherit;
  font-weight: 400;
}
.seo-tool-shell .seo-tool-form input::placeholder { color: #64748b; opacity: 1; }
.dark .seo-tool-shell .seo-tool-form input::placeholder { color: #94a3b8; }
.seo-tool-shell .seo-tool-form select:disabled {
  cursor: not-allowed;
  opacity: .7;
}
.seo-tool-shell .seo-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 24px;
  border: 1px solid #4338ca;
  border-radius: 8px;
  padding: 11px 20px;
  color: #ffffff;
  background: #4338ca;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}
.seo-tool-shell .seo-tool-result {
  border-left: 1px solid var(--tools-line);
  background: var(--tools-soft);
}
.seo-tool-shell .seo-tool-result > span:first-child {
  display: block;
  margin-bottom: 16px;
  color: var(--tools-muted);
  font-size: .8125rem;
  font-weight: 650;
}
.seo-tool-shell .seo-tool-result strong {
  display: block;
  color: var(--tools-ink);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.seo-tool-shell .seo-tool-result #orderSplitResult,
.seo-tool-shell .seo-tool-result #estimatedRefillProfit { font-size: 1.625rem; line-height: 1.4; }
.seo-tool-shell .seo-tool-result #campaignScore {
  display: block;
  margin-top: 14px;
  font-size: .875rem;
  font-weight: 650;
}
.seo-tool-shell .seo-tool-result p {
  margin: 18px 0 14px;
  color: var(--tools-muted);
  font-size: .9375rem;
  line-height: 1.8;
}
.seo-tool-shell .seo-tool-result small {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--tools-line);
  color: var(--tools-muted);
  font-size: .8125rem;
  line-height: 1.7;
}
.seo-tool-shell .seo-tool-checklist { margin-top: 20px; }
.seo-tool-shell .seo-tool-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 13px 0;
  border-bottom: 1px solid var(--tools-line);
  font-size: .9375rem;
  line-height: 1.65;
  cursor: pointer;
}
.seo-tool-shell .seo-tool-checklist input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: #4338ca;
}
.seo-tool-shell .seo-tool-services,
.seo-tool-shell .seo-tool-methodology,
.seo-tool-shell .seo-tool-faq,
.seo-tool-shell .seo-tool-related {
  margin-top: 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--tools-line);
}
.seo-tool-shell .seo-tool-services-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}
.seo-tool-shell .seo-section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--tools-muted);
  font-size: .75rem;
  font-weight: 600;
}
.seo-tool-shell :is(.seo-tool-services,.seo-tool-faq,.seo-tool-related,.seo-tool-methodology) h2,
.seo-tools-shell h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.seo-tool-shell .seo-tool-services-header p,
.seo-tool-shell .seo-tool-methodology p,
.seo-tool-shell .seo-tool-methodology li {
  color: var(--tools-muted);
  font-size: .9375rem;
  line-height: 1.75;
}
.seo-tool-shell .seo-service-grid { display: grid; grid-template-columns: 1fr; }
.seo-tool-shell .seo-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--tools-line);
}
.seo-tool-shell .seo-service-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  grid-column: 2;
  grid-row: 1;
  color: var(--tools-muted);
  font-size: .8125rem;
}
.seo-tool-shell .seo-service-card-top strong {
  color: var(--tools-ink);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.seo-tool-shell .seo-service-card h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.seo-tool-shell .seo-service-card p {
  grid-column: 1;
  margin: 0;
  color: var(--tools-muted);
  font-size: .875rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.seo-tool-shell .seo-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  grid-column: 1;
  color: var(--tools-muted);
  font-size: .8125rem;
  line-height: 1.6;
}
.seo-tool-shell .seo-service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: end;
  grid-column: 2;
  grid-row: 2 / span 2;
  gap: 8px;
}
.seo-tool-shell .seo-service-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #64748b;
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--tools-ink);
  background: var(--tools-paper);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}
.seo-tool-shell .seo-service-actions a:first-child { border-color: #4338ca; color: #ffffff; background: #4338ca; }
.seo-tool-shell .seo-service-empty {
  margin: 10px 0;
  padding: 18px 0;
  color: var(--tools-muted);
  line-height: 1.7;
}
.seo-tool-shell .seo-tool-methodology { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px 40px; }
.seo-tool-shell .seo-tool-methodology article:last-child { grid-column: 1 / -1; }
.seo-tool-shell .seo-tool-methodology h3 { margin: 0 0 10px; font-weight: 650; font-size: 1rem; }
.seo-tool-shell .seo-tool-methodology ul { margin: 0; padding-left: 20px; list-style: disc; }
.seo-tool-shell .seo-tool-faq details { border-bottom: 1px solid var(--tools-line); }
.seo-tool-shell .seo-tool-faq summary { min-height: 50px; padding: 17px 0; font-size: 1rem; font-weight: 600; line-height: 1.6; cursor: pointer; }
.seo-tool-shell .seo-tool-faq details p { max-width: 80ch; margin: 0 0 20px; color: var(--tools-muted); font-size: .9375rem; line-height: 1.8; }
.seo-tool-shell .seo-tool-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.seo-tool-shell .seo-tool-link-grid a { display: block; padding: 17px 0; border-bottom: 1px solid var(--tools-line); color: var(--tools-ink); text-decoration: none; }
.seo-tool-shell .seo-tool-link-grid strong { display: block; font-size: .9375rem; font-weight: 650; line-height: 1.6; }
.seo-tool-shell .seo-tool-link-grid span { display: block; margin-top: 5px; color: var(--tools-muted); font-size: .8125rem; line-height: 1.7; }
.seo-tools-shell .tools-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 32px; }
.seo-tools-shell .tools-directory-group { min-width: 0; }
.seo-tools-shell .tools-directory-group:first-child { grid-row: span 2; }
.seo-tools-shell .tools-directory-group h2 { padding-bottom: 15px; border-bottom: 1px solid var(--tools-line); }
.seo-tools-shell .seo-tools-card { display: block; padding: 18px 0; border-bottom: 1px solid var(--tools-line); color: var(--tools-ink); text-decoration: none; }
.seo-tools-shell .seo-tools-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.seo-tools-shell .seo-tools-card p { margin: 0; color: var(--tools-muted); font-size: .875rem; line-height: 1.75; }
.seo-tools-shell .seo-tools-related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--tools-line); }
.seo-tools-shell .seo-tools-related p { max-width: 80ch; color: var(--tools-muted); line-height: 1.75; }
.seo-tools-shell .seo-tools-related div { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.seo-tools-shell .seo-tools-related a { display: inline-flex; align-items: center; min-height: 40px; color: var(--tools-accent); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .seo-tool-shell .seo-tool-button:hover,
  .seo-tool-shell .seo-service-actions a:first-child:hover { background: #3730a3; }
  .seo-tool-shell .seo-tool-service-link:hover,
  .seo-tool-shell .seo-service-actions a:last-child:hover { background: var(--tools-soft); }
  .seo-tools-shell .seo-tools-card:hover h3,
  .seo-tool-shell .seo-tool-link-grid a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 820px) {
  .seo-tool-shell,
  .seo-tools-shell { padding: 24px 18px 48px; }
  .seo-tool-shell .seo-tool-hero { flex-direction: column; gap: 18px; }
  .seo-tool-shell .seo-tool-workbench { grid-template-columns: 1fr; }
  .seo-tool-shell .seo-tool-result { border-top: 1px solid var(--tools-line); border-left: 0; }
  .seo-tool-shell .seo-tool-card,
  .seo-tool-shell .seo-tool-result { padding: 22px; }
  .seo-tool-shell .seo-tool-services-header { flex-direction: column; gap: 16px; }
  .seo-tools-shell .tools-directory { grid-template-columns: 1fr; gap: 32px; }
  .seo-tools-shell .tools-directory-group:first-child { grid-row: auto; }
}
@media (max-width: 560px) {
  .seo-tool-shell h1,
  .seo-tools-shell h1 { font-size: 1.875rem; }
  .seo-tool-shell .seo-tool-form { grid-template-columns: 1fr; }
  .seo-tool-shell .seo-tool-button { width: 100%; }
  .seo-tool-shell .seo-tool-methodology,
  .seo-tool-shell .seo-tool-link-grid { grid-template-columns: 1fr; }
  .seo-tool-shell .seo-tool-methodology article:last-child { grid-column: auto; }
  .seo-tool-shell .seo-service-card { grid-template-columns: 1fr; gap: 10px; }
  .seo-tool-shell .seo-service-card-top { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; }
  .seo-tool-shell .seo-service-card h3 { grid-row: auto; }
  .seo-tool-shell .seo-service-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .seo-tool-shell .seo-tool-result strong { font-size: 2rem; }
}
@media print {
  .seo-tool-shell .seo-tool-workbench { break-inside: avoid; }
  .seo-tool-shell .seo-tool-button { display: none; }
}
