/* Shared UI for /tools/ and /tools/<slug>/. */
:root {
  --tool-bg: #f3f6f8;
  --tool-surface: #ffffff;
  --tool-soft: #f8fafc;
  --tool-soft-2: #eef4f5;
  --tool-border: #dbe3ea;
  --tool-border-strong: #c9d5df;
  --tool-ink: #111827;
  --tool-body: #344256;
  --tool-muted: #64748b;
  --tool-dim: #93a2b3;
  --tool-dark: #080a0f;
  --tool-dark-2: #15120e;
  --tool-teal: #0f766e;
  --tool-teal-dark: #075e58;
  --tool-teal-soft: #d8f3ef;
  --tool-blue: #2563eb;
  --tool-blue-soft: #dbeafe;
  --tool-amber: #b7791f;
  --tool-amber-soft: #fef3c7;
  --tool-red: #c24135;
  --tool-red-soft: #fee2e2;
  --tool-green: #16834f;
  --tool-green-soft: #dcfce7;
  --tool-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.tools-page,
.tool-page {
  background: var(--tool-bg);
  color: var(--tool-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.tools-page *,
.tools-page *::before,
.tools-page *::after,
.tool-page *,
.tool-page *::before,
.tool-page *::after {
  box-sizing: border-box;
}

.tools-page h1,
.tools-page h2,
.tools-page h3,
.tools-page p,
.tools-page a,
.tools-page span,
.tools-page strong,
.tools-page small,
.tool-page h1,
.tool-page h2,
.tool-page h3,
.tool-page p,
.tool-page a,
.tool-page span,
.tool-page strong,
.tool-page small {
  letter-spacing: 0;
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
}

.tool-wrap {
  margin: 0 auto;
  width: min(1180px, calc(100vw - 32px));
}

.tools-hero,
.tool-detail-hero {
  background:
    linear-gradient(135deg, rgba(8, 10, 15, 0.98) 0%, rgba(13, 17, 24, 0.98) 54%, rgba(21, 18, 14, 0.98) 100%),
    linear-gradient(90deg, rgba(20, 184, 166, 0.16), rgba(245, 158, 11, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tools-hero__inner {
  align-items: end;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) 330px;
  padding: 52px 0 64px;
}

.tool-detail-hero__inner {
  padding: 32px 0 58px;
}

.tool-detail-hero__grid {
  align-items: end;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.tool-breadcrumb {
  align-items: center;
  color: var(--tool-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 8px;
  margin: 0 0 32px;
}

.tool-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: var(--tool-ink);
  text-decoration: underline;
}

.tool-breadcrumb--dark {
  color: #a8b3c2;
}

.tool-breadcrumb--dark a {
  color: #dce7f3;
}

.tool-breadcrumb--dark a:hover {
  color: #ffffff;
}

.tool-kicker,
.tool-section-eyebrow {
  align-items: center;
  color: var(--tool-teal-dark);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 850;
  gap: 9px;
  line-height: 1;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.tool-kicker {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #b9fff4;
  padding: 9px 12px;
}

.tool-kicker__dot {
  background: #14b8a6;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.78);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.tools-hero h1,
.tool-detail-hero h1 {
  color: #ffffff;
  font-size: clamp(2.35rem, 5.6vw, 5.1rem);
  font-weight: 850;
  line-height: 0.98;
  margin: 0 0 20px;
  max-width: 880px;
}

.tools-hero__summary,
.tool-detail-hero__summary {
  color: #d7e0eb;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
  margin: 0;
  max-width: 790px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.tool-chips span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #dce7f3;
  font-size: 0.78rem;
  line-height: 1.2;
  max-width: 100%;
  padding: 8px 11px;
}

.tools-hero__panel,
.tool-app-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  min-width: 0;
  padding: 22px;
}

.tools-hero__panel-label,
.tool-app-card__eyebrow {
  color: #9aa8b8;
  font-size: 0.72rem;
  font-weight: 850;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tools-hero__quick {
  display: grid;
  gap: 10px;
}

.tools-hero__quick a {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  display: block;
  padding: 13px 14px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 180ms ease;
}

.tools-hero__quick a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(185, 255, 244, 0.35);
  transform: translateY(-1px);
}

.tools-hero__quick strong {
  color: #ffffff;
  display: block;
  font-size: 0.96rem;
  line-height: 1.35;
}

.tools-hero__quick span {
  color: #c9d4e0;
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 3px;
}

.tool-app-card__top,
.tool-cta__top {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.tool-app-card__icon,
.tool-cta__icon {
  background: #111827;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
}

.tool-app-card__icon {
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  height: 62px;
  width: 62px;
}

.tool-app-card__eyebrow {
  margin: 0 0 4px;
}

.tool-app-card h2,
.tool-cta h2 {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
}

.tool-app-card__copy {
  color: #c9d4e0;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 18px 0 0;
}

.tool-app-card__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tool-app-card__link {
  color: #b9fff4;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.tool-app-card__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.tools-directory,
.tool-workspace {
  padding: 36px 0 84px;
}

.tools-section-head {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  margin-bottom: 26px;
}

.tools-section-head h2,
.tool-panel__header h2,
.tool-cluster h2,
.tool-related h2,
.tool-faq h2 {
  color: var(--tool-ink);
  font-weight: 850;
  letter-spacing: 0;
}

.tools-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
  margin: 0;
}

.tools-section-head p {
  color: var(--tool-muted);
  line-height: 1.65;
  margin: 0;
}

.tool-clusters {
  display: grid;
  gap: 26px;
}

.tool-cluster {
  background: var(--tool-surface);
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  box-shadow: var(--tool-shadow);
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
}

.tool-cluster__head {
  margin-bottom: 18px;
}

.tool-cluster h2 {
  font-size: 1.34rem;
  line-height: 1.25;
  margin: 0 0 5px;
}

.tool-cluster p {
  color: var(--tool-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.tools-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}

.tool-card {
  background: var(--tool-soft);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  min-width: 0;
  padding: 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tool-card:hover {
  background: #ffffff;
  border-color: #9ccfca;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.tool-card__top {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.tool-card__media,
.tool-related__media {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
}

.tool-card__media {
  height: 46px;
  width: 46px;
}

.tool-card__media img,
.tool-related__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tool-card__emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.tool-card__app {
  color: var(--tool-muted);
  display: -webkit-box;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-card__label {
  color: var(--tool-teal-dark);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.tool-card h3 {
  color: var(--tool-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.32;
  margin: 0 0 8px;
}

.tool-card p {
  color: #526173;
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.tool-card__action,
.tool-card__go {
  color: var(--tool-teal-dark);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 850;
  margin-top: 18px;
}

.tool-workspace__grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.tool-workspace__primary {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tool-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.tool-panel,
.tool-related,
.tool-faq {
  background: var(--tool-surface);
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  box-shadow: var(--tool-shadow);
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
}

.tool-panel__header {
  border-bottom: 1px solid var(--tool-border);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.tool-panel__header h2 {
  font-size: clamp(1.34rem, 2.4vw, 1.8rem);
  line-height: 1.18;
  margin: 0;
}

.tool-panel__body {
  min-width: 0;
}

.tool-cta {
  background:
    linear-gradient(145deg, rgba(8, 10, 15, 0.98) 0%, rgba(13, 17, 24, 0.98) 58%, rgba(21, 18, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  color: #ffffff;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

.tool-cta__icon {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  height: 64px;
  width: 64px;
}

.tool-cta__eyebrow {
  color: #9aa8b8;
  font-size: 0.72rem;
  font-weight: 850;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.tool-cta__tagline {
  color: #c9d4e0;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 6px 0 0;
}

.tool-cta__features {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.tool-cta__features li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #dce7f3;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 9px 10px;
}

.tool-cta__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.tool-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 11px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 180ms ease, color 160ms ease, transform 180ms ease;
}

.tool-btn:hover {
  transform: translateY(-1px);
}

.tool-btn:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}

.tool-btn--primary {
  background: var(--tool-teal-dark);
  color: #ffffff;
}

.tool-btn--primary:hover {
  background: #064e49;
  box-shadow: 0 12px 24px rgba(7, 94, 88, 0.18);
}

.tool-btn--ghost {
  background: #ffffff;
  border-color: var(--tool-border-strong);
  color: var(--tool-ink);
}

.tool-btn--ghost:hover {
  background: var(--tool-soft);
  border-color: #aab8c6;
}

.tool-btn--dark {
  background: var(--tool-ink);
  color: #ffffff;
}

.tool-btn--appstore {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.tool-btn--appstore:hover {
  background: #f8fafc;
}

.tool-btn--glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.tool-btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tool-link,
.tool-textlink {
  color: var(--tool-teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.tool-link:hover,
.tool-textlink:hover {
  color: #064e49;
  text-decoration: underline;
}

.tool-textlink {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0;
}

.tool-related__head {
  margin-bottom: 16px;
}

.tool-related h2,
.tool-faq h2 {
  font-size: 1.34rem;
  line-height: 1.25;
  margin: 0;
}

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

.tool-related__item {
  align-items: flex-start;
  background: var(--tool-soft);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 180ms ease;
}

.tool-related__item:hover {
  background: #ffffff;
  border-color: #9ccfca;
  transform: translateY(-1px);
}

.tool-related__media {
  height: 40px;
  width: 40px;
}

.tool-related__emoji {
  font-size: 1.1rem;
}

.tool-related__item strong {
  color: var(--tool-ink);
  display: block;
  font-size: 0.94rem;
  line-height: 1.35;
}

.tool-related__item small {
  color: var(--tool-muted);
  display: -webkit-box;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-faq__list {
  border-top: 1px solid var(--tool-border);
  margin-top: 18px;
}

.tool-faq details {
  border-bottom: 1px solid var(--tool-border);
  padding: 17px 0;
}

.tool-faq summary {
  align-items: center;
  color: var(--tool-ink);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.45;
  list-style: none;
}

.tool-faq summary::-webkit-details-marker {
  display: none;
}

.tool-faq summary .plus {
  align-items: center;
  border: 1px solid var(--tool-border);
  border-radius: 50%;
  color: var(--tool-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
  width: 28px;
}

.tool-faq details[open] summary .plus {
  background: var(--tool-teal-soft);
  color: var(--tool-teal-dark);
  transform: rotate(45deg);
}

.tool-faq p {
  color: var(--tool-body);
  line-height: 1.7;
  margin: 12px 0 0;
}

.tool-more {
  text-align: center;
}

.tool-main {
  background: var(--tool-surface);
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  color: var(--tool-body);
  margin: 32px auto 64px;
  max-width: 880px;
  padding: 28px;
}

.tool-main--wide {
  max-width: 1080px;
}

.tool-hero {
  margin-bottom: 30px;
}

.tool-hero h1 {
  color: var(--tool-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 850;
  line-height: 1.05;
  margin: 0;
}

.tool-hero p {
  color: var(--tool-body);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 12px 0 0;
}

/* Shared form controls and widget primitives. */
.tool-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.tool-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.tool-row > label {
  flex: 1 1 210px;
  min-width: 0;
}

.tool-input,
.tool-textarea,
.tool-select {
  background: #ffffff;
  border: 1px solid var(--tool-border-strong);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  color: var(--tool-ink);
  display: block;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 100%;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
  width: 100%;
}

.tool-textarea {
  min-height: 224px;
  resize: vertical;
}

.tool-textarea--short {
  min-height: 132px;
}

.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
  border-color: var(--tool-teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
  outline: 0;
}

.tool-status {
  background: var(--tool-soft);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  color: var(--tool-body);
  line-height: 1.6;
  margin: 0;
  padding: 12px 14px;
}

.sn-label {
  color: var(--tool-body);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}

.sn-checkbox,
.bt-checklist label,
.grocery-group label,
.allergen-fieldset label {
  color: var(--tool-body);
  min-width: 0;
}

.sn-checkbox {
  align-items: center;
  display: flex;
  gap: 8px;
}

.tool-input--serial {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  width: 220px;
}

.star-prefix {
  text-transform: uppercase;
  width: 92px;
}

.sn-note {
  color: var(--tool-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.sn-result {
  margin-top: 2px;
}

.sn-error,
.grammar-ok {
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.55;
  margin: 0;
  padding: 12px 14px;
}

.sn-error {
  background: var(--tool-red-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.grammar-ok {
  background: var(--tool-green-soft);
  border: 1px solid #bbf7d0;
  color: #166534;
}

.sn-card,
.rewrite-card,
.grammar-issue,
.correction-output {
  background: var(--tool-soft);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.sn-card__head,
.rewrite-card__head,
.correction-output__head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.sn-card__head p,
.sn-name {
  color: var(--tool-ink);
  font-weight: 800;
  margin: 0;
}

.sn-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sn-blurb {
  color: var(--tool-body);
  line-height: 1.65;
}

.sn-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
}

.sn-list li {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.sn-tier {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 5px 8px;
}

.tier-1 {
  background: #e5e7eb;
  color: #374151;
}

.tier-2,
.tier-caution {
  background: var(--tool-amber-soft);
  color: #92400e;
}

.tier-3 {
  background: var(--tool-blue-soft);
  color: #1d4ed8;
}

.tier-4,
.tier-safe {
  background: var(--tool-green-soft);
  color: #166534;
}

.tier-danger {
  background: var(--tool-red-soft);
  color: #991b1b;
}

.tool-copy {
  border-top: 1px solid var(--tool-border);
  padding-top: 18px;
}

.tool-copy h2,
.tool-hub h2 {
  color: var(--tool-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.tool-copy p {
  color: var(--tool-body);
  line-height: 1.7;
  margin: 10px 0 0;
}

.tool-copy a {
  color: var(--tool-teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tool-copy a:hover {
  color: var(--tool-ink);
}

.tool-table-wrap {
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  margin-top: 14px;
  max-width: 100%;
  overflow-x: auto;
}

.tool-info-table {
  background: #ffffff;
  border-collapse: collapse;
  color: var(--tool-body);
  min-width: 640px;
  width: 100%;
}

.tool-info-table th,
.tool-info-table td {
  border-bottom: 1px solid var(--tool-border);
  line-height: 1.55;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.tool-info-table th {
  background: var(--tool-soft);
  color: var(--tool-ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.tool-info-table tr:last-child td {
  border-bottom: 0;
}

.tool-steps {
  color: var(--tool-body);
  display: grid;
  gap: 10px;
  line-height: 1.7;
  margin: 12px 0 0;
  padding-left: 22px;
}

.tool-hub {
  background: var(--tool-soft);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 16px;
}

.tool-hub__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.tool-hub__grid a {
  background: #ffffff;
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  display: block;
  padding: 12px;
  text-decoration: none;
}

.tool-hub__grid a:hover {
  border-color: #9ccfca;
}

.tool-hub__grid span {
  color: var(--tool-ink);
  display: block;
  font-weight: 850;
}

.tool-hub__grid small {
  color: var(--tool-muted);
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.tool-grid {
  display: grid;
  gap: 14px;
}

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

.tool-kpis,
.wc-stats,
.cc-results {
  display: grid;
  gap: 12px;
}

.tool-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.tool-kpis div,
.wc-tile,
.cc-results div {
  background: #ffffff;
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.tool-kpis span,
.cc-results__label,
.wc-tile__label,
.db-unit,
.meter-label {
  color: var(--tool-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
}

.tool-kpis strong,
.cc-results strong {
  color: var(--tool-ink);
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
  margin-top: 5px;
}

.tool-steps {
  color: var(--tool-body);
  line-height: 1.65;
  margin: 15px 0 0;
  padding-left: 1.25rem;
}

.tool-steps li {
  margin-top: 8px;
  padding-left: 3px;
}

[hidden] {
  display: none !important;
}

/* Counters, meters, and calculators. */
.wc-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
}

.wc-tile {
  text-align: center;
}

.wc-tile__num {
  color: var(--tool-ink);
  display: block;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.1;
}

.meter {
  background: #e5e7eb;
  border-radius: 999px;
  height: 20px;
  overflow: hidden;
  width: 100%;
}

.meter__bar {
  background: var(--tool-green);
  height: 100%;
  transition: width 75ms linear;
  width: 0;
}

.meter__bar.is-mid {
  background: var(--tool-amber);
}

.meter__bar.is-hot {
  background: var(--tool-red);
}

.wave {
  background: #0f172a;
  border-radius: 8px;
  display: block;
  height: 112px;
  margin-top: 2px;
  width: 100%;
}

.verdict {
  color: var(--tool-body);
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.verdict.is-ok {
  color: var(--tool-green);
}

.verdict.is-wait {
  color: var(--tool-muted);
}

.db-readout {
  background: var(--tool-soft);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  margin-top: 2px;
  padding: 22px;
  text-align: center;
}

.db-now {
  color: var(--tool-ink);
  font-size: clamp(3rem, 10vw, 4.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
}

.db-zone {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 850;
  margin-top: 9px;
  padding: 5px 11px;
}

.db-zone.is-quiet {
  background: var(--tool-green-soft);
  color: #166534;
}

.db-zone.is-mod {
  background: var(--tool-amber-soft);
  color: #92400e;
}

.db-zone.is-loud {
  background: var(--tool-red-soft);
  color: #991b1b;
}

.db-stats {
  color: var(--tool-body);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 18px;
  justify-content: center;
  margin-top: 16px;
}

.db-stats b {
  color: var(--tool-ink);
}

.db-scale {
  margin-top: 18px;
}

.db-scale__ticks {
  color: var(--tool-dim);
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  margin-top: 5px;
}

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

.cc-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.grocery-card {
  display: grid;
  gap: 16px;
}

.grocery-group {
  border-top: 1px solid var(--tool-border);
  padding-top: 12px;
}

.grocery-group h3 {
  color: var(--tool-ink);
  font-size: 1rem;
  font-weight: 850;
  margin: 0 0 8px;
}

.grocery-group ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.grocery-group label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.grocery-group input:checked + span {
  color: var(--tool-muted);
  text-decoration: line-through;
}

.allergen-fieldset {
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  color: var(--tool-body);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 14px;
}

.allergen-fieldset legend {
  color: var(--tool-ink);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 6px;
}

.allergen-fieldset label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.bt-status {
  background: var(--tool-soft);
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  color: var(--tool-body);
  line-height: 1.6;
  padding: 14px 16px;
}

.bt-status--ok {
  background: var(--tool-green-soft);
  border-color: #bbf7d0;
  color: #166534;
}

.bt-status--warn {
  background: var(--tool-amber-soft);
  border-color: #fde68a;
  color: #92400e;
}

.bt-checklist {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bt-checklist label {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

/* Writing tools. */
.grammar-preview {
  background: #ffffff;
  border: 1px solid var(--tool-border);
  border-radius: 8px;
  color: var(--tool-body);
  line-height: 1.75;
  padding: 16px;
  white-space: pre-wrap;
}

.grammar-preview__label {
  color: var(--tool-muted);
  font-size: 0.72rem;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.grammar-mark {
  border-radius: 5px;
  padding: 1px 3px;
}

.grammar-mark--spell {
  background: var(--tool-red-soft);
  color: #991b1b;
}

.grammar-mark--grammar {
  background: var(--tool-amber-soft);
  color: #92400e;
}

.grammar-mark--style {
  background: var(--tool-blue-soft);
  color: #1d4ed8;
}

.grammar-issues {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.grammar-issue {
  display: grid;
  gap: 12px;
}

.grammar-issue__body p {
  margin: 0;
}

.grammar-context {
  color: var(--tool-muted);
  font-size: 0.88rem;
  margin-top: 8px !important;
}

.grammar-context span {
  color: var(--tool-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.grammar-issue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grammar-suggestion,
.correction-chip {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--tool-blue);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 7px 10px;
}

.grammar-suggestion {
  cursor: pointer;
}

.grammar-suggestion:hover {
  background: var(--tool-blue-soft);
}

.grammar-empty {
  color: var(--tool-muted);
  font-size: 0.88rem;
}

.correction-output {
  background: var(--tool-green-soft);
  border-color: #bbf7d0;
}

.correction-output h2 {
  color: #166534;
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.correction-output p {
  color: var(--tool-ink);
  line-height: 1.7;
  margin: 0;
}

.rewrite-results {
  display: grid;
  gap: 12px;
}

.rewrite-card h3 {
  color: var(--tool-ink);
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.rewrite-card p {
  color: var(--tool-body);
  line-height: 1.65;
  margin: 10px 0 0;
}

@media (max-width: 980px) {
  .tools-hero__inner,
  .tool-detail-hero__grid,
  .tool-workspace__grid,
  .tools-section-head {
    grid-template-columns: 1fr;
  }

  .tools-hero__inner,
  .tool-detail-hero__grid {
    gap: 28px;
  }

  .tool-side {
    display: none;
  }
}

@media (max-width: 720px) {
  .tool-wrap {
    width: min(calc(100vw - 24px), 680px);
  }

  .tools-hero__inner {
    padding: 34px 0 44px;
  }

  .tool-detail-hero__inner {
    padding: 24px 0 42px;
  }

  .tool-breadcrumb {
    font-size: 0.84rem;
    margin-bottom: 24px;
  }

  .tools-hero h1,
  .tool-detail-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
    line-height: 1;
  }

  .tools-hero__summary,
  .tool-detail-hero__summary {
    font-size: 1rem;
  }

  .tools-hero__panel,
  .tool-app-card,
  .tool-panel,
  .tool-related,
  .tool-faq {
    padding: 18px;
  }

  .tools-directory,
  .tool-workspace {
    padding: 26px 0 58px;
  }

  .tools-grid,
  .tool-related__grid,
  .tool-hub__grid,
  .tool-grid--2,
  .tool-kpis,
  .wc-stats,
  .cc-grid,
  .cc-results,
  .allergen-fieldset {
    grid-template-columns: 1fr;
  }

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

  .tool-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-row > label,
  .tool-row .tool-btn,
  .tool-row .tool-select,
  .tool-row .tool-textlink {
    width: 100%;
  }

  .tool-input--serial,
  .star-prefix {
    width: 100%;
  }

  .tool-app-card__actions,
  .tool-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-app-card__actions .tool-btn,
  .tool-cta__actions .tool-btn {
    width: 100%;
  }

  .sn-list li {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .tool-wrap {
    width: min(calc(100vw - 20px), 400px);
  }

  .tool-chips span {
    font-size: 0.75rem;
  }

  .tool-app-card__top,
  .tool-cta__top,
  .tool-card__top {
    align-items: flex-start;
  }

  .tool-app-card__icon,
  .tool-cta__icon {
    height: 56px;
    width: 56px;
  }
}

/* Voice changer cluster */
.vc-shell {
  color: var(--tool-ink);
  display: grid;
  gap: 22px;
}

.vc-shell button,
.vc-shell input,
.vc-shell audio {
  font: inherit;
}

.vc-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.vc-privacy {
  align-items: flex-start;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.vc-privacy > span {
  font-size: 1.15rem;
  line-height: 1.4;
}

.vc-privacy strong {
  color: #065f46;
  display: block;
  font-size: 0.94rem;
}

.vc-privacy p {
  color: #166534;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 2px 0 0;
}

.vc-step {
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 18px;
}

.vc-step__heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.vc-step__number {
  align-items: center;
  background: #ede9fe;
  border-radius: 999px;
  color: #6d28d9;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 0.84rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
}

.vc-step__number--done {
  background: #d1fae5;
  color: #047857;
}

.vc-step__heading h3 {
  color: var(--tool-ink);
  font-size: 1.05rem;
  font-weight: 900;
  margin: 1px 0 0;
}

.vc-step__heading p {
  color: var(--tool-body);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 3px 0 0;
}

.vc-input-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vc-input-card {
  align-items: flex-start;
  appearance: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--tool-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 126px;
  padding: 15px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vc-input-card:hover,
.vc-input-card:focus-visible {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.vc-input-card.is-recording {
  background: #fff1f2;
  border-color: #fb7185;
}

.vc-input-card__icon {
  align-items: center;
  background: #ede9fe;
  border-radius: 9px;
  color: #6d28d9;
  display: inline-flex;
  font-size: 0.9rem;
  height: 30px;
  justify-content: center;
  margin-bottom: 12px;
  width: 30px;
}

.vc-input-card.is-recording .vc-input-card__icon {
  animation: vc-pulse 1.1s infinite;
  background: #ffe4e6;
  color: #be123c;
}

@keyframes vc-pulse {
  50% { opacity: 0.45; transform: scale(0.9); }
}

.vc-input-card strong {
  font-size: 0.92rem;
  font-weight: 850;
}

.vc-input-card small {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 4px;
}

.vc-status {
  background: #f1f5f9;
  border-radius: 10px;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.vc-status.is-ok {
  background: #ecfdf5;
  color: #166534;
}

.vc-status.is-bad {
  background: #fff1f2;
  color: #9f1239;
}

.vc-status.is-working {
  background: #eff6ff;
  color: #1d4ed8;
}

.vc-status.is-recording {
  background: #fff1f2;
  color: #be123c;
}

.vc-source {
  background: #f8fafc;
  border-radius: 14px;
  margin-top: 14px;
  padding: 14px;
}

.vc-source__head {
  align-items: flex-end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vc-label {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc-source__head strong {
  display: block;
  font-size: 0.9rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.vc-duration {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.vc-waveform {
  border-radius: 10px;
  display: block;
  height: 96px;
  margin-bottom: 10px;
  max-width: 100%;
  width: 100%;
}

.vc-shell audio {
  display: block;
  height: 42px;
  max-width: 100%;
  width: 100%;
}

.vc-effects {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vc-effect {
  appearance: none;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  color: var(--tool-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 105px;
  padding: 12px;
  text-align: left;
}

.vc-effect:hover,
.vc-effect:focus-visible {
  border-color: #a78bfa;
  outline: none;
}

.vc-effect.is-selected {
  background: #f5f3ff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.11);
}

.vc-effect > span {
  font-size: 1.1rem;
  margin-bottom: 7px;
}

.vc-effect strong {
  font-size: 0.82rem;
  font-weight: 850;
}

.vc-effect small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
  margin-top: 3px;
}

.vc-controls {
  background: #f8fafc;
  border-radius: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  padding: 14px;
}

.vc-control > span {
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vc-control output {
  color: #6d28d9;
  font-weight: 850;
}

.vc-control input[type="range"] {
  accent-color: #7c3aed;
  cursor: pointer;
  width: 100%;
}

.vc-actions,
.vc-download-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.vc-result {
  background: linear-gradient(145deg, #f0fdf4, #f8fafc);
  border-color: #86efac;
}

.vc-download-row > span {
  color: #64748b;
  font-size: 0.78rem;
}

.tool-rich {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 20px;
  color: var(--tool-body);
  margin-top: 22px;
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
}

.tool-rich h2 {
  color: var(--tool-ink);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
  margin: 34px 0 12px;
}

.tool-rich .tool-section-eyebrow + h2 {
  margin-top: 6px;
}

.tool-rich p,
.tool-rich li {
  font-size: 0.97rem;
  line-height: 1.78;
}

.tool-rich p {
  margin: 0 0 15px;
}

.tool-rich ul,
.tool-rich ol {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.tool-rich a {
  color: #6d28d9;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-table-wrap {
  margin: 16px 0 22px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.seo-table {
  border-collapse: collapse;
  color: var(--tool-body);
  font-size: 0.86rem;
  min-width: 620px;
  width: 100%;
}

.seo-table th,
.seo-table td {
  border-bottom: 1px solid #dbe3ee;
  line-height: 1.55;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  background: #f1f5f9;
  color: var(--tool-ink);
  font-weight: 850;
}

@media (max-width: 720px) {
  .vc-input-grid,
  .vc-controls {
    grid-template-columns: 1fr;
  }

  .vc-input-card {
    min-height: 112px;
  }

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

  .vc-actions .tool-btn,
  .vc-download-row .tool-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-input-card,
  .vc-input-card.is-recording .vc-input-card__icon {
    animation: none;
    scroll-behavior: auto;
    transition: none;
  }
}
