:root {
  --font-sans: Inter, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, Monaco, "Courier New", monospace;
  font-family: var(--font-sans);
  color: #18221f;
  background: #f4f7f3;
  --bg: #f4f7f3;
  --paper: #ffffff;
  --paper-soft: #f8faf7;
  --paper-strong: #eef4ef;
  --ink: #18221f;
  --ink-2: #2d3834;
  --muted: #65716c;
  --muted-2: #7b8782;
  --line: #d9e2dc;
  --line-strong: #bdcbc3;
  --primary: #12775a;
  --primary-strong: #0b5f47;
  --accent: #e35f45;
  --accent-soft: #fff0eb;
  --gold: #b88728;
  --gold-soft: #fff7e6;
  --sky: #2d7f9f;
  --sky-soft: #eaf6f8;
  --danger: #b42318;
  --focus: rgba(18, 119, 90, 0.2);
  --radius: 8px;
  --shadow-xs: 0 1px 2px rgba(24, 34, 31, 0.06);
  --shadow-sm: 0 8px 20px rgba(24, 34, 31, 0.07);
  --shadow-md: 0 18px 42px rgba(24, 34, 31, 0.1);
}

/* Live toolbada.com design parity pass */
:root {
  --live-cream: #f8f1ed;
  --live-accent: #c9a48e;
  --live-accent-strong: #8a6040;
  --live-accent-hover: #a8795e;
  --live-ink: #111827;
  --live-muted: #6b7280;
  --live-border: #efe6df;
  --live-soft-line: #f1e7df;
  --live-shadow: 0 24px 70px rgba(138, 96, 64, 0.14);
}

body {
  color: var(--live-ink);
  background: #ffffff;
}

.page:not(.static-page) {
  max-width: none;
  padding: 0 0 56px;
  background: #ffffff;
}

.page:not(.static-page) > .quick-tools,
.page:not(.static-page) > .tool-directory,
.page:not(.static-page) > .layout,
.page:not(.static-page) > .ad-slot {
  width: min(calc(100% - 48px), 1180px);
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  min-height: 75px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1180px);
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--live-ink);
  text-decoration: none;
}

.site-logo-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--live-cream);
  color: var(--live-accent-strong);
}

.site-logo-icon svg {
  width: 21px;
  height: 21px;
}

.site-logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-width: 0;
}

.site-nav a {
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--live-accent-strong);
}

.site-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
  cursor: pointer;
}

.site-search-button svg {
  width: 18px;
  height: 18px;
}

.site-search-button kbd {
  min-width: 34px;
  padding: 3px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.site-search-button:hover,
.site-search-button:focus-visible {
  border-color: var(--live-accent);
  color: var(--live-accent-strong);
  outline: none;
}

.grid-dots {
  background-image: radial-gradient(rgba(201, 164, 142, 0.32) 1px, transparent 0);
  background-size: 18px 18px;
}

.page:not(.static-page) .live-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
  min-height: min(650px, calc(100vh - 75px));
  margin: 0 0 0;
  padding: clamp(70px, 10vh, 112px) max(24px, calc((100vw - 1180px) / 2)) clamp(70px, 9vh, 104px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--live-cream);
  box-shadow: none;
}

.page:not(.static-page) .live-hero::before,
.page:not(.static-page) .live-hero::after,
.page:not(.static-page) .tool-search::after,
.page:not(.static-page) .brand-mark::after {
  content: none;
  display: none;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.95;
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(90deg, rgba(248, 241, 237, 0.42), rgba(248, 241, 237, 0.92) 46%, rgba(248, 241, 237, 0.35));
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.page:not(.static-page) .hero .eyebrow {
  margin: 0 0 20px;
  color: var(--live-accent-strong);
  font-size: 15px;
  font-weight: 900;
}

.page:not(.static-page) .hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--live-ink);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.underline-swoosh {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.underline-swoosh svg {
  position: absolute;
  right: -10px;
  bottom: -9px;
  left: -7px;
  z-index: -1;
  width: calc(100% + 22px);
  height: 19px;
  color: var(--live-accent);
  opacity: 0.86;
}

.hero-lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: #374151;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-desc {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--live-muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-desc strong {
  color: var(--live-accent-strong);
  font-weight: 900;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-hero-cta-primary,
.home-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.home-hero-cta-primary {
  border: 1px solid var(--live-accent);
  background: var(--live-accent);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(138, 96, 64, 0.18);
}

.home-hero-cta-primary:hover,
.home-hero-cta-primary:focus-visible {
  border-color: var(--live-accent-hover);
  background: var(--live-accent-hover);
  color: #ffffff;
}

.home-hero-cta-secondary {
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.74);
  color: #374151;
}

.home-hero-cta-secondary:hover,
.home-hero-cta-secondary:focus-visible {
  border-color: var(--live-accent);
  color: var(--live-accent-strong);
}

.home-hero-cta-primary:hover,
.home-hero-cta-secondary:hover {
  transform: translateY(-2px);
}

.hero-tool-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 550px);
  min-height: 58px;
  margin: 24px 0 0;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(201, 164, 142, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(138, 96, 64, 0.1);
  backdrop-filter: blur(14px);
}

.hero-tool-search span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--live-accent-strong);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-tool-search span::before {
  display: none;
}

.hero-tool-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--live-ink);
  font-weight: 700;
  box-shadow: none;
}

.hero-tool-search input:focus {
  outline: none;
  box-shadow: none;
}

.hero-tool-search small {
  color: var(--live-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-hero-illustration {
  position: relative;
  min-height: 460px;
}

.pdf-mini-card,
.home-hero-pdf-merged-card,
.home-hero-status {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--live-shadow);
  backdrop-filter: blur(18px);
}

.pdf-mini-card {
  display: grid;
  gap: 8px;
  width: 176px;
  padding: 18px;
  animation: liveFloat 4.8s ease-in-out infinite;
}

.pdf-mini-card span,
.pdf-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 900;
}

.pdf-mini-card strong {
  color: var(--live-ink);
  font-size: 14px;
  font-weight: 900;
}

.pdf-mini-card i {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5e7eb 65%, transparent 0);
}

.pdf-mini-a {
  top: 24px;
  left: 8px;
}

.pdf-mini-b {
  top: 150px;
  right: 34px;
  animation-delay: -1.4s;
}

.pdf-mini-c {
  bottom: 44px;
  left: 64px;
  animation-delay: -2.8s;
}

.home-hero-status {
  top: 46px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 900;
}

.home-hero-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.home-hero-pdf-merged-card {
  right: 72px;
  bottom: 88px;
  z-index: 3;
  width: min(78%, 310px);
  padding: 24px;
}

.home-hero-pdf-merged-card strong {
  display: block;
  margin-top: 16px;
  color: var(--live-ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

.home-hero-pdf-merged-card p {
  margin: 9px 0 18px;
  color: var(--live-muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-hero-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.home-hero-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--live-accent);
}

.home-hero-pdf-merged-card small {
  display: block;
  margin-top: 8px;
  color: var(--live-accent-strong);
  font-weight: 900;
  text-align: right;
}

@keyframes liveFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.extension-tool-nav-item {
  font-size: 0.86rem;
}

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

.extension-kind-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(20, 83, 45, 0.16);
  border-left: 4px solid #1f7a6d;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.84), rgba(255, 255, 255, 0.92));
}

.extension-kind-strip span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 122, 109, 0.12);
  color: #14534a;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.extension-kind-strip strong {
  min-width: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.extension-kind-strip small {
  grid-column: 1 / -1;
  color: #60706a;
  font-size: 12px;
  line-height: 1.45;
}

.extension-control-row input,
.extension-control-row select {
  width: 100%;
}

.extension-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
  color: #172033;
  overflow: auto;
}

.extension-preview pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 760px) {
  .extension-tool-grid {
    grid-template-columns: 1fr;
  }

  .extension-kind-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page:not(.static-page) .quick-tools {
  margin-top: 0;
  padding: 72px 0 42px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.page:not(.static-page) .quick-tools-head {
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.page:not(.static-page) .quick-tools-head p,
.page:not(.static-page) .section-head p,
.page:not(.static-page) .quick-list-title {
  color: var(--live-accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.page:not(.static-page) .quick-tools-head h2,
.page:not(.static-page) .section-head h2 {
  color: var(--live-ink);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

.page:not(.static-page) .category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--live-border);
  border-radius: 16px;
  background: var(--live-cream);
}

.page:not(.static-page) .category-filter button {
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #6b7280;
  font-weight: 900;
}

.page:not(.static-page) .category-filter button.active,
.page:not(.static-page) .category-filter button:hover,
.page:not(.static-page) .category-filter button:focus-visible {
  border-color: rgba(201, 164, 142, 0.42);
  background: #ffffff;
  color: var(--live-accent-strong);
  outline: none;
  box-shadow: 0 8px 18px rgba(138, 96, 64, 0.08);
}

.page:not(.static-page) .quick-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.page:not(.static-page) .quick-lists > div,
.page:not(.static-page) .matched-tools-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--live-border);
  border-radius: 18px;
  background: #fffaf7;
}

.page:not(.static-page) .tool-chip,
.page:not(.static-page) .empty-chip,
.page:not(.static-page) .tool-chip-remove {
  border-color: rgba(201, 164, 142, 0.42);
  border-radius: 999px;
  background: #ffffff;
  color: var(--live-accent-strong);
  font-weight: 900;
}

.page:not(.static-page) .tool-chip:hover,
.page:not(.static-page) .tool-chip:focus-visible {
  border-color: var(--live-accent);
  background: var(--live-cream);
  color: var(--live-accent-strong);
  outline: none;
}

.page:not(.static-page) .tool-directory {
  margin-top: 32px;
  padding: 66px 0 18px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.page:not(.static-page) .section-head {
  gap: 18px;
  margin-bottom: 24px;
}

.page:not(.static-page) .section-link,
.page:not(.static-page) .text-button,
.page:not(.static-page) .secondary,
.page:not(.static-page) .button-link.secondary {
  border: 1px solid var(--live-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--live-accent-strong);
  font-weight: 900;
}

.page:not(.static-page) .section-link:hover,
.page:not(.static-page) .text-button:hover,
.page:not(.static-page) .secondary:hover,
.page:not(.static-page) .button-link.secondary:hover {
  border-color: var(--live-accent);
  background: var(--live-cream);
}

.page:not(.static-page) .tool-card-grid {
  gap: 18px;
}

.page:not(.static-page) .tool-card-link,
.page:not(.static-page) .related-tool-link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 15px;
  row-gap: 6px;
  min-height: 142px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 18px;
  background: #ffffff;
  color: var(--live-ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.045);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.page:not(.static-page) .tool-card-link::before,
.page:not(.static-page) .related-tool-link::before {
  content: "";
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(201, 164, 142, 0.9), rgba(248, 241, 237, 0.98)),
    var(--live-cream);
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.36);
}

.page:not(.static-page) .tool-card-link::after,
.page:not(.static-page) .related-tool-link::after {
  content: "";
  position: absolute;
  top: 39px;
  left: 40px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    16px -16px 0 -3px rgba(138, 96, 64, 0.5),
    18px 12px 0 -4px rgba(255, 255, 255, 0.95);
}

.page:not(.static-page) .tool-card-link strong,
.page:not(.static-page) .related-tool-link strong {
  grid-column: 2;
  color: var(--live-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.page:not(.static-page) .tool-card-link span,
.page:not(.static-page) .related-tool-link span {
  grid-column: 2;
  color: var(--live-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page:not(.static-page) .tool-card-link:hover,
.page:not(.static-page) .related-tool-link:hover,
.page:not(.static-page) .tool-card-link:focus-visible,
.page:not(.static-page) .related-tool-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 142, 0.68);
  outline: none;
  box-shadow: 0 22px 52px rgba(138, 96, 64, 0.12);
}

.page:not(.static-page) .ad-slot {
  margin-top: 34px;
  border: 1px dashed rgba(201, 164, 142, 0.58);
  border-radius: 18px;
  background: #fffaf7;
  color: #9a7a65;
}

.page:not(.static-page) .layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.page:not(.static-page) .sidebar .card {
  border: 1px solid var(--live-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
}

.page:not(.static-page) .sidebar .tool-intro {
  color: var(--live-ink);
}

.page:not(.static-page) .sidebar .tool-intro p {
  color: var(--live-accent-strong);
}

.page:not(.static-page) .tool-nav-item {
  min-height: 40px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 850;
}

.page:not(.static-page) .tool-nav-item.active,
.page:not(.static-page) .tool-nav-item:hover,
.page:not(.static-page) .tool-nav-item:focus-visible {
  background: var(--live-cream);
  color: var(--live-accent-strong);
  outline: none;
}

.page:not(.static-page) .content > .card,
.page:not(.static-page) .tool-panel,
.page:not(.static-page) .content > .related-tools {
  border: 1px solid var(--live-border);
  border-radius: 20px;
  background: #ffffff;
  color: var(--live-ink);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
}

.page:not(.static-page) .tool-panel {
  --tool-panel-pad: 24px;
}

.page:not(.static-page) .tool-panel.active::after {
  content: none;
  display: none;
}

.page:not(.static-page) .tool-panel > h2 {
  min-height: 74px;
  margin: calc(-1 * var(--tool-panel-pad)) calc(-1 * var(--tool-panel-pad)) 20px;
  padding: 20px var(--tool-panel-pad);
  border-bottom: 1px solid var(--live-border);
  border-radius: 20px 20px 0 0;
  background: #fffaf7;
  color: var(--live-ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.page:not(.static-page) .tool-panel > h2::before {
  width: 8px;
  height: 34px;
  border-radius: 999px;
  background: var(--live-accent);
}

.page:not(.static-page) .tool-panel-copy {
  border: 1px solid rgba(201, 164, 142, 0.45);
  border-radius: 12px;
  background: #ffffff;
  color: var(--live-accent-strong);
  font-weight: 900;
}

.page:not(.static-page) .tool-panel-copy:hover {
  border-color: var(--live-accent);
  background: var(--live-cream);
}

.page:not(.static-page) .description {
  border: 1px solid var(--live-border);
  border-left: 5px solid var(--live-accent);
  border-radius: 16px;
  background: #fffaf7;
  color: #4b5563;
}

.page:not(.static-page) .tool-process-note {
  border: 1px solid var(--live-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf7, #ffffff);
}

.page:not(.static-page) .control-row,
.page:not(.static-page) .mode-selector,
.page:not(.static-page) .color-row,
.page:not(.static-page) .file-drop {
  border-color: var(--live-border);
  border-radius: 16px;
  background: #fffaf7;
}

.page:not(.static-page) input,
.page:not(.static-page) textarea,
.page:not(.static-page) select {
  border-color: #e5ded9;
  border-radius: 12px;
}

.page:not(.static-page) input:focus,
.page:not(.static-page) textarea:focus,
.page:not(.static-page) select:focus {
  border-color: var(--live-accent);
  box-shadow: 0 0 0 4px rgba(201, 164, 142, 0.18);
}

.page:not(.static-page) .primary {
  border-color: var(--live-accent);
  border-radius: 12px;
  background: var(--live-accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(138, 96, 64, 0.18);
}

.page:not(.static-page) .primary:hover,
.page:not(.static-page) .primary:focus-visible {
  border-color: var(--live-accent-hover);
  background: var(--live-accent-hover);
}

.page:not(.static-page) .related-tool-link {
  min-height: 124px;
}

.embed-mode .site-header {
  display: none;
}

.embed-mode .page:not(.static-page) {
  padding: 0;
}

.embed-mode .page:not(.static-page) > .layout {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 1080px) {
  .page:not(.static-page) .live-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 74px;
    padding-bottom: 78px;
  }

  .home-hero-copy {
    max-width: 740px;
  }

  .home-hero-illustration {
    display: none;
  }

  .page:not(.static-page) .quick-lists {
    grid-template-columns: minmax(0, 1fr);
  }

  .page:not(.static-page) .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page:not(.static-page) .sidebar .card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .site-header-inner {
    width: min(calc(100% - 28px), 1180px);
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .site-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .site-logo-text {
    font-size: 19px;
  }

  .site-search-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .site-search-button kbd {
    display: none;
  }

  .page:not(.static-page) > .quick-tools,
  .page:not(.static-page) > .tool-directory,
  .page:not(.static-page) > .layout,
  .page:not(.static-page) > .ad-slot {
    width: min(calc(100% - 28px), 1180px);
  }

  .page:not(.static-page) .live-hero {
    padding: 54px 18px 62px;
    text-align: left;
  }

  .page:not(.static-page) .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 19px;
  }

  .hero-desc {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .home-hero-actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .home-hero-cta-primary,
  .home-hero-cta-secondary {
    flex: 1 1 160px;
    min-height: 50px;
    padding: 0 16px;
  }

  .hero-tool-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 14px;
  }

  .hero-tool-search input {
    padding: 8px 0;
  }

  .hero-tool-search small {
    min-height: 18px;
  }

  .page:not(.static-page) .quick-tools {
    padding-top: 50px;
  }

  .page:not(.static-page) .quick-tools-head,
  .page:not(.static-page) .section-head {
    align-items: stretch;
  }

  .page:not(.static-page) .category-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page:not(.static-page) .tool-card-link,
  .page:not(.static-page) .related-tool-link {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 18px;
  }

  .page:not(.static-page) .tool-card-link::before,
  .page:not(.static-page) .related-tool-link::before {
    grid-row: auto;
  }

  .page:not(.static-page) .tool-card-link::after,
  .page:not(.static-page) .related-tool-link::after {
    top: 35px;
    left: 36px;
  }

  .page:not(.static-page) .tool-card-link strong,
  .page:not(.static-page) .tool-card-link span,
  .page:not(.static-page) .related-tool-link strong,
  .page:not(.static-page) .related-tool-link span {
    grid-column: 1;
  }

  .page:not(.static-page) .tool-panel {
    --tool-panel-pad: 16px;
  }

  .page:not(.static-page) .tool-panel > h2 {
    min-height: 68px;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 520px) {
  .page:not(.static-page) {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .page:not(.static-page) .live-hero,
  .page:not(.static-page) .quick-tools,
  .page:not(.static-page) .tool-directory,
  .page:not(.static-page) .layout,
  .page:not(.static-page) .tool-panel,
  .page:not(.static-page) .content > .related-tools {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .page:not(.static-page) .quick-tools,
  .page:not(.static-page) .tool-directory,
  .page:not(.static-page) .layout,
  .page:not(.static-page) .content,
  .page:not(.static-page) .sidebar,
  .page:not(.static-page) .sidebar .card {
    width: min(calc(100vw - 28px), 100%);
  }

  .page:not(.static-page) .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .page:not(.static-page) .quick-lists > div,
  .page:not(.static-page) .matched-tools-block,
  .page:not(.static-page) .tool-panel,
  .page:not(.static-page) .content > .related-tools {
    border-radius: 16px;
  }

  .page:not(.static-page) .tool-panel-title {
    min-width: 0;
  }

  .page:not(.static-page) .tool-panel-copy {
    width: 100%;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 34, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 34, 31, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbf7 0, #eef5ef 420px, var(--bg) 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  letter-spacing: 0;
}

.page {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 24px 22px 42px;
  overflow-x: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: center;
  margin: 0 0 22px;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-lockup > div {
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: #16231f;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.hero-pills span:nth-child(2) {
  border-color: #b7d8ce;
  background: #eef8f5;
  color: var(--primary-strong);
}

.hero-pills span:nth-child(3) {
  border-color: #efcfb8;
  background: var(--accent-soft);
  color: #8d3324;
}

.tool-search {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 156px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.tool-search span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}

.tool-search span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.tool-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(24, 34, 31, 0.04);
}

.tool-search input::placeholder {
  color: var(--muted-2);
  font-weight: 650;
}

.tool-search small {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
}

.quick-tools,
.tool-directory {
  margin: 0 0 22px;
}

.quick-tools {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.quick-tools-head,
.tool-intro-row,
.section-head,
.quick-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quick-tools-head p,
.section-head p,
.tool-intro p,
.quick-list-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.quick-tools-head h2,
.section-head h2,
.tool-intro h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head > span,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #bddbd3;
  border-radius: var(--radius);
  padding: 6px 10px;
  background: #f1faf7;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  border-color: #97c9ba;
  background: #e5f5ef;
}

.category-filter {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.category-filter button,
.tool-chip,
.empty-chip {
  min-height: 36px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 8px 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.2;
}

.category-filter button {
  min-width: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
}

.category-filter button:hover {
  background: #ffffff;
  border-color: var(--line);
}

.category-filter button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 119, 90, 0.22);
}

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

.quick-lists > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.matched-tools-block {
  grid-column: 1 / -1;
  background: var(--sky-soft);
  border-color: #c4dde4;
}

.tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  min-width: 0;
}

.tool-chip {
  max-width: 100%;
  border-color: var(--line);
  background: #ffffff;
  cursor: pointer;
  overflow-wrap: anywhere;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.tool-chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

.tool-chip-group {
  display: inline-flex;
  max-width: 100%;
}

.tool-chip-group .tool-chip {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tool-chip-remove {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.tool-chip-remove:hover {
  background: #fff0eb;
  color: var(--danger);
}

.empty-chip {
  display: inline-flex;
  align-items: center;
  border-color: var(--line);
  background: var(--paper-soft);
  color: var(--muted);
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.tool-card-link,
.related-tool-link {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 15px 15px 54px;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.tool-card-link::before,
.related-tool-link::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 28px;
  height: 28px;
  border: 1px solid #c6d6ce;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 119, 90, 0.14) 0 48%, transparent 49%),
    linear-gradient(315deg, rgba(227, 95, 69, 0.14) 0 45%, transparent 46%),
    #f8fbf8;
}

.tool-card-link::after,
.related-tool-link::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--primary-strong);
  border-right: 2px solid var(--primary-strong);
  transform: rotate(45deg);
}

.tool-card-link:hover,
.related-tool-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fbfdfb;
  box-shadow: var(--shadow-sm);
}

.tool-card-link strong,
.related-tool-link strong {
  display: block;
  margin-bottom: 7px;
  color: #111a17;
  font-size: 15px;
  line-height: 1.28;
}

.tool-card-link span,
.related-tool-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ad-slot {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 92px;
  margin: 20px 0;
  border: 1px dashed #c2cec7;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(24, 34, 31, 0.035) 0 8px, transparent 8px 16px),
    rgba(255, 255, 255, 0.58);
  color: var(--muted-2);
  text-align: center;
}

.ad-slot span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: minmax(248px, 292px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.sidebar,
.content {
  min-width: 0;
}

.card {
  min-width: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.sidebar .card {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 12px;
  scrollbar-gutter: stable;
}

.tool-intro {
  margin-bottom: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.sidebar .card.is-collapsed .tool-nav-item,
.sidebar .card.is-collapsed .tool-intro:not(.tool-intro-row) {
  display: none;
}

.tool-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.tool-nav-item[hidden] {
  display: none;
}

.tool-nav-item:hover {
  border-color: var(--line);
  background: var(--paper-soft);
}

.tool-nav-item.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 119, 90, 0.22);
}

.tool-nav-item.is-favorite::after {
  content: "*";
  margin-left: auto;
  color: var(--gold);
  font-weight: 900;
}

.tool-nav-item.active.is-favorite::after {
  color: #ffe2a5;
}

.tool-panel {
  display: none;
  padding: 18px;
}

.tool-panel.active {
  display: block;
}

.tool-panel > * + label,
.tool-panel > * + .control-row,
.tool-panel > * + .mode-selector,
.tool-panel > * + .file-drop {
  margin-top: 14px;
}

.tool-panel > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.tool-panel > h2::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.description {
  margin: 0 0 16px;
  padding: 11px 12px;
  border: 1px solid #c8ded7;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: #f2faf7;
  color: var(--ink-2);
  line-height: 1.6;
}

label {
  display: block;
  margin: 10px 0;
  color: var(--ink-2);
  font-weight: 760;
  line-height: 1.4;
}

label small,
.tool-search small {
  font-weight: 500;
}

.mode-selector,
.color-row,
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.control-row,
.mode-selector {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.mode-selector > label,
.color-row > label,
.control-row > label {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}

.wide-input,
select,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="datetime-local"],
input[type="password"],
textarea,
.mono {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.wide-input,
select,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="datetime-local"],
input[type="password"] {
  min-height: 40px;
  margin-top: 6px;
  padding: 9px 10px;
}

textarea,
.mono {
  padding: 10px;
  font-size: 14px;
  line-height: 1.48;
}

textarea {
  resize: vertical;
}

.mono {
  min-height: 110px;
  font-family: var(--font-mono);
  overflow: auto;
  white-space: pre-wrap;
}

.wide-input:focus,
select:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="password"]:focus,
textarea:focus,
.mono:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.radio-pill input,
.checkbox input {
  margin: 0;
}

.radio-pill:has(input:checked) {
  border-color: var(--primary);
  background: #eef8f5;
  box-shadow: inset 0 0 0 1px rgba(18, 119, 90, 0.12);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.file-drop {
  position: relative;
  display: block;
  border: 2px dashed #bacbc3;
  border-radius: var(--radius);
  padding: 22px;
  background: #f7fbf8;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--primary);
  background: #eef8f5;
  box-shadow: 0 0 0 3px var(--focus);
}

.file-drop p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.file-drop span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 119, 90, 0.22);
}

.primary:hover {
  transform: translateY(-1px);
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-2);
}

.secondary:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

.primary:disabled,
.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.primary:focus-visible,
.secondary:focus-visible,
.tool-nav-item:focus-visible,
.category-filter button:focus-visible,
.tool-card-link:focus-visible,
.related-tool-link:focus-visible,
.radio-pill:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.text-button {
  min-height: 30px;
  border: 0;
  border-radius: var(--radius);
  padding: 4px 8px;
  background: transparent;
  color: var(--primary-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.text-button:hover {
  background: #eaf6f1;
}

.button-link {
  text-decoration: none;
}

.status {
  min-height: 22px;
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink-2);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.status:empty {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.results {
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  overflow-wrap: anywhere;
}

.result-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.result-list {
  margin: 0;
  padding-left: 18px;
}

.result-item {
  margin: 6px 0;
  line-height: 1.45;
}

.result-item a {
  color: var(--primary-strong);
  word-break: break-all;
}

.codeblock {
  min-height: 96px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111a17;
  color: #f8fbf8;
  padding: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
}

.codeblock mark {
  border-radius: 4px;
  background: #ffe7a3;
  color: #111a17;
  padding: 0 2px;
}

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

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 10px;
  color: var(--ink-2);
}

.stat strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid #efd48e;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: #7a520d;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.data-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.editor-issue {
  margin-top: 10px;
}

.editor-issue:empty {
  display: none;
}

.editor-issue strong,
.editor-issue code {
  display: block;
  padding: 8px 10px;
  border: 1px solid #f3b8ae;
  background: #fff0eb;
  color: var(--danger);
}

.editor-issue strong {
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.editor-issue code {
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

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

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.palette-swatch {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 8px;
  font-size: 12px;
  overflow: hidden;
  overflow-wrap: anywhere;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.palette-swatch:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.palette-swatch button {
  width: 100%;
  min-width: 0;
}

.palette-swatch a {
  color: var(--primary-strong);
  text-align: center;
  overflow-wrap: anywhere;
}

.symbol-button {
  width: 100%;
  min-width: 0;
  height: 44px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.swatch-preview {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.output-preview {
  min-height: 120px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  overflow: hidden;
}

.results table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.results th,
.results td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.results th {
  background: var(--paper-strong);
  color: var(--ink-2);
  font-weight: 850;
}

.results tr:last-child td {
  border-bottom: 0;
}

.editable-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editable-table {
  min-width: 100%;
}

.editable-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.editable-table td[contenteditable="true"] {
  background: #ffffff;
  cursor: text;
}

.editable-table td[contenteditable="true"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: #eef8f5;
}

.table-sort-button {
  width: 100%;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.color-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

#colorPreviewText {
  font-family: var(--font-mono);
}

#base64imgPreview {
  max-width: min(100%, 320px);
  max-height: 220px;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.diff-added {
  background: #dff6e9;
}

.diff-removed {
  background: #ffe2dc;
}

.diff-same {
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
}

input[type="color"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 4px;
}

input[type="file"]:not(.file-drop input) {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.tree-view {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.tree-view:empty {
  display: none;
}

.tree-node,
.tree-leaf {
  margin: 4px 0 4px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.tree-node summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  padding: 3px 0;
}

.tree-leaf {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.markdown-preview {
  min-height: 260px;
  overflow: auto;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin: 0.2em 0;
}

.markdown-preview p {
  margin: 0.4em 0;
}

.markdown-preview ul {
  margin: 0.4em 0;
  padding-left: 1.1rem;
}

.markdown-preview pre {
  margin: 0.6em 0;
  padding: 10px;
  border-radius: var(--radius);
  background: #111a17;
  color: #f8fbf8;
  overflow: auto;
}

.static-page {
  min-width: 0;
  max-width: 1120px;
}

.static-hero {
  min-width: 0;
  margin: 0 0 22px;
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-home .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 14px;
  box-shadow: none;
}

.static-hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.14;
}

.static-updated {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 14px 0 0;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.static-actions {
  border-top: 0;
  padding-top: 0;
}

.static-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.static-panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 20px;
}

.static-hero *,
.static-panel *,
.tool-panel *,
.tool-card-link *,
.related-tool-link * {
  max-width: 100%;
}

.prose-panel h2 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.prose-panel h2:first-child {
  margin-top: 0;
}

.prose-panel p {
  margin: 0 0 13px;
  color: var(--ink-2);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}

.check-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}

.check-list li + li {
  margin-top: 6px;
}

.danger-text {
  color: var(--danger);
}

.danger-text:hover {
  background: #fff0eb;
}

.related-tools {
  display: block;
}

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

.compact-head {
  margin-bottom: 12px;
}

.tool-live-panel {
  overflow: hidden;
  padding: 16px;
}

.tool-live-frame {
  display: block;
  width: 100%;
  height: min(720px, 78vh);
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.footer {
  margin-top: 24px;
  padding: 18px 0 4px;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.embed-mode body {
  background: #ffffff;
}

.embed-mode .page {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.embed-mode .hero,
.embed-mode .quick-tools,
.embed-mode .tool-directory,
.embed-mode .ad-slot,
.embed-mode .sidebar,
.embed-mode .related-tools,
.embed-mode .footer {
  display: none;
}

.embed-mode .layout {
  display: block;
  margin: 0;
}

.embed-mode .content {
  display: block;
  max-width: none;
}

.embed-mode .tool-panel {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

.embed-mode .tool-panel > h2 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -18px -18px 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .tool-search {
    min-height: auto;
  }

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

  .layout {
    grid-template-columns: 1fr;
  }

  .content {
    order: 1;
  }

  .sidebar {
    order: 2;
  }

  .sidebar .card {
    position: static;
    max-height: none;
  }

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

@media (max-width: 700px) {
  .page {
    max-width: 100%;
    padding: 16px 12px 30px;
  }

  .static-page {
    width: 100%;
    max-width: 100%;
  }

  .hero,
  .static-hero {
    padding: 22px 0 20px;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  h1,
  .static-hero h1 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 15px;
  }

  .mobile-break {
    display: block;
  }

  .quick-tools-head,
  .tool-intro-row,
  .section-head,
  .quick-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-link,
  .section-head > span {
    width: 100%;
  }

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

  .quick-lists,
  .compare-grid,
  .stats-grid,
  .related-tool-list {
    grid-template-columns: 1fr;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-link,
  .related-tool-link {
    min-height: auto;
  }

  .mode-selector,
  .color-row,
  .control-row,
  .actions {
    flex-direction: column;
  }

  .mode-selector > label,
  .control-row > label,
  .color-row > label {
    flex: 0 1 auto;
  }

  .radio-pill {
    min-height: 44px;
  }

  .actions button,
  .actions .button-link,
  .primary,
  .secondary,
  .category-filter button,
  .tool-chip {
    width: 100%;
  }

  .tool-chip-group {
    width: 100%;
  }

  .tool-chip-group .tool-chip {
    flex: 1 1 auto;
    width: auto;
  }

  .content,
  .card,
  .quick-tools,
  .tool-panel,
  .control-row > label,
  .mode-selector > label,
  .color-row > label {
    width: 100%;
    max-width: 100%;
  }

  input,
  textarea,
  select,
  canvas {
    max-width: 100%;
  }

  .palette-grid {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }

  .symbol-button {
    height: 42px;
    font-size: 18px;
  }

  .static-panel,
  .tool-panel {
    padding: 15px;
  }

  .tool-panel > h2 {
    font-size: 20px;
  }

  .file-drop {
    padding: 17px 12px;
  }

  .ad-slot {
    min-height: 84px;
  }

  .tool-live-frame {
    height: 70vh;
    min-height: 520px;
  }

  .embed-mode .tool-panel > h2 {
    margin: -15px -15px 12px;
    padding: 12px 15px;
  }
}

@media (max-width: 430px) {
  .page {
    padding-inline: 10px;
  }

  h1,
  .static-hero h1 {
    font-size: 29px;
  }

  .category-filter {
    grid-template-columns: 1fr;
  }

  .hero-pills,
  .tool-chip-row,
  .actions {
    gap: 6px;
  }

  .tool-live-frame {
    min-height: 500px;
  }
}

/* Senior product visual layer */
:root {
  --canvas: #f2f5ee;
  --canvas-2: #e9f0ea;
  --panel: #ffffff;
  --panel-tint: #f7faf6;
  --charcoal: #101815;
  --charcoal-2: #15231e;
  --charcoal-3: #1e3028;
  --mint: #16a374;
  --mint-strong: #0f7e5b;
  --coral: #f26a4b;
  --amber: #c9912f;
  --teal: #267f8d;
  --line: #d7e1d9;
  --line-strong: #b8c9bf;
  --ink: #111916;
  --ink-2: #2a3732;
  --muted: #69766f;
  --muted-2: #829089;
  --primary: var(--mint);
  --primary-strong: var(--mint-strong);
  --accent: var(--coral);
  --focus: rgba(22, 163, 116, 0.24);
  --shadow-xs: 0 1px 2px rgba(17, 25, 22, 0.06);
  --shadow-sm: 0 10px 26px rgba(17, 25, 22, 0.08);
  --shadow-md: 0 24px 58px rgba(17, 25, 22, 0.13);
}

body {
  background:
    linear-gradient(90deg, rgba(17, 25, 22, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 25, 22, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #f9fbf6 0, var(--canvas) 420px, #edf3ed 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.page {
  max-width: 1480px;
  padding-top: 22px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 470px);
  gap: 28px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 127, 141, 0.28), transparent 42%),
    linear-gradient(90deg, var(--charcoal) 0, var(--charcoal-2) 54%, #203f33 100%);
  box-shadow: var(--shadow-md);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 80%, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 24px;
  z-index: -1;
  width: min(36vw, 420px);
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 16%, transparent 16% 20%, rgba(255, 255, 255, 0.1) 20% 44%, transparent 44% 50%, rgba(242, 106, 75, 0.45) 50% 58%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  opacity: 0.72;
}

.hero .brand-lockup {
  align-items: flex-start;
}

.hero .brand-mark {
  width: 62px;
  height: 62px;
  background: #f7fbf7;
  color: var(--charcoal);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero .brand-mark::after {
  background: var(--coral);
}

.hero .eyebrow {
  color: #77e0bb;
}

.hero h1 {
  color: #ffffff;
  font-size: 50px;
}

.hero .subtitle {
  max-width: 680px;
  color: #d7e6de;
  font-size: 17px;
}

.hero-pills span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #f7fbf7;
  box-shadow: none;
}

.hero-pills span:nth-child(2) {
  border-color: rgba(119, 224, 187, 0.36);
  background: rgba(22, 163, 116, 0.22);
  color: #d8fff1;
}

.hero-pills span:nth-child(3) {
  border-color: rgba(242, 106, 75, 0.42);
  background: rgba(242, 106, 75, 0.18);
  color: #ffe4db;
}

.tool-search {
  position: relative;
  min-height: 178px;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.tool-search::before {
  content: "⌘K";
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-tint);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tool-search span {
  color: var(--charcoal);
}

.tool-search input {
  min-height: 54px;
  border-color: #aebfb5;
  padding: 12px 14px;
  font-size: 16px;
}

.quick-tools {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.quick-tools-head {
  align-items: center;
}

.quick-tools-head h2,
.section-head h2 {
  font-size: 24px;
}

.category-filter {
  padding: 6px;
  border-color: #c9d8cf;
  background: #edf4ef;
}

.category-filter button {
  min-height: 42px;
  color: #33443d;
}

.category-filter button.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 25, 22, 0.2);
}

.quick-lists > div {
  border-color: #d5e1da;
  background: linear-gradient(180deg, #ffffff, #f8fbf7);
}

.matched-tools-block {
  background: linear-gradient(180deg, #f1faf7, #ffffff);
}

.tool-directory {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
}

.tool-directory + .tool-directory {
  margin-top: -4px;
}

.section-head {
  align-items: center;
}

.section-head p,
.quick-tools-head p,
.tool-intro p,
.quick-list-title {
  color: #65756d;
  letter-spacing: 0;
}

.section-link,
.section-head > span {
  min-height: 38px;
  border-color: #add3c5;
  background: #f4fbf8;
}

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

.tool-card-link,
.related-tool-link {
  min-height: 112px;
  padding: 18px;
  border-color: #d7e2dc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 250, 0.96)),
    var(--panel);
}

.tool-card-link::before,
.related-tool-link::before {
  top: 18px;
  right: 18px;
  left: auto;
  width: 34px;
  height: 34px;
  border-color: #bfd3c8;
  background:
    linear-gradient(135deg, rgba(22, 163, 116, 0.22), rgba(38, 127, 141, 0.12)),
    #f6fbf8;
}

.tool-card-link::after,
.related-tool-link::after {
  top: 31px;
  right: 31px;
  left: auto;
  width: 8px;
  height: 8px;
}

.tool-card-link strong,
.related-tool-link strong {
  padding-right: 46px;
  font-size: 16px;
}

.tool-card-link span,
.related-tool-link span {
  max-width: 58ch;
  font-size: 13.5px;
}

.tool-card-link:hover,
.related-tool-link:hover {
  transform: translateY(-3px);
  border-color: #afc5ba;
  box-shadow: 0 24px 44px rgba(17, 25, 22, 0.12);
}

.ad-slot {
  min-height: 104px;
  border-color: #bccdc3;
  background:
    linear-gradient(90deg, rgba(22, 163, 116, 0.06), transparent 32%, rgba(242, 106, 75, 0.06)),
    rgba(255, 255, 255, 0.64);
}

.layout {
  grid-template-columns: minmax(260px, 308px) minmax(0, 1fr);
  gap: 22px;
}

.sidebar .card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, #12211c, #172b24);
  box-shadow: var(--shadow-md);
}

.sidebar .tool-intro {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.sidebar .tool-intro p {
  color: #89d9bc;
}

.sidebar .tool-intro h2 {
  color: #ffffff;
}

.tool-nav-item {
  color: #dbe8e1;
}

.tool-nav-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.tool-nav-item.active {
  border-color: rgba(119, 224, 187, 0.44);
  background: #f8fbf7;
  color: var(--charcoal);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.sidebar .secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.content > .card,
.tool-panel {
  border-color: #d4e0d8;
  box-shadow: var(--shadow-md);
}

.tool-panel {
  padding: 22px;
}

.tool-panel > h2 {
  position: relative;
  margin: -22px -22px 16px;
  padding: 20px 22px;
  border-bottom-color: #dbe6df;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(90deg, #ffffff, #f5fbf8);
  font-size: 25px;
}

.tool-panel > h2::before {
  width: 9px;
  height: 30px;
  background: linear-gradient(180deg, var(--mint), var(--coral));
}

.description {
  border-color: #bfe0d2;
  background:
    linear-gradient(90deg, #f0fbf7, #ffffff);
}

.control-row,
.mode-selector {
  border-color: #d4e0d8;
  background: #f6faf7;
}

.file-drop {
  border-color: #adc8bd;
  background:
    linear-gradient(180deg, #fbfdfb, #eef8f4);
}

.primary {
  border-color: var(--charcoal);
  background: var(--charcoal);
  box-shadow: 0 14px 28px rgba(17, 25, 22, 0.22);
}

.primary:hover {
  border-color: #000000;
  background: #000000;
}

.secondary {
  border-color: #b9c9c0;
}

.status,
.results table,
.stat,
.output-preview,
.tree-view {
  border-color: #d3e0d8;
}

.static-page {
  max-width: 1180px;
}

.static-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 127, 141, 0.22), transparent 42%),
    linear-gradient(90deg, var(--charcoal), var(--charcoal-2));
  box-shadow: var(--shadow-md);
}

.static-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
  pointer-events: none;
}

.static-hero > * {
  position: relative;
}

.static-hero .brand-home,
.static-hero h1 {
  color: #ffffff;
}

.static-hero .brand-home .brand-mark {
  background: #f7fbf7;
  color: var(--charcoal);
}

.static-hero .eyebrow {
  color: #77e0bb;
}

.static-hero .subtitle {
  color: #d7e6de;
}

.static-updated {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf5ef;
}

.static-hero .primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--charcoal);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.static-hero .primary:hover {
  border-color: #dff6ee;
  background: #dff6ee;
  color: var(--charcoal);
}

.static-hero .secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.static-hero .secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.static-panel {
  border-color: #d4e0d8;
  box-shadow: var(--shadow-sm);
}

.tool-live-panel {
  padding: 18px;
}

.tool-live-frame {
  border-color: #b6c9bf;
  box-shadow: 0 24px 58px rgba(17, 25, 22, 0.16);
}

.footer {
  color: #65756d;
}

.footer-links a {
  color: var(--mint-strong);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .sidebar .card {
    background: var(--panel);
    border-color: var(--line);
  }

  .sidebar .tool-intro {
    border-bottom-color: var(--line);
  }

  .sidebar .tool-intro p {
    color: var(--muted);
  }

  .sidebar .tool-intro h2,
  .tool-nav-item {
    color: var(--ink);
  }

  .tool-nav-item:hover {
    border-color: var(--line);
    background: var(--panel-tint);
  }

  .tool-nav-item.active {
    background: var(--charcoal);
    color: #ffffff;
  }
}

@media (max-width: 700px) {
  .hero,
  .static-hero {
    padding: 20px;
  }

  .hero h1,
  .static-hero h1 {
    font-size: 36px;
  }

  .hero .brand-lockup {
    gap: 14px;
  }

  .hero .brand-mark {
    width: 52px;
    height: 52px;
  }

  .tool-search {
    min-height: 150px;
    padding: 16px;
  }

  .quick-tools,
  .tool-directory {
    padding: 14px;
  }

  .tool-panel {
    padding: 16px;
  }

  .tool-panel > h2 {
    margin: -16px -16px 14px;
    padding: 16px;
  }

  .tool-card-link,
  .related-tool-link {
    min-height: 104px;
  }
}

@media (max-width: 430px) {
  .hero,
  .static-hero {
    padding: 18px;
  }

  .hero h1,
  .static-hero h1 {
    font-size: 32px;
  }

  .tool-search::before {
    display: none;
  }
}

/* Senior UX repair layer */
.page:not(.static-page) {
  display: flex;
  flex-direction: column;
}

.page:not(.static-page) .hero {
  order: 1;
}

.page:not(.static-page) .quick-tools {
  order: 2;
}

.page:not(.static-page) .tool-directory,
.page:not(.static-page) > .ad-slot {
  order: 3;
}

.page:not(.static-page) .ad-slot[data-ad-slot="top"] {
  order: 4;
}

.page:not(.static-page) .layout {
  order: 5;
}

.page:not(.static-page) .ad-slot[data-ad-slot="bottom"] {
  order: 6;
}

.page:not(.static-page) .footer {
  order: 7;
}

.page:not(.static-page) .layout {
  margin-top: 2px;
}

.page:not(.static-page) .content {
  display: grid;
  gap: 16px;
}

.content > .tool-panel.active {
  margin-bottom: 0;
}

.content > .related-tools {
  margin-bottom: 0;
}

.tool-panel.active {
  position: relative;
  overflow: hidden;
}

.tool-panel.active::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background:
    linear-gradient(135deg, rgba(22, 163, 116, 0.12), transparent 62%),
    linear-gradient(315deg, rgba(242, 106, 75, 0.1), transparent 58%);
  pointer-events: none;
}

.tool-panel.active > * {
  position: relative;
  z-index: 1;
}

.tool-page-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.tool-page-main .tool-live-panel {
  order: -10;
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.tool-page-main .tool-live-panel .section-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #d4e0d8;
  background:
    linear-gradient(90deg, #ffffff, #f3faf6);
}

.tool-page-main .tool-live-panel .section-head h2 {
  font-size: 24px;
}

.tool-page-main .tool-live-frame {
  height: min(780px, 82vh);
  min-height: 650px;
  border: 0;
  border-top: 1px solid #d4e0d8;
  border-radius: 0;
  box-shadow: none;
}

.tool-page-main .ad-slot,
.tool-page-main .related-tools {
  grid-column: 1 / -1;
}

.tool-page-main > .static-panel:not(.tool-live-panel) {
  height: 100%;
}

.tool-page-main > .prose-panel:last-child {
  grid-column: 1 / -1;
}

.static-main:not(.tool-page-main) .static-panel {
  max-width: 100%;
}

.static-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 255, 253, 0.98));
}

.prose-panel h2 {
  scroll-margin-top: 18px;
}

.check-list li::marker {
  color: var(--mint-strong);
}

.tool-directory {
  margin-top: 0;
}

.page:not(.static-page) .layout + .tool-directory {
  margin-top: 22px;
}

@media (min-width: 1180px) {
  .page:not(.static-page) .layout {
    grid-template-columns: minmax(286px, 318px) minmax(0, 1fr);
  }

  .tool-panel.active {
    min-height: 520px;
  }
}

@media (max-width: 1080px) {
  .page:not(.static-page) .layout {
    margin-top: 8px;
  }

  .tool-page-main {
    grid-template-columns: 1fr;
  }

  .tool-page-main .tool-live-frame {
    height: 76vh;
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .page:not(.static-page) .hero {
    margin-bottom: 14px;
  }

  .quick-tools {
    margin-bottom: 14px;
  }

  .layout {
    gap: 14px;
  }

  .tool-panel.active::after {
    width: 96px;
    height: 96px;
  }

  .tool-page-main .tool-live-panel .section-head {
    padding: 15px;
  }

  .tool-page-main .tool-live-panel .section-head h2 {
    font-size: 21px;
  }

  .tool-page-main .tool-live-frame {
    height: 74vh;
    min-height: 560px;
  }
}

@media (max-width: 520px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero,
  .static-hero {
    border-radius: var(--radius);
  }

  .tool-search input {
    min-height: 50px;
    font-size: 15px;
  }

  .category-filter {
    gap: 6px;
  }

  .quick-lists > div,
  .tool-directory,
  .quick-tools,
  .card,
  .static-panel {
    border-radius: var(--radius);
  }

  .tool-card-link,
  .related-tool-link {
    padding: 16px 58px 16px 16px;
  }

  .tool-card-link::before,
  .related-tool-link::before {
    top: 16px;
    right: 16px;
  }

  .tool-card-link::after,
  .related-tool-link::after {
    top: 29px;
    right: 29px;
  }

  .tool-card-link strong,
  .related-tool-link strong {
    padding-right: 0;
  }

  .tool-page-main .tool-live-frame {
    min-height: 540px;
  }
}

/* Runtime tool process notes */
.tool-process-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  margin: -2px 0 16px;
  padding: 16px;
  border: 1px solid #b9dccd;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22, 163, 116, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 248, 0.96)),
    #fbfdfb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 26px rgba(17, 25, 22, 0.06);
}

.tool-process-note-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tool-process-note-head span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e4f6ef;
  color: var(--mint-strong);
  font-size: 12px;
  font-weight: 900;
}

.tool-process-note-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.tool-process-note p,
.tool-process-note small {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool-process-note p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.tool-process-note-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 12px 12px 12px 30px;
  border: 1px solid #d6e7df;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tool-process-note-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool-process-note small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.5;
}

.tool-process-list {
  padding: 14px 14px 14px 34px;
  border: 1px solid #d4e5dc;
  border-radius: var(--radius);
  background: #fbfdfb;
}

@media (max-width: 760px) {
  .tool-process-note {
    grid-template-columns: 1fr;
  }

  .tool-process-note small {
    grid-column: auto;
  }
}

/* Responsive product polish layer */
.hero,
.static-hero,
.quick-tools,
.tool-directory,
.layout,
.sidebar,
.content,
.card,
.static-panel,
.tool-panel,
.tool-search {
  min-width: 0;
}

.hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(min(100%, 340px), 470px);
}

.tool-search {
  width: 100%;
}

.tool-search::before {
  content: "";
  min-width: 34px;
  width: 34px;
}

.brand-lockup > div,
.quick-tools-head > *,
.section-head > *,
.tool-intro-row > * {
  min-width: 0;
}

.quick-tools-head .compact {
  flex: 0 0 auto;
}

.section-link,
.section-head > span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero .eyebrow,
.hero .subtitle,
.static-hero h1,
.static-hero .subtitle {
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.category-filter {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  align-items: stretch;
}

.category-filter button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.tool-panel {
  --tool-panel-pad: 22px;
  padding: var(--tool-panel-pad);
  overflow-wrap: anywhere;
}

.tool-panel.active {
  overflow-x: clip;
  overflow-y: visible;
}

.tool-panel > h2 {
  align-items: flex-start;
  margin: calc(-1 * var(--tool-panel-pad)) calc(-1 * var(--tool-panel-pad)) 16px;
  padding: 18px var(--tool-panel-pad);
  overflow-wrap: anywhere;
}

.control-row,
.mode-selector,
.color-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: start;
}

.mode-selector > label,
.control-row > label,
.color-row > label {
  min-width: 0;
}

.radio-pill {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}

.file-drop {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: clamp(16px, 3vw, 22px);
}

.actions {
  align-items: stretch;
}

.static-actions {
  width: 100%;
}

.primary,
.secondary,
.button-link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.static-panel,
.results,
.output-preview,
.tree-view,
.codeblock,
.mono {
  max-width: 100%;
}

.tool-page-main > .static-panel:not(.tool-live-panel) {
  height: auto;
}

.tool-page-main .tool-live-frame {
  height: clamp(560px, 76vh, 780px);
  min-height: 0;
  max-width: 100%;
}

.embed-mode .page {
  width: 100%;
  overflow-x: clip;
}

.embed-mode .tool-panel {
  --tool-panel-pad: 18px;
  min-height: auto;
  padding: var(--tool-panel-pad);
  overflow-x: clip;
  overflow-y: visible;
}

.embed-mode .tool-panel > h2 {
  margin: calc(-1 * var(--tool-panel-pad)) calc(-1 * var(--tool-panel-pad)) 14px;
  padding: 14px var(--tool-panel-pad);
}

@supports (height: 100dvh) {
  .tool-page-main .tool-live-frame {
    height: clamp(560px, 76dvh, 780px);
  }
}

@media (max-width: 1080px) {
  .hero,
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar .card {
    max-height: min(520px, 56vh);
    overflow: auto;
  }

  .tool-page-main .tool-live-frame {
    height: clamp(500px, 72vh, 660px);
  }

  @supports (height: 100dvh) {
    .tool-page-main .tool-live-frame {
      height: clamp(500px, 72dvh, 660px);
    }
  }
}

@media (max-width: 760px) {
  .page {
    padding-right: clamp(10px, 3vw, 18px);
    padding-left: clamp(10px, 3vw, 18px);
  }

  .hero,
  .static-hero {
    gap: 16px;
    padding: 18px;
  }

  .hero .brand-lockup {
    flex-direction: row;
    gap: 12px;
  }

  .hero h1,
  .static-hero h1 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .hero .subtitle,
  .static-hero .subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-pills span {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .hero-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-pills span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .tool-search {
    min-height: auto;
    padding: 14px;
  }

  .tool-search::before {
    display: none;
  }

  .quick-tools,
  .tool-directory {
    padding: 12px;
  }

  .quick-tools-head,
  .section-head,
  .tool-intro-row {
    gap: 10px;
  }

  .quick-tools-head .compact,
  .section-link,
  .section-head > span {
    width: auto;
    align-self: flex-start;
  }

  .category-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .category-filter button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 12px;
    white-space: normal;
  }

  .quick-lists,
  .tool-card-grid,
  .compare-grid,
  .stats-grid,
  .related-tool-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout {
    gap: 12px;
  }

  .sidebar .card {
    max-height: min(420px, 46vh);
    padding: 10px;
  }

  .tool-nav-item {
    min-height: 36px;
    padding: 8px 10px;
  }

  .tool-panel {
    --tool-panel-pad: 14px;
  }

  .tool-panel > h2 {
    margin-bottom: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: clamp(20px, 6vw, 22px);
  }

  .tool-panel.active::after {
    display: none;
  }

  .description {
    padding: 10px;
    line-height: 1.55;
  }

  .control-row,
  .mode-selector,
  .color-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .radio-pill {
    min-height: 40px;
    padding: 8px 10px;
  }

  .file-drop {
    min-height: 96px;
    padding: 14px 10px;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 8px;
    padding-top: 10px;
  }

  .actions button,
  .actions .button-link,
  .primary,
  .secondary {
    width: auto;
    min-height: 40px;
  }

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

  .tool-page-main .tool-live-panel .section-head {
    align-items: flex-start;
  }

  .tool-page-main .tool-live-frame {
    height: min(560px, 76vh);
    min-height: 430px;
  }

  .embed-mode .tool-panel {
    --tool-panel-pad: 14px;
  }

  @supports (height: 100dvh) {
    .tool-page-main .tool-live-frame {
      height: min(560px, 76dvh);
    }
  }
}

@media (max-width: 430px) {
  .hero,
  .static-hero {
    padding: 14px;
  }

  .hero .brand-lockup {
    gap: 10px;
  }

  .hero .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero-pills span {
    flex-basis: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .category-filter {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tool-panel,
  .static-panel {
    padding: 14px;
  }

  .tool-card-link,
  .related-tool-link {
    padding: 14px 54px 14px 14px;
  }

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

  .tool-page-main .tool-live-frame {
    height: min(520px, 76vh);
    min-height: 400px;
  }

  @supports (height: 100dvh) {
    .tool-page-main .tool-live-frame {
      height: min(520px, 76dvh);
    }
  }
}

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

/* Final mobile overflow guard */
@media (max-width: 520px) {
  html,
  body,
  .page {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .hero,
  .static-hero,
  .quick-tools,
  .tool-directory,
  .layout,
  .tool-panel,
  .static-panel,
  .tool-search,
  .tool-search input,
  .tool-search select,
  .quick-list,
  .category-filter,
  .tool-process-note {
    max-width: 100%;
    min-width: 0;
  }

  .hero,
  .static-hero {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .hero .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title,
  .static-hero h1,
  .tool-panel > h2 {
    overflow-wrap: anywhere;
  }

  .hero .subtitle,
  .static-hero .subtitle,
  .tool-process-note p,
  .tool-process-note-list {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .tool-search {
    inline-size: min(100%, calc(100vw - 64px));
    justify-self: start;
    width: auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tool-search input,
  .tool-search select {
    display: block;
    inline-size: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

  .hero-pills span:nth-child(3) {
    grid-column: auto;
  }

  .category-filter {
    margin-right: 0;
    margin-left: 0;
    padding: 8px;
    border: 1px solid rgba(35, 52, 89, 0.1);
    border-radius: var(--radius);
  }
}

/* Final responsive polish pass */
.actions > *,
.static-actions > * {
  min-width: 0;
}

.actions button,
.actions .button-link {
  flex: 0 1 auto;
}

.primary,
.secondary {
  text-wrap: balance;
}

.static-actions {
  max-width: 720px;
}

.static-hero .static-actions {
  margin-top: 18px;
}

.quick-lists > div,
.tool-card-link,
.related-tool-link,
.static-panel {
  overflow-wrap: anywhere;
}

.tool-card-link strong,
.tool-card-link span,
.related-tool-link strong,
.related-tool-link span {
  min-width: 0;
}

.prose-panel p,
.check-list,
.description,
.status,
.tool-process-note p,
.tool-process-note small {
  text-wrap: pretty;
}

.tool-process-note {
  overflow: visible;
}

.tool-process-note > *,
.tool-process-note-list > * {
  min-width: 0;
  max-width: 100%;
}

.tool-process-note-head span {
  letter-spacing: 0;
}

.tool-process-list {
  margin: 10px 0 14px;
  line-height: 1.7;
}

.tool-process-list li {
  padding-left: 2px;
}

.static-panel > :last-child,
.prose-panel p:last-child,
.check-list:last-child,
.tool-process-list:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
  }

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

@media (max-width: 520px) {
  .tool-search {
    inline-size: 100%;
    width: 100%;
    justify-self: stretch;
  }

  .quick-lists > div,
  .tool-directory,
  .quick-tools,
  .static-panel,
  .content > .related-tools {
    padding-inline: 12px;
  }

  .tool-card-link,
  .related-tool-link {
    padding: 14px 52px 14px 14px;
  }

  .tool-card-link::before,
  .related-tool-link::before {
    right: 14px;
    left: auto;
  }

  .tool-card-link::after,
  .related-tool-link::after {
    right: 26px;
    left: auto;
  }

  .tool-process-note {
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .tool-process-note p {
    font-size: 13px;
    line-height: 1.58;
  }

  .tool-process-list {
    padding: 12px 12px 12px 28px;
  }

  .tool-process-note-list {
    padding: 11px 11px 11px 26px;
    font-size: 12.5px;
  }
}

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

/* Final mobile title and long-link fit guard for generated static pages. */
@media (max-width: 520px) {
  .hero h1,
  .static-hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 7.4vw, 34px);
    line-height: 1.16;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .static-panel a,
  .prose-panel a,
  .static-hero .subtitle,
  .hero .subtitle,
  .prose-panel p,
  .check-list li {
    overflow-wrap: anywhere;
  }

  .hero .subtitle,
  .static-hero .subtitle {
    max-width: 32ch;
  }
}

/* Design elevation pass: tighter first viewport, clearer hierarchy, richer utility surface. */
:root {
  --canvas: #f4f7f6;
  --canvas-2: #edf2f1;
  --panel: #ffffff;
  --panel-tint: #f7faf9;
  --charcoal: #101716;
  --charcoal-2: #16221f;
  --charcoal-3: #22342e;
  --mint: #0aa371;
  --mint-strong: #087a58;
  --coral: #e65f3f;
  --amber: #b38424;
  --teal: #226f86;
  --line: #d5dfda;
  --line-strong: #b8c8c0;
  --ink: #121817;
  --ink-2: #2c3733;
  --muted: #66736e;
  --muted-2: #84908b;
  --shadow-xs: 0 1px 2px rgba(18, 24, 23, 0.05);
  --shadow-sm: 0 12px 28px rgba(18, 24, 23, 0.08);
  --shadow-md: 0 26px 62px rgba(18, 24, 23, 0.13);
}

html {
  scroll-padding-top: 18px;
}

body {
  background:
    linear-gradient(90deg, rgba(16, 23, 22, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(16, 23, 22, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfb 0, var(--canvas) 320px, #eef3f1 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.page {
  max-width: 1500px;
  padding: 20px 22px 44px;
}

.hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  align-items: stretch;
  gap: 22px;
  margin: 0 0 14px;
  padding: 24px;
  border: 1px solid rgba(16, 23, 22, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 111, 134, 0.2), transparent 40%),
    linear-gradient(90deg, #111817 0, #17251f 62%, #263f35 100%);
  box-shadow: var(--shadow-md);
}

.hero::before {
  background-size: 38px 38px;
  opacity: 0.72;
}

.hero::after {
  right: 24px;
  bottom: 20px;
  width: min(34vw, 390px);
  height: 76px;
  opacity: 0.58;
}

.hero .brand-lockup {
  align-items: center;
  gap: 18px;
}

.hero .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.hero .eyebrow {
  margin-bottom: 8px;
  color: #79e4bf;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero .subtitle {
  max-width: 58ch;
  margin-top: 12px;
  color: #dcebe5;
  font-size: 16px;
  line-height: 1.62;
}

.hero-pills {
  margin-top: 18px;
}

.hero-pills span {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12.5px;
}

.tool-search {
  align-self: stretch;
  min-height: 0;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 249, 0.94));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.tool-search::before {
  content: "Ctrl K";
  top: 16px;
  right: 16px;
  width: auto;
  min-width: 46px;
  height: 28px;
  border-radius: 8px;
  background: #eef4f2;
  color: #53615c;
}

.tool-search input {
  min-height: 52px;
  border: 1px solid #aebfb7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(18, 24, 23, 0.04);
}

.tool-search input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(10, 163, 113, 0.14);
}

.tool-search:focus-within {
  border-color: rgba(121, 228, 191, 0.72);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(121, 228, 191, 0.16);
}

.quick-tools,
.tool-directory,
.content > .related-tools,
.static-panel {
  border: 1px solid rgba(184, 200, 192, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.quick-tools {
  margin-bottom: 14px;
  padding: 16px;
}

.quick-tools-head,
.section-head {
  align-items: flex-start;
  gap: 14px;
}

.quick-tools-head p,
.section-head p,
.quick-list-title {
  color: var(--mint-strong);
  font-size: 12px;
  font-weight: 900;
}

.quick-tools-head h2,
.section-head h2 {
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.12;
}

.category-filter {
  margin-top: 14px;
  padding: 5px;
  border: 1px solid #cbd9d2;
  border-radius: var(--radius);
  background: #edf3f1;
}

.category-filter button {
  min-height: 40px;
  border-radius: 7px;
  color: #34433d;
  font-weight: 850;
}

.category-filter button.active {
  background: #111817;
  color: #ffffff;
}

.quick-lists {
  gap: 12px;
}

.quick-lists > div {
  border-color: #d5e1dc;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.tool-chip,
.empty-chip {
  border-radius: 8px;
}

.tool-directory {
  padding: 16px;
}

.tool-directory + .tool-directory {
  margin-top: 12px;
}

.section-link,
.section-head > span,
.compact,
.text-button {
  border-radius: 8px;
}

.tool-card-grid,
.related-tool-list {
  gap: 12px;
}

.tool-card-link,
.related-tool-link {
  min-height: 108px;
  padding: 17px 58px 17px 17px;
  border: 1px solid #d7e1dc;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.98));
  box-shadow: var(--shadow-xs);
}

.tool-card-link::before,
.related-tool-link::before {
  top: 16px;
  right: 16px;
  left: auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border-color: #bdd1c7;
  background: #eef8f4;
}

.tool-card-link::after,
.related-tool-link::after {
  top: 29px;
  right: 29px;
  left: auto;
}

.tool-card-link:hover,
.related-tool-link:hover {
  transform: translateY(-2px);
  border-color: #a9c3b8;
  box-shadow: 0 20px 42px rgba(18, 24, 23, 0.12);
}

.layout {
  grid-template-columns: minmax(260px, 306px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.sidebar .card {
  top: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #111817, #172720 100%);
  box-shadow: var(--shadow-md);
}

.tool-nav-item {
  min-height: 39px;
  border-radius: 8px;
}

.tool-nav-item.active {
  background: #f8fbfa;
  color: #111817;
}

.tool-panel {
  --tool-panel-pad: 22px;
  border: 1px solid #d3dfd9;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: var(--shadow-md);
}

.tool-panel > h2 {
  margin: calc(-1 * var(--tool-panel-pad)) calc(-1 * var(--tool-panel-pad)) 16px;
  padding: 18px var(--tool-panel-pad);
  flex-wrap: wrap;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(90deg, #ffffff, #f5fbf8);
  font-size: clamp(22px, 2.1vw, 28px);
}

.tool-panel > h2::before {
  width: 9px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mint), var(--coral));
}

.tool-panel-title {
  flex: 1 1 min(100%, 280px);
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool-panel-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-left: auto;
  border: 1px solid #b7d7ca;
  border-radius: 8px;
  padding: 8px 11px;
  background: #edf8f4;
  color: var(--mint-strong);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.tool-panel-copy:hover {
  border-color: #7dc6ad;
  background: #ddf4ec;
}

.tool-panel-copy:disabled {
  cursor: default;
  opacity: 0.72;
}

.tool-panel-copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.description,
.tool-process-note,
.control-row,
.mode-selector,
.color-row,
.file-drop,
.results,
.output-preview,
.tree-view {
  border-radius: var(--radius);
}

.description {
  border-color: #bfe1d2;
  background: linear-gradient(90deg, #effaf6, #ffffff);
}

.tool-process-note {
  border-color: #b8dccc;
  background:
    linear-gradient(135deg, rgba(10, 163, 113, 0.1), transparent 44%),
    linear-gradient(180deg, #ffffff, #f5fbf8);
}

.tool-process-note-head span {
  border-radius: 8px;
}

.primary,
.secondary,
.button-link,
.actions button {
  border-radius: 8px;
}

.primary {
  background: #111817;
  border-color: #111817;
  box-shadow: 0 14px 28px rgba(18, 24, 23, 0.18);
}

.primary:hover {
  background: #000000;
}

.static-hero {
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 111, 134, 0.2), transparent 40%),
    linear-gradient(90deg, #111817 0, #17251f 62%, #263f35 100%);
}

.tool-live-panel .section-head {
  background: linear-gradient(90deg, #ffffff, #f5fbf8);
}

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

  .tool-search {
    align-content: start;
  }

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

@media (max-width: 760px) {
  .page {
    padding: 12px 12px 34px;
    overflow-x: clip;
  }

  .hero,
  .static-hero {
    width: 100%;
    max-width: calc(100vw - 24px);
    padding: 16px;
  }

  .hero .brand-lockup {
    align-items: flex-start;
  }

  .hero h1,
  .static-hero h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .hero .subtitle,
  .static-hero .subtitle {
    max-width: 100%;
    font-size: 14.5px;
  }

  .tool-search {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    overflow: hidden;
  }

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

  .quick-tools,
  .tool-directory,
  .tool-panel,
  .content > .related-tools {
    width: 100%;
    max-width: calc(100vw - 24px);
    padding: 12px;
  }

  .quick-tools-head,
  .section-head {
    align-items: stretch;
  }

  .category-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .tool-card-link,
  .related-tool-link {
    padding: 14px 52px 14px 14px;
  }

  .layout,
  .content,
  .sidebar,
  .sidebar .card,
  .quick-lists,
  .quick-lists > div,
  .control-row,
  .mode-selector,
  .color-row,
  .file-drop,
  .actions,
  .tool-process-note,
  .tool-process-note-list {
    min-width: 0;
    max-width: 100%;
  }

  .tool-panel {
    --tool-panel-pad: 14px;
  }

  .tool-panel > h2 {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tool-panel-copy {
    min-height: 34px;
    margin-left: 0;
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .tool-panel-title {
    flex-basis: calc(100% - 28px);
  }

  .tool-panel-copy {
    width: 100%;
  }
}

/* Static detail parity pass: match toolbada.com tool pages and keep embedded tools focused. */
.site-search-button {
  text-decoration: none;
}

.static-page {
  width: 100%;
  max-width: none;
  padding: 0 0 56px;
  background: #ffffff;
}

.static-main {
  width: min(calc(100% - 48px), 1000px);
  margin: 0 auto;
  gap: 24px;
}

.tool-page-main {
  width: min(calc(100% - 48px), 990px);
}

.tool-detail-main {
  padding-top: 30px;
}

.static-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 24px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 750;
}

.static-breadcrumb a {
  color: #8a6040;
  text-decoration: none;
}

.static-breadcrumb a:hover {
  text-decoration: underline;
}

.tool-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 4px;
}

.tool-detail-head > div {
  min-width: 0;
}

.tool-detail-head .eyebrow,
.static-hero .eyebrow {
  color: #8a6040;
  font-size: 13px;
  font-weight: 900;
}

.tool-detail-head h1 {
  margin: 8px 0 0;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.tool-detail-head .subtitle {
  max-width: 700px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.75;
}

.static-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.static-actions .button-link {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

.static-actions .primary {
  border-color: #c9a48e;
  background: #c9a48e;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(138, 96, 64, 0.16);
}

.static-actions .primary:hover {
  border-color: #a8795e;
  background: #a8795e;
}

.static-actions .secondary {
  border-color: #efe6df;
  background: #ffffff;
  color: #8a6040;
}

.static-actions .secondary:hover {
  border-color: #c9a48e;
  background: #f8f1ed;
}

.static-panel {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.tool-live-panel-primary {
  overflow: hidden;
  padding: 0;
}

.tool-live-panel-primary .section-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.tool-live-panel-primary .section-head h2 {
  font-size: 18px;
}

.tool-live-panel-primary .section-head p {
  color: #8a6040;
}

.tool-live-frame {
  height: min(760px, calc(100vh - 190px));
  min-height: 620px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.tool-detail-divider {
  height: 1px;
  border-top: 2px dashed #e5e7eb;
}

.prose-panel {
  padding: 32px;
}

.prose-panel h2 {
  margin: 28px 0 10px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}

.prose-panel h2:first-child,
.prose-panel .section-head + h2 {
  margin-top: 0;
}

.prose-panel p,
.check-list {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.9;
}

.check-list li + li {
  margin-top: 8px;
}

.compact-head {
  margin-bottom: 18px;
}

.compact-head p {
  color: #8a6040;
  font-weight: 900;
}

.compact-head h2 {
  color: #111827;
  font-weight: 900;
}

.related-tool-list {
  gap: 14px;
}

.related-tool-link {
  border-color: #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.related-tool-link:hover {
  border-color: rgba(201, 164, 142, 0.72);
  box-shadow: 0 18px 40px rgba(138, 96, 64, 0.1);
}

.static-hero {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 64px 0 44px;
  border: 0;
  background: #ffffff;
}

.static-hero .brand-home {
  display: none;
}

.static-hero::before,
.static-hero::after {
  content: none;
  display: none;
}

.static-hero h1 {
  color: #111827;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.static-hero .subtitle {
  max-width: 760px;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.8;
}

.footer {
  margin-top: 56px;
  padding: 34px 24px 26px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #9ca3af;
}

.footer-links a {
  color: #6b7280;
}

.footer-links a:hover {
  color: #111827;
}

.embed-mode .site-header,
.embed-mode .hero,
.embed-mode .live-hero,
.embed-mode .quick-tools,
.embed-mode .tool-directory,
.embed-mode .ad-slot,
.embed-mode .sidebar,
.embed-mode .footer {
  display: none !important;
}

.embed-mode .page:not(.static-page) {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  padding: 0 !important;
  background: #ffffff !important;
}

.embed-mode .page:not(.static-page) > .layout,
.embed-mode .layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.embed-mode .content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.embed-mode .tool-panel {
  display: none !important;
}

.embed-mode .tool-panel.active {
  display: block !important;
  min-height: 100vh !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Intermediate UX polish; the later post-legacy block wins final overrides. */
.page:not(.static-page) .live-hero {
  min-height: clamp(560px, 68vh, 700px) !important;
  padding-top: clamp(58px, 7vw, 96px) !important;
  padding-bottom: clamp(62px, 7vw, 98px) !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 860px !important;
  font-size: clamp(58px, 7.1vw, 96px) !important;
  line-height: 0.94 !important;
}

.page:not(.static-page) .hero-tool-search {
  grid-template-columns: auto minmax(0, 1fr) !important;
  row-gap: 8px !important;
}

.page:not(.static-page) .hero-tool-search small {
  display: none !important;
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
}

.page:not(.static-page) .hero-tool-search small:not(:empty) {
  display: block !important;
}

.page:not(.static-page) .tool-card-link {
  min-height: 142px !important;
  padding: 20px 20px 18px !important;
}

.page:not(.static-page) .tool-card-link::after {
  content: "" !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, rgba(201, 164, 142, 0.42), rgba(143, 163, 145, 0.42)) !important;
}

.page:not(.static-page) .tool-card-link:nth-child(2n)::after {
  background: linear-gradient(135deg, rgba(143, 163, 145, 0.52), rgba(143, 178, 193, 0.38)) !important;
}

.page:not(.static-page) .tool-card-link:nth-child(3n)::after {
  background: linear-gradient(135deg, rgba(201, 164, 142, 0.5), rgba(197, 138, 138, 0.38)) !important;
}

.page:not(.static-page) .tool-card-link strong {
  padding-right: 44px !important;
}

.tool-page-main .tool-live-frame,
.tool-live-frame {
  height: clamp(520px, 68dvh, 720px) !important;
  min-height: 520px !important;
}

.embed-mode .tool-panel.active {
  min-height: auto !important;
  padding: clamp(14px, 3vw, 20px) !important;
}

@media (max-width: 899px) {
  .page:not(.static-page) .live-hero {
    min-height: auto !important;
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 620px !important;
    font-size: clamp(46px, 11vw, 72px) !important;
  }
}

@media (max-width: 760px) {
  .page:not(.static-page) .quick-tools .category-filter,
  .page:not(.static-page) .category-filter {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px !important;
    scrollbar-width: thin !important;
  }

  .page:not(.static-page) .quick-tools .category-filter button,
  .page:not(.static-page) .category-filter button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 86px !important;
    white-space: nowrap !important;
  }

  .tool-detail-head::after,
  .static-hero::after {
    display: none !important;
  }

  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: clamp(460px, 70dvh, 660px) !important;
    min-height: 460px !important;
  }
}

@media (max-width: 520px) {
  .page:not(.static-page) .live-hero {
    padding-top: 42px !important;
    padding-right: 7px !important;
    padding-bottom: 46px !important;
    padding-left: 7px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 342px !important;
    font-size: clamp(38px, 10.5vw, 46px) !important;
    line-height: 1.02 !important;
  }

  .page:not(.static-page) .hero-tool-search {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 13px !important;
  }

  .page:not(.static-page) .hero-tool-search input {
    min-height: 46px !important;
  }
}

/* Final UX polish: faster tool launch, tighter hero, stronger scan rhythm. */
html.command-palette-open,
html.command-palette-open body {
  overflow: hidden !important;
}

.page:not(.static-page) .live-hero {
  min-height: clamp(560px, 68vh, 700px) !important;
  padding-top: clamp(58px, 7vw, 96px) !important;
  padding-bottom: clamp(62px, 7vw, 98px) !important;
}

.page:not(.static-page) .home-hero-copy {
  max-width: 890px !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 860px !important;
  font-size: clamp(58px, 7.1vw, 96px) !important;
  line-height: 0.94 !important;
}

.page:not(.static-page) .hero-desc {
  max-width: 760px !important;
}

.hero-tool-search {
  grid-template-columns: auto minmax(0, 1fr) !important;
  row-gap: 8px !important;
}

.hero-tool-search small {
  display: none !important;
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  padding-left: 2px !important;
}

.hero-tool-search small:not(:empty) {
  display: block !important;
}

.quick-tools,
.tool-directory,
.layout {
  scroll-margin-top: 88px !important;
}

.tool-card-grid {
  gap: clamp(12px, 1.4vw, 18px) !important;
}

.tool-card-link {
  min-height: 142px !important;
  padding: 20px 20px 18px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(143, 163, 145, 0.16), transparent 34%) !important;
}

.tool-card-link::after {
  content: "" !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-radius: 11px !important;
  background:
    linear-gradient(135deg, rgba(201, 164, 142, 0.42), rgba(143, 163, 145, 0.42)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.tool-card-link:nth-child(2n)::before {
  background: linear-gradient(180deg, #8fa391, #8fb2c1) !important;
}

.tool-card-link:nth-child(3n)::before {
  background: linear-gradient(180deg, #c9a48e, #c58a8a) !important;
}

.tool-card-link:nth-child(4n)::before {
  background: linear-gradient(180deg, #8fb2c1, #9b96c6) !important;
}

.tool-card-link:nth-child(2n)::after {
  background: linear-gradient(135deg, rgba(143, 163, 145, 0.52), rgba(143, 178, 193, 0.38)) !important;
}

.tool-card-link:nth-child(3n)::after {
  background: linear-gradient(135deg, rgba(201, 164, 142, 0.5), rgba(197, 138, 138, 0.38)) !important;
}

.tool-card-link strong {
  padding-right: 44px !important;
  line-height: 1.35 !important;
}

.tool-card-link span {
  line-height: 1.65 !important;
}

.command-palette-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000 !important;
  display: grid !important;
  place-items: start center !important;
  padding: clamp(18px, 8vh, 76px) 18px 18px !important;
  background: rgba(20, 24, 28, 0.36) !important;
  backdrop-filter: blur(18px) !important;
}

.command-palette-backdrop[hidden] {
  display: none !important;
}

.command-palette {
  width: min(720px, 100%) !important;
  max-height: min(760px, calc(100dvh - 36px)) !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(234, 223, 214, 0.95) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(250, 247, 243, 0.97)) !important;
  box-shadow: 0 34px 100px rgba(17, 24, 39, 0.24) !important;
  padding: 18px !important;
}

.command-palette-head,
.command-palette-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.command-palette-head strong {
  display: block !important;
  margin-top: 4px !important;
  color: #171b1f !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
}

.command-palette-eyebrow {
  color: #8c6f5f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.command-palette-close {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(234, 223, 214, 0.95) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #4f5b63 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.command-palette-input {
  width: 100% !important;
  min-height: 56px !important;
  border: 1px solid rgba(201, 164, 142, 0.62) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #171b1f !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  outline: none !important;
  padding: 0 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.command-palette-input:focus {
  border-color: rgba(124, 141, 126, 0.86) !important;
  box-shadow: 0 0 0 4px rgba(143, 163, 145, 0.18) !important;
}

.command-palette-status,
.command-palette-hint {
  margin: 0 !important;
  color: #6a737b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.command-palette-list {
  display: grid !important;
  gap: 8px !important;
  overflow: auto !important;
  padding-right: 2px !important;
}

.command-palette-item {
  width: 100% !important;
  min-height: 76px !important;
  border: 1px solid rgba(234, 223, 214, 0.86) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: inherit !important;
  cursor: pointer !important;
  padding: 13px 14px !important;
  text-align: left !important;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease !important;
}

.command-palette-item.is-active,
.command-palette-item:hover {
  border-color: rgba(143, 163, 145, 0.7) !important;
  background: #fffaf6 !important;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1) !important;
  transform: translateY(-1px) !important;
}

.command-palette-main {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

.command-palette-main strong {
  color: #171b1f !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.command-palette-main small {
  color: #5d6870 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.command-palette-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  max-width: 210px !important;
}

.command-palette-chip {
  border: 1px solid rgba(143, 163, 145, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(143, 163, 145, 0.12) !important;
  color: #4d6151 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 7px 9px !important;
  white-space: nowrap !important;
}

.command-palette-chip.is-warm {
  border-color: rgba(201, 164, 142, 0.46) !important;
  background: rgba(201, 164, 142, 0.14) !important;
  color: #765747 !important;
}

.command-palette-empty {
  border: 1px dashed rgba(201, 164, 142, 0.56) !important;
  border-radius: 16px !important;
  color: #69737a !important;
  padding: 24px !important;
  text-align: center !important;
}

.tool-live-frame {
  display: block !important;
  width: 100% !important;
  height: clamp(520px, 68dvh, 720px) !important;
  min-height: 520px !important;
}

.tool-live-panel-primary {
  min-height: auto !important;
}

.embed-mode .tool-panel.active {
  min-height: auto !important;
  padding: clamp(14px, 3vw, 20px) !important;
}

@media (max-width: 899px) {
  .page:not(.static-page) .live-hero {
    min-height: auto !important;
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 620px !important;
    font-size: clamp(46px, 11vw, 72px) !important;
  }
}

@media (max-width: 760px) {
  .category-filter {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    grid-template-columns: none !important;
    justify-content: flex-start !important;
    padding-bottom: 4px !important;
    scrollbar-width: thin !important;
  }

  .category-filter button {
    flex: 0 0 auto !important;
    min-width: 84px !important;
    white-space: nowrap !important;
  }

  .tool-detail-head::after,
  .static-hero::after {
    display: none !important;
  }

  .tool-live-frame {
    height: clamp(460px, 70dvh, 660px) !important;
    min-height: 460px !important;
  }
}

@media (max-width: 520px) {
  .page:not(.static-page) .live-hero {
    padding-top: 42px !important;
    padding-bottom: 46px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 342px !important;
    font-size: clamp(38px, 10.5vw, 46px) !important;
    line-height: 1.02 !important;
  }

  .hero-tool-search {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 13px !important;
  }

  .hero-tool-search input {
    min-height: 46px !important;
  }

  .command-palette-backdrop {
    place-items: start center !important;
    padding: 10px !important;
  }

  .command-palette {
    max-height: calc(100dvh - 20px) !important;
    border-radius: 20px !important;
    padding: 14px !important;
  }

  .command-palette-head strong {
    font-size: 19px !important;
  }

  .command-palette-item {
    align-items: flex-start !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .command-palette-meta {
    justify-content: flex-start !important;
    max-width: none !important;
  }
}

.embed-mode .tool-panel.active > h2 {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -20px -20px 18px !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #111827 !important;
  backdrop-filter: blur(14px);
}

@media (max-width: 760px) {
  .static-main,
  .tool-page-main,
  .static-hero {
    width: min(calc(100% - 28px), 1180px);
  }

  .tool-detail-main {
    padding-top: 22px;
  }

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

  .tool-detail-head h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .static-actions,
  .static-actions .button-link,
  .tool-live-panel-primary .section-link {
    width: 100%;
  }

  .tool-live-panel-primary .section-head {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .tool-live-frame {
    height: 72vh;
    min-height: 560px;
  }

  .prose-panel,
  .static-panel {
    padding: 20px;
  }

  .prose-panel h2 {
    font-size: 22px;
  }

  .related-tool-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile overflow hard guard for the live toolbada.com-inspired hero. */
.page:not(.static-page) .tool-search::after {
  content: none !important;
  display: none !important;
}

.page:not(.static-page) .hero-tool-search::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .page:not(.static-page) {
    width: 100% !important;
    max-width: 100vw !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: clip !important;
  }

  .page:not(.static-page) .live-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .page:not(.static-page) .home-hero-copy,
  .page:not(.static-page) .hero h1,
  .page:not(.static-page) .hero-lead,
  .page:not(.static-page) .hero-desc,
  .page:not(.static-page) .home-hero-actions,
  .page:not(.static-page) .hero-tool-search {
    width: min(calc(100vw - 36px), 354px) !important;
    max-width: min(calc(100vw - 36px), 354px) !important;
  }

  .page:not(.static-page) .hero h1 {
    font-size: clamp(34px, 9.6vw, 39px) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .page:not(.static-page) .underline-swoosh {
    display: block !important;
    width: max-content !important;
    max-width: min(calc(100vw - 36px), 354px) !important;
  }

  .page:not(.static-page) .hero-desc,
  .page:not(.static-page) .hero-lead {
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }

  .page:not(.static-page) .home-hero-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page:not(.static-page) .home-hero-cta-primary,
  .page:not(.static-page) .home-hero-cta-secondary {
    width: 100% !important;
  }
}

/* Final live design lock: keep the toolbada.com parity layer last in the cascade. */
.page:not(.static-page) {
  max-width: none;
  padding: 0 0 56px;
  background: #ffffff;
}

.page:not(.static-page) .live-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
  min-height: min(650px, calc(100vh - 75px));
  margin: 0;
  padding: clamp(70px, 10vh, 112px) max(24px, calc((100vw - 1180px) / 2)) clamp(70px, 9vh, 104px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f8f1ed;
  box-shadow: none;
}

.page:not(.static-page) .live-hero::before,
.page:not(.static-page) .live-hero::after,
.page:not(.static-page) .hero-tool-search::after {
  content: none !important;
  display: none !important;
}

.page:not(.static-page) .home-hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 620px;
}

.page:not(.static-page) .hero h1,
.page:not(.static-page) .hero-lead,
.page:not(.static-page) .hero-desc {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.page:not(.static-page) .hero-tool-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 550px);
  min-height: 58px;
  margin: 24px 0 0;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(201, 164, 142, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(138, 96, 64, 0.1);
}

.page:not(.static-page) .hero-tool-search span {
  margin: 0;
  color: #8a6040;
  white-space: nowrap;
}

.page:not(.static-page) .hero-tool-search span::before {
  display: none;
}

.page:not(.static-page) .hero-tool-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page:not(.static-page) .hero-tool-search input:focus {
  box-shadow: none;
}

.site-search-button,
.site-search-button span {
  white-space: nowrap;
  word-break: keep-all;
}

.page:not(.static-page) > .quick-tools,
.page:not(.static-page) > .tool-directory,
.page:not(.static-page) > .layout,
.page:not(.static-page) > .ad-slot {
  width: min(calc(100% - 48px), 1180px);
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.page:not(.static-page) .quick-tools,
.page:not(.static-page) .tool-directory {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.page:not(.static-page) .quick-tools {
  padding: 72px 0 42px;
}

.page:not(.static-page) .tool-directory {
  padding: 66px 0 18px;
}

.page:not(.static-page) .layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.page:not(.static-page) .tool-card-link,
.page:not(.static-page) .related-tool-link,
.page:not(.static-page) .sidebar .card,
.page:not(.static-page) .tool-panel,
.page:not(.static-page) .content > .related-tools {
  border-color: #efe6df;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
}

@media (max-width: 1080px) {
  .page:not(.static-page) .live-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 74px;
    padding-bottom: 78px;
  }

  .page:not(.static-page) .home-hero-copy {
    max-width: 740px;
  }

  .page:not(.static-page) .home-hero-illustration {
    display: none;
  }

  .page:not(.static-page) .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-search-button {
    flex: 0 0 auto;
    min-width: 62px;
    padding: 0 10px;
  }

  .site-search-button kbd {
    display: none;
  }

  .page:not(.static-page) > .quick-tools,
  .page:not(.static-page) > .tool-directory,
  .page:not(.static-page) > .layout,
  .page:not(.static-page) > .ad-slot {
    width: min(calc(100% - 28px), 1180px);
  }

  .page:not(.static-page) .live-hero {
    width: 100%;
    padding: 54px 18px 62px;
    text-align: left;
  }

  .page:not(.static-page) .home-hero-copy {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .page:not(.static-page) .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .page:not(.static-page) .underline-swoosh {
    display: block;
    width: max-content;
    max-width: 100%;
  }

  .page:not(.static-page) .home-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 10px;
  }

  .page:not(.static-page) .home-hero-cta-primary,
  .page:not(.static-page) .home-hero-cta-secondary {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    font-size: 15px;
    white-space: nowrap;
  }

  .page:not(.static-page) .hero-tool-search {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    padding: 12px 14px;
  }

  .page:not(.static-page) .hero-desc,
  .page:not(.static-page) .hero-lead {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .page:not(.static-page) .category-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .page:not(.static-page) .home-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .page:not(.static-page) .site-logo-text {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .page {
    align-items: flex-start;
  }

  .hero,
  .quick-tools,
  .tool-directory,
  .layout,
  .tool-panel,
  .content > .related-tools,
  .static-hero,
  .static-panel {
    width: min(100%, 360px);
    max-width: 360px;
    margin-right: 0;
    margin-left: 0;
  }

  .tool-search,
  .quick-lists,
  .quick-lists > div,
  .sidebar,
  .sidebar .card,
  .content {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .hero .brand-mark {
    width: 46px;
    height: 46px;
  }

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

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

@media (max-width: 340px) {
  .category-filter {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Ad slots stay hidden until either reserved planning slots or live Kakao slots are connected. */
body:not(.ads-ready) .ad-slot:not(.ad-slot-reserved):not(.ad-slot-kakao) {
  display: none !important;
}

body:not(.ads-ready) .ad-slot.ad-slot-reserved,
body:not(.ads-ready) .ad-slot.ad-slot-kakao,
body.ads-ready .ad-slot {
  display: grid;
}

.ad-slot[hidden] {
  display: none !important;
}

/* Premium product design pass: cleaner utility-app shell, stronger hierarchy, less heavy color mass. */
:root {
  --bg: #f5f6f3;
  --canvas: #f5f6f3;
  --canvas-2: #ecefeb;
  --panel: #ffffff;
  --panel-tint: #f7f8f5;
  --ink: #111514;
  --ink-2: #29312f;
  --muted: #66716c;
  --muted-2: #87908b;
  --line: #d9dfd9;
  --line-strong: #b9c4bd;
  --charcoal: #111514;
  --charcoal-2: #1d2623;
  --mint: #10a977;
  --mint-strong: #087a58;
  --coral: #e76645;
  --amber: #bf8b2b;
  --teal: #2a7990;
  --violet: #6d65c8;
  --focus: rgba(16, 169, 119, 0.2);
  --shadow-xs: 0 1px 2px rgba(20, 26, 24, 0.05);
  --shadow-sm: 0 10px 24px rgba(20, 26, 24, 0.07);
  --shadow-md: 0 22px 56px rgba(20, 26, 24, 0.11);
  --shadow-lg: 0 34px 80px rgba(20, 26, 24, 0.14);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 21, 20, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(17, 21, 20, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, rgba(42, 121, 144, 0.09) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #fcfcfa 0, #f5f6f3 42%, #edf0ec 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.page {
  max-width: 1440px;
  padding-top: 18px;
}

.hero,
.static-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(185, 196, 189, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 169, 119, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 246, 0.96));
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
}

.hero::before,
.static-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--mint), var(--teal) 48%, var(--coral));
  opacity: 1;
  pointer-events: none;
}

.hero::after,
.static-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 68%, rgba(231, 102, 69, 0.09) 68% 100%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(17, 21, 20, 0.035) 72px 73px);
  pointer-events: none;
}

.hero .brand-lockup {
  align-items: center;
  gap: 16px;
}

.hero .brand-mark,
.static-hero .brand-mark {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(17, 21, 20, 0.08);
  background:
    linear-gradient(180deg, #ffffff, #f2f4f1);
  color: var(--charcoal);
  box-shadow: 0 12px 26px rgba(17, 21, 20, 0.12);
}

.hero .eyebrow,
.static-hero .eyebrow {
  color: var(--mint-strong);
  font-size: 12.5px;
  font-weight: 900;
}

.hero h1,
.static-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.98;
  text-wrap: balance;
}

.hero .subtitle,
.static-hero .subtitle {
  max-width: 58ch;
  color: #34413d;
  font-size: 16px;
  line-height: 1.58;
}

.hero-pills {
  gap: 7px;
  margin-top: 18px;
}

.hero-pills span {
  border-color: #cbd7d0;
  background: rgba(255, 255, 255, 0.82);
  color: #27322f;
  box-shadow: none;
}

.hero-pills span:nth-child(2) {
  border-color: rgba(16, 169, 119, 0.28);
  background: rgba(16, 169, 119, 0.1);
  color: var(--mint-strong);
}

.hero-pills span:nth-child(3) {
  border-color: rgba(231, 102, 69, 0.28);
  background: rgba(231, 102, 69, 0.1);
  color: #8f3a27;
}

.tool-search {
  align-self: stretch;
  align-content: end;
  gap: 10px;
  min-height: 0;
  border: 1px solid rgba(185, 196, 189, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f7f9f6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
}

.tool-search::before {
  content: "Ctrl K";
  top: 15px;
  right: 15px;
  width: auto;
  min-width: 48px;
  height: 28px;
  border-radius: 7px;
  background: #eef2ee;
  color: #59655f;
}

.tool-search span {
  color: var(--ink);
}

.tool-search span::before {
  border-radius: 2px;
  background: var(--amber);
}

.tool-search input {
  min-height: 54px;
  border-color: #bcc9c1;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.quick-tools,
.tool-directory,
.content > .related-tools,
.static-panel {
  border: 1px solid rgba(190, 201, 194, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 247, 0.92));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.quick-tools {
  padding: 16px;
}

.quick-tools-head,
.section-head {
  align-items: center;
}

.quick-tools-head p,
.section-head p,
.quick-list-title,
.tool-intro p {
  color: var(--mint-strong);
  font-size: 12px;
  font-weight: 900;
}

.quick-tools-head h2,
.section-head h2,
.tool-intro h2 {
  color: var(--ink);
  letter-spacing: 0;
}

.category-filter {
  gap: 6px;
  padding: 6px;
  border-color: #d2ddd6;
  background: #edf1ee;
}

.category-filter button {
  min-height: 42px;
  border-radius: 7px;
  color: #34403c;
}

.category-filter button.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 21, 20, 0.18);
}

.quick-lists > div {
  border-color: #dce5df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tool-card-grid,
.related-tool-list {
  gap: 13px;
}

.tool-card-link,
.related-tool-link {
  min-height: 112px;
  border-color: #d6dfd9;
  border-radius: 8px;
  padding: 18px 62px 18px 18px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfa);
  box-shadow: var(--shadow-xs);
}

.tool-card-link::before,
.related-tool-link::before {
  top: 16px;
  right: 16px;
  left: auto;
  width: 36px;
  height: 36px;
  border-color: rgba(16, 169, 119, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 169, 119, 0.18), rgba(42, 121, 144, 0.12)),
    #f5fbf8;
}

.tool-card-link:nth-child(3n + 2)::before,
.related-tool-link:nth-child(3n + 2)::before {
  border-color: rgba(231, 102, 69, 0.24);
  background:
    linear-gradient(135deg, rgba(231, 102, 69, 0.16), rgba(191, 139, 43, 0.12)),
    #fff8f4;
}

.tool-card-link:nth-child(3n)::before,
.related-tool-link:nth-child(3n)::before {
  border-color: rgba(109, 101, 200, 0.22);
  background:
    linear-gradient(135deg, rgba(109, 101, 200, 0.14), rgba(42, 121, 144, 0.1)),
    #f6f6ff;
}

.tool-card-link::after,
.related-tool-link::after {
  top: 30px;
  right: 30px;
  left: auto;
  border-color: var(--charcoal);
}

.tool-card-link strong,
.related-tool-link strong {
  padding-right: 48px;
  color: var(--ink);
  font-size: 16px;
}

.tool-card-link span,
.related-tool-link span {
  color: #65716c;
}

.tool-card-link:hover,
.related-tool-link:hover {
  transform: translateY(-3px);
  border-color: #b7c7be;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(17, 21, 20, 0.11);
}

.layout {
  grid-template-columns: minmax(260px, 306px) minmax(0, 1fr);
  gap: 18px;
}

.sidebar .card {
  top: 18px;
  border-color: rgba(190, 201, 194, 0.88);
  background:
    linear-gradient(180deg, #ffffff, #f8faf7);
  box-shadow: var(--shadow-md);
}

.sidebar .tool-intro {
  border-bottom-color: #e1e8e2;
}

.sidebar .tool-intro h2 {
  color: var(--ink);
}

.sidebar .secondary {
  border-color: #c6d2cb;
  background: #ffffff;
  color: var(--ink);
}

.tool-nav-item {
  min-height: 39px;
  border-radius: 7px;
  color: #35403c;
}

.tool-nav-item:hover {
  border-color: #d8e2dc;
  background: #f2f6f2;
}

.tool-nav-item.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(17, 21, 20, 0.18);
}

.tool-nav-item.is-favorite::after {
  color: var(--amber);
}

.tool-panel {
  --tool-panel-pad: 22px;
  border: 1px solid rgba(190, 201, 194, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.tool-panel > h2 {
  min-height: 72px;
  margin: calc(-1 * var(--tool-panel-pad)) calc(-1 * var(--tool-panel-pad)) 18px;
  padding: 18px var(--tool-panel-pad);
  border-radius: 8px 8px 0 0;
  border-bottom: 0;
  background:
    linear-gradient(90deg, var(--charcoal) 0, #182320 52%, #263d49 100%);
  color: #ffffff;
  font-size: clamp(22px, 2vw, 28px);
}

.tool-panel > h2::before {
  width: 8px;
  height: 32px;
  background: linear-gradient(180deg, var(--mint), var(--coral));
}

.tool-panel-title {
  color: inherit;
}

.tool-panel-copy {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #e9fff6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tool-panel-copy:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
}

.description {
  border-color: #c6ddd3;
  border-left-color: var(--mint);
  background:
    linear-gradient(90deg, rgba(16, 169, 119, 0.08), #ffffff);
  color: #33403b;
}

.tool-process-note {
  border-color: #c5ddd2;
  background:
    linear-gradient(90deg, rgba(42, 121, 144, 0.08), transparent 44%),
    linear-gradient(180deg, #ffffff, #f8fbf8);
}

.control-row,
.mode-selector,
.color-row {
  border-color: #d8e3dc;
  background: #f8faf7;
}

input,
textarea,
select {
  border-color: #c5d0c9;
  border-radius: 8px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mint);
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 169, 119, 0.14);
}

.file-drop {
  border-color: #b7cfc4;
  background:
    linear-gradient(180deg, #ffffff, #f2f8f5);
}

.actions {
  gap: 8px;
}

.primary {
  border-color: var(--charcoal);
  background:
    linear-gradient(180deg, #171d1b, #070909);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 21, 20, 0.2);
}

.primary:hover {
  background: #000000;
}

.secondary,
.button-link.secondary {
  border-color: #c2cec7;
  background: #ffffff;
  color: var(--ink);
}

.secondary:hover,
.button-link.secondary:hover {
  background: #f4f7f4;
}

.section-link,
.text-button {
  border-radius: 8px;
}

@media (min-width: 1180px) {
  .hero {
    min-height: 236px;
  }
}

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

  .tool-search {
    align-content: start;
  }

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

  .sidebar .card {
    position: static;
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 12px 12px 34px;
  }

  .hero,
  .static-hero {
    max-width: 100%;
    padding: 16px;
  }

  .hero .brand-lockup {
    align-items: flex-start;
  }

  .hero h1,
  .static-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero .subtitle,
  .static-hero .subtitle {
    font-size: 14.5px;
  }

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

  .quick-tools,
  .tool-directory,
  .tool-panel,
  .content > .related-tools {
    max-width: 100%;
    padding: 12px;
  }

  .quick-tools-head,
  .section-head {
    align-items: stretch;
  }

  .tool-card-link,
  .related-tool-link {
    min-height: 96px;
  }

  .sidebar .card {
    max-height: none;
  }

  .tool-panel {
    --tool-panel-pad: 14px;
  }

  .tool-panel > h2 {
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .page {
    width: 100%;
    max-width: 100vw;
    padding-right: 10px;
    padding-left: 10px;
    overflow-x: clip;
  }

  .hero,
  .quick-tools,
  .tool-directory,
  .layout,
  .tool-panel,
  .content > .related-tools,
  .static-hero,
  .static-panel {
    width: min(100%, calc(100vw - 20px), 370px);
    max-width: min(calc(100vw - 20px), 370px);
    margin-right: 0;
    margin-left: 0;
  }

  .tool-search,
  .content,
  .sidebar,
  .sidebar .card,
  .quick-lists,
  .quick-lists > div,
  .tool-process-note,
  .tool-process-note-list,
  .description,
  .control-row,
  .mode-selector,
  .color-row,
  .file-drop,
  .actions,
  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero .brand-lockup {
    flex-direction: column;
  }

  .hero .brand-mark {
    width: 52px;
    height: 52px;
  }

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

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

  .tool-panel-copy {
    width: 100%;
  }
}

/* Absolute final static/tool-page lock. Keep after every legacy visual layer. */
.site-search-button {
  text-decoration: none !important;
}

.static-page {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 56px !important;
  background: #ffffff !important;
}

.static-main {
  width: min(calc(100% - 48px), 1000px) !important;
  margin: 0 auto !important;
  gap: 24px !important;
}

.tool-page-main {
  width: min(calc(100% - 48px), 990px) !important;
}

.tool-detail-main {
  padding-top: 30px !important;
}

.static-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  min-height: 24px !important;
  color: #9ca3af !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.static-breadcrumb a {
  color: #8a6040 !important;
  text-decoration: none !important;
}

.tool-detail-head {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 6px 0 4px !important;
  border: 0 !important;
  background: #ffffff !important;
}

.tool-detail-head > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.tool-detail-head h1 {
  margin: 8px 0 0 !important;
  color: #111827 !important;
  max-width: 100% !important;
  font-size: clamp(32px, 4.4vw, 46px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
}

.tool-detail-head .subtitle {
  max-width: 700px !important;
  margin-top: 12px !important;
  color: #6b7280 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.static-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  border: 0 !important;
  padding-top: 0 !important;
}

.static-actions .button-link {
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.static-actions .primary {
  border-color: #c9a48e !important;
  background: #c9a48e !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(138, 96, 64, 0.16) !important;
}

.static-actions .secondary {
  border-color: #efe6df !important;
  background: #ffffff !important;
  color: #8a6040 !important;
}

.static-panel {
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.tool-live-panel-primary {
  overflow: hidden !important;
  padding: 0 !important;
}

.tool-live-panel-primary .section-head {
  margin: 0 !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.tool-live-frame {
  height: min(760px, calc(100vh - 190px)) !important;
  min-height: 620px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.tool-detail-divider {
  height: 1px !important;
  border-top: 2px dashed #e5e7eb !important;
}

.prose-panel {
  padding: 32px !important;
}

.prose-panel h2 {
  margin: 28px 0 10px !important;
  color: #111827 !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.prose-panel p,
.check-list {
  color: #4b5563 !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

.static-hero {
  width: min(calc(100% - 48px), 1180px) !important;
  margin: 0 auto !important;
  padding: 64px 0 44px !important;
  border: 0 !important;
  background: #ffffff !important;
}

.static-hero .brand-home {
  display: none !important;
}

.static-hero::before,
.static-hero::after {
  content: none !important;
  display: none !important;
}

.static-hero h1 {
  color: #111827 !important;
  font-size: clamp(36px, 6vw, 64px) !important;
  font-weight: 900 !important;
  line-height: 1.06 !important;
}

.footer {
  margin-top: 56px !important;
  padding: 34px 24px 26px !important;
  border-top: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #9ca3af !important;
}

.embed-mode .site-header,
.embed-mode .hero,
.embed-mode .live-hero,
.embed-mode .quick-tools,
.embed-mode .tool-directory,
.embed-mode .ad-slot,
.embed-mode .sidebar,
.embed-mode .footer {
  display: none !important;
}

.embed-mode .page:not(.static-page) {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  padding: 0 !important;
  background: #ffffff !important;
}

.embed-mode .page:not(.static-page) > .layout,
.embed-mode .layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.embed-mode .content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.embed-mode .tool-panel {
  display: none !important;
}

.embed-mode .tool-panel.active {
  display: block !important;
  min-height: 100vh !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.embed-mode .tool-panel.active > h2 {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  margin: -20px -20px 18px !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #111827 !important;
  backdrop-filter: blur(14px) !important;
}

@media (max-width: 760px) {
  .static-main,
  .tool-page-main,
  .static-hero {
    width: min(calc(100% - 28px), 1180px) !important;
  }

  .tool-detail-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .tool-detail-head h1 {
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .tool-detail-head .subtitle {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }

  .static-actions,
  .static-actions .button-link,
  .tool-live-panel-primary .section-link {
    width: 100% !important;
  }

  .tool-live-panel-primary .section-head {
    align-items: stretch !important;
    flex-direction: column !important;
    padding: 16px !important;
  }

  .tool-live-frame {
    height: 72vh !important;
    min-height: 560px !important;
  }

  .prose-panel,
  .static-panel {
    padding: 20px !important;
  }

  .prose-panel h2 {
    font-size: 22px !important;
  }
}

.tool-detail-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
}

.tool-detail-main .static-breadcrumb {
  order: 1 !important;
}

.tool-detail-main .tool-detail-head {
  order: 2 !important;
}

.tool-detail-main .tool-live-panel-primary {
  order: 3 !important;
  grid-column: 1 / -1 !important;
}

.tool-detail-main .tool-detail-divider {
  order: 4 !important;
}

.tool-detail-main [data-static-section="overview"] {
  order: 5 !important;
}

.tool-detail-main [data-static-section="use-cases"] {
  order: 6 !important;
}

.tool-detail-main [data-static-section="cautions"] {
  order: 7 !important;
}

.tool-detail-main [data-static-section="process"] {
  order: 8 !important;
}

.tool-detail-main .ad-slot {
  order: 9 !important;
}

.tool-detail-main .related-tools {
  order: 10 !important;
}

.tool-detail-main [data-static-section="faq"] {
  order: 11 !important;
}

.tool-detail-head h1 {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.tool-detail-head .subtitle {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 760px) {
  .tool-detail-head h1 {
    font-size: clamp(30px, 8.4vw, 36px) !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .tool-detail-head .subtitle {
    font-size: 15px !important;
    line-height: 1.75 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
}

@media (max-width: 520px) {
  .static-page {
    width: 100% !important;
    max-width: 100vw !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: clip !important;
  }

  .static-main,
  .tool-page-main,
  .tool-detail-main,
  .tool-detail-head,
  .tool-live-panel-primary,
  .tool-detail-divider,
  .static-panel,
  .footer {
    width: min(calc(100vw - 28px), 354px) !important;
    max-width: min(calc(100vw - 28px), 354px) !important;
    margin-right: 14px !important;
    margin-left: 14px !important;
  }

  .tool-detail-head {
    gap: 14px !important;
  }

  .tool-detail-head > div:first-child,
  .tool-detail-head .subtitle,
  .static-actions,
  .static-actions .button-link {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tool-detail-head .subtitle {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .tool-live-panel-primary .section-head,
  .prose-panel,
  .static-panel {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .tool-live-frame {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Final spacing refinement: reduce side gutters and use the viewport with more confidence. */
:root {
  --site-edge-wide: 24px;
  --site-edge-mid: 18px;
  --site-edge-tight: 14px;
  --site-width-wide: 1320px;
  --site-width-static: 1280px;
  --site-width-tool: 1220px;
}

.site-header-inner {
  width: min(calc(100% - var(--site-edge-wide)), var(--site-width-wide)) !important;
  max-width: var(--site-width-wide) !important;
}

.page:not(.static-page) .live-hero {
  padding-right: max(12px, calc((100vw - var(--site-width-wide)) / 2)) !important;
  padding-left: max(12px, calc((100vw - var(--site-width-wide)) / 2)) !important;
}

.page:not(.static-page) > .quick-tools,
.page:not(.static-page) > .tool-directory,
.page:not(.static-page) > .layout,
.page:not(.static-page) > .ad-slot {
  width: min(calc(100% - var(--site-edge-wide)), var(--site-width-wide)) !important;
  max-width: var(--site-width-wide) !important;
}

.static-hero {
  width: min(calc(100% - var(--site-edge-wide)), var(--site-width-wide)) !important;
  max-width: var(--site-width-wide) !important;
}

.static-main {
  width: min(calc(100% - var(--site-edge-wide)), var(--site-width-static)) !important;
  max-width: var(--site-width-static) !important;
}

.tool-page-main,
.tool-detail-main {
  width: min(calc(100% - var(--site-edge-wide)), var(--site-width-tool)) !important;
  max-width: var(--site-width-tool) !important;
}

.tool-detail-head {
  padding: clamp(28px, 4vw, 46px) !important;
  border-color: #eadfd6 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(201, 164, 142, 0.14), transparent 32%),
    linear-gradient(135deg, #fffdfb 0%, #fff7f2 48%, #ffffff 100%) !important;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.07) !important;
}

.tool-detail-head h1 {
  max-width: 980px !important;
  font-size: clamp(36px, 4.2vw, 54px) !important;
  line-height: 1.08 !important;
}

.tool-detail-head .subtitle {
  max-width: 880px !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.tool-live-panel-primary {
  border-color: #e8ded6 !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08) !important;
}

.tool-live-panel-primary .section-head {
  padding: 20px 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%) !important;
}

.tool-live-frame {
  height: min(780px, calc(100vh - 176px)) !important;
  min-height: 640px !important;
}

.prose-panel {
  border-color: #ece3dc !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%) !important;
}

@media (max-width: 760px) {
  .site-header-inner,
  .page:not(.static-page) > .quick-tools,
  .page:not(.static-page) > .tool-directory,
  .page:not(.static-page) > .layout,
  .page:not(.static-page) > .ad-slot,
  .static-main,
  .tool-page-main,
  .tool-detail-main,
  .static-hero {
    width: min(calc(100% - var(--site-edge-mid)), var(--site-width-wide)) !important;
    max-width: var(--site-width-wide) !important;
  }

  .page:not(.static-page) .live-hero {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  .tool-detail-head {
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .tool-detail-head h1 {
    max-width: 100% !important;
    font-size: clamp(31px, 8.5vw, 40px) !important;
  }

  .tool-live-panel-primary,
  .prose-panel {
    border-radius: 18px !important;
  }
}

@media (max-width: 520px) {
  .site-header-inner,
  .page:not(.static-page) > .quick-tools,
  .page:not(.static-page) > .tool-directory,
  .page:not(.static-page) > .layout,
  .page:not(.static-page) > .ad-slot,
  .static-hero {
    width: min(calc(100vw - var(--site-edge-tight)), 506px) !important;
    max-width: min(calc(100vw - var(--site-edge-tight)), 506px) !important;
    margin-right: 7px !important;
    margin-left: 7px !important;
  }

  .static-main,
  .tool-page-main,
  .tool-detail-main,
  .tool-detail-head,
  .tool-live-panel-primary,
  .tool-detail-divider,
  .static-panel,
  .footer {
    width: min(calc(100vw - var(--site-edge-tight)), 376px) !important;
    max-width: min(calc(100vw - var(--site-edge-tight)), 376px) !important;
    margin-right: 7px !important;
    margin-left: 7px !important;
  }

  .page:not(.static-page) .live-hero {
    padding-right: 7px !important;
    padding-left: 7px !important;
  }

  .tool-detail-head {
    padding: 22px !important;
  }

  .tool-live-panel-primary .section-head,
  .prose-panel,
  .static-panel {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

/* Final mobile polish for the tightened layout. */
.page:not(.static-page) .category-filter {
  gap: 8px !important;
  padding: 8px !important;
}

.page:not(.static-page) .category-filter button {
  min-height: 42px !important;
}

@media (max-width: 520px) {
  .page:not(.static-page) .home-hero-copy {
    width: min(calc(100vw - var(--site-edge-tight)), 376px) !important;
    max-width: min(calc(100vw - var(--site-edge-tight)), 376px) !important;
    margin-right: 7px !important;
    margin-left: 7px !important;
  }

  .page:not(.static-page) .hero-tool-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }

  .page:not(.static-page) .hero-tool-search span {
    min-height: 0 !important;
    color: #8a6040 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  .page:not(.static-page) .hero-tool-search input {
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .page:not(.static-page) .hero-tool-search small:empty {
    display: none !important;
  }

  .page:not(.static-page) .quick-tools {
    padding-top: 58px !important;
  }

  .page:not(.static-page) .quick-tools-head {
    gap: 14px !important;
  }

  .page:not(.static-page) .category-filter {
    display: grid !important;
    grid-template-columns: 1fr !important;
    box-sizing: border-box !important;
    width: min(calc(100vw - 70px), 320px) !important;
    max-width: min(calc(100vw - 70px), 320px) !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    gap: 5px !important;
    padding: 6px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    overflow: hidden !important;
  }

  .page:not(.static-page) .category-filter button {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid #eadfd6 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #5d6a65 !important;
    font-size: 12px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .page:not(.static-page) .category-filter button.active {
    border-color: #d7b49f !important;
    background: #ffffff !important;
    color: #8a6040 !important;
    box-shadow: 0 10px 22px rgba(138, 96, 64, 0.12) !important;
  }

  .page:not(.static-page) .quick-lists {
    gap: 10px !important;
  }
}

/* Final art-directed refresh: image-led hero, refined cards, and denser utility surfaces. */
:root {
  --uz-paper: #fbf7f2;
  --uz-paper-strong: #f5ece4;
  --uz-ink: #111827;
  --uz-muted: #5f6b73;
  --uz-line: #eadfd6;
  --uz-brand: #c9a48e;
  --uz-brand-strong: #9b6d52;
  --uz-sage: #8fa391;
  --uz-sky: #9bb7c8;
  --uz-shadow-soft: 0 18px 50px rgba(17, 24, 39, 0.08);
  --uz-shadow-card: 0 10px 28px rgba(17, 24, 39, 0.06);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdfb 34%, #f8faf8 100%) !important;
  color: var(--uz-ink) !important;
}

.site-header {
  border-bottom: 1px solid rgba(234, 223, 214, 0.82) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.site-logo-icon,
.brand-mark {
  background:
    radial-gradient(circle at 28% 24%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, #f4e5d9 0%, #c9a48e 58%, #8fa391 100%) !important;
  color: #6f4d39 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(138, 96, 64, 0.16) !important;
}

.site-nav a,
.site-search-button {
  color: #28323a !important;
}

.site-nav a:hover,
.site-search-button:hover {
  color: var(--uz-brand-strong) !important;
}

.page:not(.static-page) .live-hero {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: clamp(640px, 78vh, 780px) !important;
  margin: 0 !important;
  padding-top: 56px !important;
  padding-bottom: 68px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(234, 223, 214, 0.88) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 164, 142, 0.16), transparent 30%),
    linear-gradient(110deg, #fff8f2 0%, #fbf3eb 54%, #f5f7f1 100%) !important;
}

@media (min-width: 900px) {
  .page:not(.static-page) .live-hero {
    background:
      linear-gradient(90deg, rgba(253, 248, 242, 0.99) 0%, rgba(253, 248, 242, 0.95) 30%, rgba(253, 248, 242, 0.58) 54%, rgba(253, 248, 242, 0.1) 100%),
      url("/assets/toolbada-hero-tools-v2.png") center / cover no-repeat !important;
  }
}

.page:not(.static-page) .home-hero-bg {
  display: none !important;
}

.page:not(.static-page) .home-hero-copy {
  position: relative !important;
  z-index: 2 !important;
  max-width: 600px !important;
  padding: 10px 0 !important;
}

.page:not(.static-page) .home-hero-copy .eyebrow,
.static-hero .eyebrow,
.tool-detail-head .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  min-height: 30px !important;
  margin-bottom: 18px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(201, 164, 142, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  color: #8a6040 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 10px 24px rgba(138, 96, 64, 0.08) !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 600px !important;
  color: #0f172a !important;
  font-size: clamp(62px, 8vw, 116px) !important;
  line-height: 0.94 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .home-hero-copy .subtitle,
.page:not(.static-page) .hero-desc {
  max-width: 520px !important;
  color: #4b5563 !important;
  text-wrap: pretty !important;
}

.page:not(.static-page) .hero-desc strong {
  color: #7a563f !important;
}

.page:not(.static-page) .underline-swoosh svg {
  color: rgba(201, 164, 142, 0.9) !important;
}

.page:not(.static-page) .home-hero-illustration {
  display: none !important;
}

.page:not(.static-page) .home-hero-actions {
  gap: 10px !important;
  margin-top: 30px !important;
}

.page:not(.static-page) .home-hero-cta-primary,
.page:not(.static-page) .home-hero-cta-secondary,
.static-actions .button-link,
.tool-live-panel-primary .section-link,
.section-link {
  border-radius: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .home-hero-cta-primary,
.static-actions .primary {
  border-color: rgba(145, 103, 78, 0.16) !important;
  background: linear-gradient(135deg, #c9a48e 0%, #ad7d62 100%) !important;
  box-shadow: 0 18px 38px rgba(138, 96, 64, 0.22) !important;
}

.page:not(.static-page) .home-hero-cta-secondary,
.static-actions .secondary,
.section-link,
.tool-panel-copy {
  border-color: rgba(234, 223, 214, 0.9) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #80583f !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
}

.page:not(.static-page) .hero-tool-search {
  width: min(100%, 560px) !important;
  margin-top: 24px !important;
  border: 1px solid rgba(201, 164, 142, 0.34) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.page:not(.static-page) .quick-tools,
.page:not(.static-page) .tool-directory,
.page:not(.static-page) .layout {
  position: relative !important;
}

.page:not(.static-page) .quick-tools {
  padding-top: 74px !important;
}

.quick-tools-head h2,
.section-head h2,
.tool-panel-title,
.static-panel h2 {
  letter-spacing: 0 !important;
  color: #0f172a !important;
}

.page:not(.static-page) .category-filter {
  border: 1px solid rgba(234, 223, 214, 0.92) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fffaf6 0%, #f7efe8 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.page:not(.static-page) .category-filter button {
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: #56636b !important;
}

.page:not(.static-page) .category-filter button.active {
  border-color: rgba(201, 164, 142, 0.46) !important;
  background: #ffffff !important;
  color: #7b563f !important;
  box-shadow: 0 12px 28px rgba(138, 96, 64, 0.12) !important;
}

.quick-lists > div,
.tool-card-link,
.related-tool-link,
.tool-panel,
.static-panel {
  border-color: rgba(234, 223, 214, 0.9) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 248, 0.96)) !important;
  box-shadow: var(--uz-shadow-card) !important;
}

.tool-card-link,
.related-tool-link {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.tool-card-link::before,
.related-tool-link::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  background: linear-gradient(180deg, #c9a48e, #8fa391) !important;
  opacity: 0 !important;
  transition: opacity 0.18s ease !important;
}

.tool-card-link:hover,
.related-tool-link:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(201, 164, 142, 0.72) !important;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.1) !important;
}

.tool-card-link:hover::before,
.related-tool-link:hover::before {
  opacity: 1 !important;
}

.tool-panel {
  border-radius: 22px !important;
}

.tool-panel.active {
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08) !important;
}

.tool-panel > h2,
.tool-live-panel-primary .section-head,
.section-head.compact-head {
  border-bottom-color: rgba(234, 223, 214, 0.9) !important;
}

.description,
.tool-process-note,
.status,
.alert,
.result {
  border-color: rgba(234, 223, 214, 0.88) !important;
  border-radius: 16px !important;
}

.tool-process-note {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(255, 248, 242, 0.96)) !important;
}

.static-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(201, 164, 142, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffaf6 38%, #f8faf8 100%) !important;
}

.static-hero,
.tool-detail-head {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(234, 223, 214, 0.92) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 78% 10%, rgba(143, 163, 145, 0.18), transparent 32%),
    radial-gradient(circle at 0% 10%, rgba(201, 164, 142, 0.18), transparent 34%),
    linear-gradient(135deg, #fffdfb 0%, #fff6ef 48%, #fbfdf9 100%) !important;
  box-shadow: var(--uz-shadow-soft) !important;
}

.tool-detail-head::after,
.static-hero::after {
  content: "" !important;
  position: absolute !important;
  right: clamp(18px, 5vw, 70px) !important;
  bottom: clamp(18px, 4vw, 46px) !important;
  width: clamp(100px, 18vw, 220px) !important;
  aspect-ratio: 1.38 !important;
  border: 1px solid rgba(234, 223, 214, 0.82) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
    url("/assets/toolbada-hero-tools-v2.png") right center / 360% auto no-repeat !important;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08) !important;
  opacity: 0.9 !important;
}

.tool-detail-head > *,
.static-hero > * {
  position: relative !important;
  z-index: 1 !important;
}

.tool-detail-head h1,
.static-hero h1 {
  max-width: 820px !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.tool-detail-head .subtitle,
.static-hero .subtitle {
  color: #55616a !important;
}

.tool-live-panel-primary {
  overflow: hidden !important;
  border-radius: 24px !important;
}

.tool-live-frame {
  background:
    linear-gradient(180deg, #ffffff, #fffdfb) !important;
}

.prose-panel,
.related-tools {
  border-radius: 22px !important;
}

.footer {
  border-top-color: rgba(234, 223, 214, 0.92) !important;
  background:
    linear-gradient(180deg, #fffdfb 0%, #f7f2ed 100%) !important;
}

@media (max-width: 899px) {
  .page:not(.static-page) .live-hero {
    display: block !important;
    min-height: auto !important;
    padding-top: 54px !important;
    padding-bottom: 62px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    font-size: clamp(48px, 14vw, 74px) !important;
  }
}

@media (max-width: 760px) {
  .static-hero::after,
  .tool-detail-head::after {
    width: 116px !important;
    right: 18px !important;
    bottom: 18px !important;
    opacity: 0.34 !important;
  }

  .tool-detail-head,
  .static-hero {
    border-radius: 20px !important;
  }
}

@media (max-width: 520px) {
  .page:not(.static-page) .live-hero {
    padding-top: 46px !important;
    padding-right: 7px !important;
    padding-bottom: 54px !important;
    padding-left: 7px !important;
  }

  .page:not(.static-page) .home-hero-copy {
    margin-right: 7px !important;
    margin-left: 7px !important;
    padding: 0 !important;
  }

  .page:not(.static-page) .home-hero-copy .eyebrow {
    margin-bottom: 14px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    font-size: clamp(44px, 13.4vw, 58px) !important;
    line-height: 0.96 !important;
  }

  .page:not(.static-page) .hero-desc,
  .page:not(.static-page) .home-hero-copy .subtitle {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .page:not(.static-page) .hero-tool-search {
    border-radius: 18px !important;
  }

  .tool-card-link,
  .related-tool-link,
  .tool-panel,
  .static-panel,
  .tool-live-panel-primary {
    border-radius: 18px !important;
  }
}

/* Final embed-mode guard and mobile type tuning after the art-directed refresh. */
@media (max-width: 520px) {
  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 348px !important;
    font-size: clamp(40px, 11.1vw, 48px) !important;
    line-height: 0.98 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .page:not(.static-page) .home-hero-copy .underline-swoosh {
    display: inline-block !important;
  }
}

.embed-mode .site-header,
.embed-mode .hero,
.embed-mode .live-hero,
.embed-mode .quick-tools,
.embed-mode .tool-directory,
.embed-mode .ad-slot,
.embed-mode .sidebar,
.embed-mode .footer,
.embed-mode .page:not(.static-page) .live-hero,
.embed-mode .page:not(.static-page) .quick-tools,
.embed-mode .page:not(.static-page) .tool-directory {
  display: none !important;
}

.embed-mode .page:not(.static-page),
.embed-mode .page:not(.static-page) > .layout,
.embed-mode .layout,
.embed-mode .content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

.embed-mode .tool-panel {
  display: none !important;
}

.embed-mode .tool-panel.active {
  display: block !important;
  min-height: 100vh !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Ultimate post-legacy polish. Keep this block last. */
.page:not(.static-page) .live-hero {
  min-height: clamp(560px, 68vh, 700px) !important;
  padding-top: clamp(58px, 7vw, 96px) !important;
  padding-bottom: clamp(62px, 7vw, 98px) !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 860px !important;
  font-size: clamp(58px, 7.1vw, 96px) !important;
  line-height: 0.94 !important;
}

.page:not(.static-page) .hero-tool-search {
  grid-template-columns: auto minmax(0, 1fr) !important;
  row-gap: 8px !important;
}

.page:not(.static-page) .hero-tool-search small {
  display: none !important;
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
}

.page:not(.static-page) .hero-tool-search small:not(:empty) {
  display: block !important;
}

.page:not(.static-page) .tool-card-link {
  min-height: 142px !important;
  padding: 20px 20px 18px !important;
}

.page:not(.static-page) .tool-card-link::after {
  content: "" !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, rgba(201, 164, 142, 0.42), rgba(143, 163, 145, 0.42)) !important;
}

.page:not(.static-page) .tool-card-link:nth-child(2n)::after {
  background: linear-gradient(135deg, rgba(143, 163, 145, 0.52), rgba(143, 178, 193, 0.38)) !important;
}

.page:not(.static-page) .tool-card-link:nth-child(3n)::after {
  background: linear-gradient(135deg, rgba(201, 164, 142, 0.5), rgba(197, 138, 138, 0.38)) !important;
}

.page:not(.static-page) .tool-card-link strong {
  padding-right: 44px !important;
}

.tool-page-main .tool-live-frame,
.tool-live-frame {
  height: clamp(520px, 68dvh, 720px) !important;
  min-height: 520px !important;
}

.embed-mode .tool-panel.active {
  min-height: auto !important;
  padding: clamp(14px, 3vw, 20px) !important;
}

@media (max-width: 899px) {
  .page:not(.static-page) .live-hero {
    min-height: auto !important;
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 620px !important;
    font-size: clamp(46px, 11vw, 72px) !important;
  }
}

@media (max-width: 760px) {
  .page:not(.static-page) .quick-tools .category-filter,
  .page:not(.static-page) .category-filter {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px !important;
    scrollbar-width: thin !important;
  }

  .page:not(.static-page) .quick-tools .category-filter button,
  .page:not(.static-page) .category-filter button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 86px !important;
    white-space: nowrap !important;
  }

  .tool-detail-head::after,
  .static-hero::after {
    display: none !important;
  }

  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: clamp(460px, 70dvh, 660px) !important;
    min-height: 460px !important;
  }
}

@media (max-width: 520px) {
  .page:not(.static-page) .live-hero {
    padding-top: 42px !important;
    padding-right: 7px !important;
    padding-bottom: 46px !important;
    padding-left: 7px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 342px !important;
    font-size: clamp(38px, 10.5vw, 46px) !important;
    line-height: 1.02 !important;
  }

  .page:not(.static-page) .hero-tool-search {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 13px !important;
  }

  .page:not(.static-page) .hero-tool-search input {
    min-height: 46px !important;
  }
}
/* Mega portal roadmap layer */
.mega-home-entry {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 236, 0.88)),
    radial-gradient(circle at 16% 18%, rgba(190, 133, 98, 0.16), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(108, 140, 118, 0.18), transparent 30%);
  border-top: 1px solid rgba(45, 34, 25, 0.08);
  border-bottom: 1px solid rgba(45, 34, 25, 0.08);
}

.mega-hero {
  overflow: hidden;
}

.mega-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.mega-stat-row span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(45, 34, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
}

.mega-stat-row strong {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

.mega-grid .tool-card-link,
.mega-category-card {
  position: relative;
}

.mega-tool-card {
  gap: 9px;
}

.mega-status {
  width: fit-content;
  margin-top: auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.mega-status.is-live {
  background: rgba(46, 125, 83, 0.1);
  color: #26734b;
}

.mega-status.is-planned {
  background: rgba(190, 133, 98, 0.12);
  color: #935f3d;
}

.mega-category-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: #935f3d;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.mega-tool-detail-head {
  align-items: flex-start;
}

@media (max-width: 760px) {
  .mega-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .mega-stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .static-hero h1 {
    max-width: 100%;
    font-size: 34px !important;
    line-height: 1.14 !important;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
}

@media (max-width: 380px) {
  .static-hero h1 {
    font-size: 30px !important;
  }
}

/* ToolBada senior UI stabilization layer */
:root {
  --tb-ink: #111827;
  --tb-muted: #5f6b78;
  --tb-line: #dbe4ea;
  --tb-line-strong: #c8d5dd;
  --tb-surface: #ffffff;
  --tb-panel: #f7fafb;
  --tb-panel-strong: #edf4f3;
  --tb-teal: #2f6f73;
  --tb-teal-dark: #214f52;
  --tb-rust: #ad6d4c;
  --tb-gold: #c6923a;
  --tb-blue: #315f86;
  --tb-shadow: 0 18px 54px rgba(17, 24, 39, 0.09);
  --tb-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.page:not(.static-page) {
  background:
    linear-gradient(180deg, #f7fafb 0%, #eef5f4 48%, #f8faf9 100%) !important;
  color: var(--tb-ink) !important;
}

.page:not(.static-page) > .layout {
  width: min(calc(100% - 32px), 1320px) !important;
  gap: 18px !important;
  align-items: start !important;
}

.page:not(.static-page) .content {
  min-width: 0 !important;
}

.page:not(.static-page) .sidebar {
  border: 1px solid rgba(200, 213, 221, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: var(--tb-shadow-soft) !important;
  backdrop-filter: blur(18px) !important;
}

.page:not(.static-page) .tool-panel {
  border: 1px solid rgba(200, 213, 221, 0.95) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.98)) !important;
  box-shadow: var(--tb-shadow) !important;
}

.page:not(.static-page) .tool-panel.active {
  padding: clamp(18px, 2.4vw, 30px) !important;
}

.page:not(.static-page) .tool-panel > h2 {
  max-width: 980px !important;
  margin-bottom: 8px !important;
  color: var(--tb-ink) !important;
  font-size: clamp(30px, 3.2vw, 48px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .tool-panel .description {
  max-width: 920px !important;
  margin: 0 0 18px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(200, 213, 221, 0.8) !important;
  border-radius: 14px !important;
  background: #f6faf9 !important;
  color: var(--tb-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.page:not(.static-page) .tool-panel .control-row,
.page:not(.static-page) .tool-panel .option-grid,
.page:not(.static-page) .tool-panel .results,
.page:not(.static-page) .tool-panel .stat,
.page:not(.static-page) .tool-panel .file-drop {
  border-color: rgba(200, 213, 221, 0.82) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: none !important;
}

.page:not(.static-page) .tool-panel label {
  color: #2b3945 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .tool-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]),
.page:not(.static-page) .tool-panel textarea,
.page:not(.static-page) .tool-panel select {
  min-height: 46px !important;
  border: 1px solid rgba(180, 196, 205, 0.95) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--tb-ink) !important;
  box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.03) !important;
}

.page:not(.static-page) .tool-panel input:focus,
.page:not(.static-page) .tool-panel textarea:focus,
.page:not(.static-page) .tool-panel select:focus {
  border-color: rgba(47, 111, 115, 0.78) !important;
  box-shadow: 0 0 0 4px rgba(47, 111, 115, 0.14) !important;
}

.page:not(.static-page) .tool-panel .actions {
  gap: 10px !important;
}

.page:not(.static-page) .tool-panel .actions .primary,
.page:not(.static-page) .tool-panel .actions .secondary,
.page:not(.static-page) .tool-panel button.primary,
.page:not(.static-page) .tool-panel button.secondary {
  min-height: 44px !important;
  border-radius: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .tool-panel .actions .primary,
.page:not(.static-page) .tool-panel button.primary {
  border-color: var(--tb-teal-dark) !important;
  background: linear-gradient(135deg, var(--tb-teal-dark), var(--tb-teal)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(47, 111, 115, 0.2) !important;
}

.page:not(.static-page) .tool-panel .actions .secondary,
.page:not(.static-page) .tool-panel button.secondary {
  border-color: rgba(49, 95, 134, 0.28) !important;
  background: #f5f9fb !important;
  color: var(--tb-blue) !important;
}

.static-main,
.tool-page-main {
  width: min(calc(100% - 32px), 1220px) !important;
  gap: 18px !important;
}

.tool-detail-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.tool-detail-main .static-breadcrumb {
  order: 1 !important;
}

.tool-detail-main .tool-detail-head {
  order: 2 !important;
}

.tool-detail-main .tool-summary-strip {
  order: 3 !important;
}

.tool-detail-main .tool-live-panel-primary {
  order: 4 !important;
}

.tool-detail-main .tool-detail-divider {
  order: 5 !important;
}

.tool-detail-main .tool-info-grid {
  order: 6 !important;
}

.tool-detail-main .ad-slot {
  order: 7 !important;
}

.tool-detail-main .related-tools {
  order: 8 !important;
}

.tool-detail-main [data-static-section="faq"] {
  order: 9 !important;
}

.tool-detail-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(18px, 3vw, 34px) !important;
  align-items: end !important;
  overflow: hidden !important;
  border: 1px solid rgba(200, 213, 221, 0.9) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 245, 0.95)),
    linear-gradient(90deg, rgba(47, 111, 115, 0.1), rgba(173, 109, 76, 0.09)) !important;
  box-shadow: var(--tb-shadow) !important;
}

.tool-detail-head::after {
  display: none !important;
}

.tool-detail-head h1 {
  max-width: 880px !important;
  color: var(--tb-ink) !important;
  font-size: clamp(38px, 5vw, 68px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.tool-detail-head .subtitle {
  max-width: 780px !important;
  color: var(--tb-muted) !important;
  font-size: clamp(16px, 1.4vw, 19px) !important;
}

.tool-summary-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.tool-summary-strip span {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(200, 213, 221, 0.86) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--tb-shadow-soft) !important;
  color: var(--tb-muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.tool-summary-strip strong {
  color: var(--tb-teal-dark) !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.tool-console-panel {
  overflow: hidden !important;
  border: 1px solid rgba(200, 213, 221, 0.96) !important;
  border-radius: 20px !important;
  background: var(--tb-surface) !important;
  box-shadow: var(--tb-shadow) !important;
}

.tool-console-panel .section-head {
  margin: 0 !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(200, 213, 221, 0.82) !important;
  background: #ffffff !important;
}

.tool-console-panel .section-head p {
  color: var(--tb-teal) !important;
}

.tool-live-frame {
  width: 100% !important;
  height: clamp(560px, 70dvh, 760px) !important;
  min-height: 560px !important;
  border: 0 !important;
  background: #ffffff !important;
}

.tool-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.tool-info-grid .static-panel {
  min-width: 0 !important;
  padding: 22px !important;
  border: 1px solid rgba(200, 213, 221, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--tb-shadow-soft) !important;
}

.tool-info-grid [data-static-section="process"] {
  grid-column: 1 / -1 !important;
}

.static-panel .section-head h2,
.prose-panel h2 {
  color: var(--tb-ink) !important;
  letter-spacing: 0 !important;
}

.check-list li::marker {
  color: var(--tb-teal) !important;
}

.mega-live-section,
.mega-planned-section {
  border: 1px solid rgba(200, 213, 221, 0.9) !important;
  border-radius: 20px !important;
  box-shadow: var(--tb-shadow-soft) !important;
}

.mega-live-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 247, 0.98)) !important;
}

.mega-planned-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 244, 0.98)) !important;
}

.mega-live-section .section-head p {
  color: var(--tb-teal) !important;
}

.mega-planned-section .section-head p {
  color: var(--tb-rust) !important;
}

.mega-grid .tool-card-link {
  border-color: rgba(200, 213, 221, 0.86) !important;
  background: #ffffff !important;
}

.mega-live-section .mega-status.is-live {
  background: rgba(47, 111, 115, 0.12) !important;
  color: var(--tb-teal-dark) !important;
}

.mega-planned-section .mega-status.is-planned {
  background: rgba(173, 109, 76, 0.12) !important;
  color: #8e5637 !important;
}

.embed-mode .tool-process-note {
  display: none !important;
}

.embed-mode .page:not(.static-page),
.embed-mode .layout,
.embed-mode .content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.embed-mode .tool-panel.active {
  min-height: auto !important;
  padding: clamp(14px, 2.4vw, 22px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

.embed-mode .tool-panel.active > h2 {
  font-size: clamp(25px, 4vw, 36px) !important;
  line-height: 1.08 !important;
}

.embed-mode .tool-panel .description {
  margin-bottom: 14px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
}

@media (max-width: 980px) {
  .page:not(.static-page) > .layout {
    width: min(calc(100% - 24px), 760px) !important;
    grid-template-columns: 1fr !important;
  }

  .tool-detail-head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

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

@media (max-width: 760px) {
  .static-main,
  .tool-page-main {
    width: min(calc(100% - 18px), 720px) !important;
    gap: 14px !important;
  }

  .tool-detail-head {
    padding: 22px !important;
    border-radius: 18px !important;
  }

  .tool-detail-head h1 {
    font-size: clamp(31px, 9vw, 44px) !important;
    line-height: 1.08 !important;
  }

  .tool-summary-strip,
  .tool-info-grid {
    grid-template-columns: 1fr !important;
  }

  .tool-info-grid [data-static-section="process"] {
    grid-column: auto !important;
  }

  .tool-live-frame {
    height: clamp(520px, 72dvh, 660px) !important;
    min-height: 520px !important;
  }

  .page:not(.static-page) .tool-panel.active {
    padding: 16px !important;
  }

  .page:not(.static-page) .tool-panel > h2 {
    font-size: clamp(28px, 9vw, 40px) !important;
  }
}

@media (max-width: 480px) {
  .page:not(.static-page) > .layout,
  .static-main,
  .tool-page-main {
    width: calc(100% - 14px) !important;
  }

  .tool-detail-head,
  .tool-info-grid .static-panel,
  .tool-console-panel,
  .page:not(.static-page) .tool-panel {
    border-radius: 14px !important;
  }

  .tool-summary-strip span {
    padding: 12px 13px !important;
  }

  .tool-live-frame {
    height: 560px !important;
    min-height: 500px !important;
  }
}

/* Final responsive polish after screenshot review */
.tool-page-main .tool-live-frame,
.tool-live-frame {
  height: clamp(480px, 58dvh, 620px) !important;
  min-height: 480px !important;
}

@media (max-width: 760px) {
  .site-header-inner {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    padding-inline: 0 !important;
  }

  .site-search-button {
    display: none !important;
  }

  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: 540px !important;
    min-height: 500px !important;
  }
}

@media (max-width: 420px) {
  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: 520px !important;
  }
}

/* Final mobile overflow and compact frame correction */
.tool-page-main .tool-live-frame,
.tool-live-frame {
  height: clamp(440px, 52dvh, 540px) !important;
  min-height: 440px !important;
}

@media (max-width: 760px) {
  .static-hero,
  .mega-hero,
  .tool-detail-head {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .static-hero h1,
  .mega-hero h1 {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
    font-size: clamp(32px, 8.8vw, 42px) !important;
    line-height: 1.12 !important;
  }

  .mega-stat-row {
    grid-template-columns: 1fr !important;
  }

  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: 520px !important;
    min-height: 460px !important;
  }
}

@media (max-width: 420px) {
  .static-hero h1,
  .mega-hero h1 {
    font-size: 34px !important;
  }
}

/* Full category navigation and static page overflow repair */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.site-header {
  z-index: 20 !important;
}

.site-header-inner {
  width: min(calc(100% - 32px), 1320px) !important;
  gap: 18px !important;
}

.site-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.site-nav a {
  white-space: nowrap !important;
}

.site-category-rail {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  width: min(calc(100% - 32px), 1320px) !important;
  margin: 0 auto !important;
  padding: 0 0 12px !important;
  border-top: 1px solid rgba(200, 213, 221, 0.58) !important;
  background: transparent !important;
}

.site-category-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(200, 213, 221, 0.9) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.site-category-link:hover,
.site-category-link:focus-visible {
  border-color: rgba(47, 111, 115, 0.45) !important;
  background: rgba(239, 247, 246, 0.96) !important;
  color: var(--tb-teal-dark, #214f52) !important;
}

.static-hero {
  box-sizing: border-box !important;
  width: min(calc(100% - 32px), 1320px) !important;
  max-width: min(calc(100% - 32px), 1320px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: hidden !important;
}

.static-hero h1,
.static-hero .subtitle {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.category-overview-panel {
  order: 0 !important;
}

.category-overview-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.category-overview-link {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(200, 213, 221, 0.9) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--tb-ink, #111827) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.category-overview-link strong {
  color: var(--tb-ink, #111827) !important;
  font-size: 17px !important;
}

.category-overview-link span {
  color: var(--tb-muted, #5f6b78) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.category-overview-link.is-active {
  border-color: rgba(47, 111, 115, 0.5) !important;
  background: linear-gradient(180deg, #ffffff, #eff8f7) !important;
}

.category-overview-link.is-active strong {
  color: var(--tb-teal-dark, #214f52) !important;
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto !important;
  }

  .site-category-rail {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 12px !important;
    scrollbar-width: thin !important;
  }

  .site-category-link {
    flex: 0 0 auto !important;
  }

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

@media (max-width: 760px) {
  .site-header {
    overflow: hidden !important;
  }

  .site-header-inner,
  .site-category-rail,
  .static-hero,
  .static-main,
  .tool-page-main {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
  }

  .site-header-inner {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    min-height: auto !important;
    padding: 10px 0 8px !important;
  }

  .site-nav {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .site-category-rail {
    margin-top: 0 !important;
    border-top: 0 !important;
  }

  .static-hero {
    padding: 22px 16px !important;
  }

  .static-hero h1 {
    font-size: clamp(34px, 11vw, 44px) !important;
    line-height: 1.08 !important;
    word-break: keep-all !important;
  }

  .static-hero .subtitle {
    font-size: 15px !important;
    line-height: 1.72 !important;
    word-break: keep-all !important;
  }

  .static-hero .actions,
  .static-actions {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

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

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

/* Header category rail must sit below the main navigation, not beside it. */
.site-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: auto !important;
}

.site-header-inner {
  flex: 0 0 auto !important;
  min-height: 72px !important;
}

.site-category-rail {
  flex: 0 0 auto !important;
}

@media (max-width: 760px) {
  .site-header-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
  }

  .site-header {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .site-header-inner,
  .site-category-rail {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
  }

  .site-logo {
    flex: 0 0 auto !important;
  }

  .site-nav {
    flex: 1 1 100% !important;
    order: 2 !important;
  }

  .site-category-rail {
    order: 3 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    padding-bottom: 12px !important;
  }

  .site-category-link {
    flex: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    padding: 8px 9px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

/* Whole-site layout repair pass for the home app surface */
.page:not(.static-page) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.page:not(.static-page) .live-hero {
  min-height: auto !important;
  overflow: hidden !important;
}

.page:not(.static-page) .home-hero-copy {
  min-width: 0 !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 720px !important;
  font-size: clamp(58px, 6.4vw, 92px) !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
}

.page:not(.static-page) .home-hero-copy p,
.page:not(.static-page) .home-hero-copy strong {
  max-width: 620px !important;
}

.page:not(.static-page) .quick-tools,
.page:not(.static-page) .tool-directory,
.page:not(.static-page) .layout {
  box-sizing: border-box !important;
}

.page:not(.static-page) .quick-lists {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.page:not(.static-page) .matched-tools-block {
  grid-column: 1 / -1 !important;
}

@media (max-width: 980px) {
  .page:not(.static-page) .live-hero {
    display: block !important;
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .page:not(.static-page) .home-hero-bg,
  .page:not(.static-page) .hero-visual {
    display: none !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 680px !important;
    font-size: clamp(46px, 10vw, 72px) !important;
  }
}

@media (max-width: 760px) {
  .page:not(.static-page) .live-hero {
    width: 100% !important;
    padding: 34px 14px 40px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(42px, 13vw, 54px) !important;
    line-height: 1.04 !important;
  }

  .page:not(.static-page) .hero-tool-search {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page:not(.static-page) .quick-tools,
  .page:not(.static-page) .tool-directory,
  .page:not(.static-page) .layout {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
  }

  .page:not(.static-page) .quick-tools-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .page:not(.static-page) .quick-tools-head .compact,
  .page:not(.static-page) .quick-tools-head button {
    width: 100% !important;
    justify-content: center !important;
  }

  .page:not(.static-page) .quick-tools .category-filter,
  .page:not(.static-page) .category-filter {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 8px !important;
  }

  .page:not(.static-page) .quick-tools .category-filter button,
  .page:not(.static-page) .category-filter button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .page:not(.static-page) .quick-lists {
    grid-template-columns: 1fr !important;
  }

  .page:not(.static-page) .layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .page:not(.static-page) .sidebar {
    width: 100% !important;
    max-height: none !important;
    position: static !important;
  }

  .page:not(.static-page) .tool-panel.active {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 430px) {
  .page:not(.static-page) .home-hero-copy h1 {
    font-size: 42px !important;
  }

  .page:not(.static-page) .quick-tools .category-filter,
  .page:not(.static-page) .category-filter {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Tool detail iframe comfort pass */
.tool-page-main .tool-live-frame,
.tool-live-frame {
  height: clamp(600px, 74dvh, 820px) !important;
  min-height: 600px !important;
}

@media (max-width: 760px) {
  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: 760px !important;
    min-height: 680px !important;
  }

  .embed-mode .tool-panel.active {
    padding: 12px !important;
  }
}

/* V3 hero visual balance: restore desktop visual panel, keep mobile compact */
@media (min-width: 981px) {
  .page:not(.static-page) .live-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr) !important;
    align-items: center !important;
    gap: clamp(28px, 4vw, 58px) !important;
  }

  .page:not(.static-page) .home-hero-illustration {
    display: block !important;
    position: relative !important;
    min-height: 380px !important;
    border: 1px solid rgba(214, 225, 231, 0.72) !important;
    border-radius: 24px !important;
    background:
      linear-gradient(135deg, rgba(238, 245, 244, 0.86), rgba(255, 255, 255, 0.66)),
      radial-gradient(circle at 18% 18%, rgba(36, 107, 111, 0.13), transparent 34%),
      radial-gradient(circle at 84% 76%, rgba(182, 120, 89, 0.16), transparent 38%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  }

  .page:not(.static-page) .pdf-mini-card,
  .page:not(.static-page) .home-hero-pdf-merged-card,
  .page:not(.static-page) .home-hero-status {
    border-color: rgba(214, 225, 231, 0.84) !important;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1) !important;
  }

  .page:not(.static-page) .pdf-mini-card {
    width: 156px !important;
    padding: 15px !important;
  }

  .page:not(.static-page) .pdf-mini-a {
    top: 24px !important;
    left: 24px !important;
  }

  .page:not(.static-page) .pdf-mini-b {
    top: 116px !important;
    right: 24px !important;
  }

  .page:not(.static-page) .pdf-mini-c {
    bottom: 30px !important;
    left: 50px !important;
  }

  .page:not(.static-page) .home-hero-status {
    top: 28px !important;
    right: 28px !important;
  }

  .page:not(.static-page) .home-hero-pdf-merged-card {
    right: 34px !important;
    bottom: 48px !important;
    width: min(78%, 286px) !important;
    padding: 22px !important;
  }
}

@media (max-width: 980px) {
  .page:not(.static-page) .home-hero-illustration {
    display: none !important;
  }
}

/* ToolBada V3 redesign layer: compact, utility-first, no layout drift */
:root {
  --v3-bg: #f5f7f8;
  --v3-surface: #ffffff;
  --v3-soft: #eef5f4;
  --v3-ink: #111827;
  --v3-muted: #5f6c76;
  --v3-line: #d6e1e7;
  --v3-line-soft: #e7edf1;
  --v3-accent: #246b6f;
  --v3-accent-2: #b67859;
  --v3-blue: #315f86;
  --v3-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  --v3-shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
}

body {
  background: var(--v3-bg) !important;
}

.site-header {
  border-bottom: 1px solid rgba(214, 225, 231, 0.9) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 22px rgba(17, 24, 39, 0.04) !important;
  backdrop-filter: blur(18px) !important;
}

.site-header-inner {
  width: min(calc(100% - 32px), 1320px) !important;
  min-height: 62px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
}

.site-logo-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f5e3d8, #dfece8) !important;
}

.site-logo-text {
  font-size: 21px !important;
}

.site-nav {
  justify-content: center !important;
  gap: 18px !important;
  overflow: visible !important;
}

.site-nav a {
  color: #263240 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.site-category-rail {
  width: min(calc(100% - 32px), 1320px) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 0 10px !important;
  border-top: 0 !important;
}

.site-category-link {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-color: rgba(49, 95, 134, 0.22) !important;
  border-radius: 999px !important;
  background: #f8fbfc !important;
  color: #2d4154 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.site-search-button {
  min-height: 38px !important;
  border-color: rgba(214, 225, 231, 0.95) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.page:not(.static-page) {
  background: linear-gradient(180deg, #f7fafb 0%, #eff6f5 62%, #f8faf9 100%) !important;
}

.page:not(.static-page) .live-hero {
  width: min(calc(100% - 32px), 1320px) !important;
  min-height: 520px !important;
  margin: 22px auto 0 !important;
  padding: clamp(34px, 5vw, 66px) !important;
  border: 1px solid rgba(214, 225, 231, 0.92) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.6) 52%, rgba(255, 255, 255, 0.1)),
    var(--v3-surface) !important;
  box-shadow: var(--v3-shadow) !important;
}

.page:not(.static-page) .home-hero-bg {
  inset: 0 !important;
  opacity: 0.82 !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 620px !important;
  font-size: clamp(52px, 5.6vw, 78px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .home-hero-copy .eyebrow,
.page:not(.static-page) .hero-lead,
.page:not(.static-page) .hero-desc {
  max-width: 610px !important;
}

.page:not(.static-page) .hero-desc {
  color: var(--v3-muted) !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.page:not(.static-page) .home-hero-actions {
  gap: 10px !important;
}

.page:not(.static-page) .home-hero-cta-primary,
.page:not(.static-page) .home-hero-cta-secondary {
  min-height: 48px !important;
  border-radius: 13px !important;
}

.page:not(.static-page) .hero-tool-search {
  max-width: 560px !important;
  border-radius: 14px !important;
  box-shadow: var(--v3-shadow-soft) !important;
}

.page:not(.static-page) .quick-tools,
.page:not(.static-page) .tool-directory,
.page:not(.static-page) .layout {
  width: min(calc(100% - 32px), 1320px) !important;
  max-width: 1320px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.page:not(.static-page) .quick-tools {
  margin-top: 28px !important;
  padding: 28px !important;
  border: 1px solid rgba(214, 225, 231, 0.9) !important;
  border-radius: 22px !important;
  background: var(--v3-surface) !important;
  box-shadow: var(--v3-shadow-soft) !important;
}

.page:not(.static-page) .quick-tools-head h2,
.section-head h2,
.tool-panel-title,
.page:not(.static-page) .tool-panel > h2 {
  color: var(--v3-ink) !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .quick-tools-head h2 {
  font-size: clamp(30px, 3vw, 44px) !important;
}

.page:not(.static-page) .category-filter {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid rgba(214, 225, 231, 0.82) !important;
  border-radius: 16px !important;
  background: #f8fafb !important;
  overflow: visible !important;
}

.page:not(.static-page) .category-filter button {
  flex: 0 0 auto !important;
  min-width: 78px !important;
  min-height: 38px !important;
  border-radius: 11px !important;
  white-space: nowrap !important;
}

.page:not(.static-page) .category-filter button.active {
  background: var(--v3-accent) !important;
  color: #ffffff !important;
}

.page:not(.static-page) .quick-lists {
  margin-top: 18px !important;
}

.page:not(.static-page) .quick-lists > div {
  border-radius: 16px !important;
  background: #ffffff !important;
}

.page:not(.static-page) .tool-directory {
  margin-top: 26px !important;
  padding: 28px !important;
  border: 1px solid rgba(214, 225, 231, 0.9) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: var(--v3-shadow-soft) !important;
}

.page:not(.static-page) .tool-card-grid {
  gap: 14px !important;
}

.page:not(.static-page) .tool-card-link {
  border-color: rgba(214, 225, 231, 0.94) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.page:not(.static-page) .layout {
  margin-top: 34px !important;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) !important;
  gap: 20px !important;
}

.page:not(.static-page) .sidebar {
  border-radius: 20px !important;
}

.page:not(.static-page) .tool-panel {
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: var(--v3-shadow-soft) !important;
}

.page:not(.static-page) .tool-panel.active {
  padding: clamp(18px, 2vw, 28px) !important;
}

.page:not(.static-page) .tool-panel > h2,
.page:not(.static-page) .tool-panel-title {
  font-size: clamp(32px, 3.6vw, 56px) !important;
  line-height: 1.06 !important;
}

.static-hero,
.tool-detail-head,
.static-panel {
  border-color: rgba(214, 225, 231, 0.92) !important;
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: auto 1fr !important;
  }

  .site-search-button {
    display: none !important;
  }

  .page:not(.static-page) .live-hero {
    display: block !important;
    min-height: auto !important;
  }
}

@media (max-width: 760px) {
  .site-header-inner,
  .site-category-rail {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }

  .site-header-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    min-height: auto !important;
    padding: 10px 0 8px !important;
  }

  .site-nav {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .site-category-rail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 0 0 10px !important;
  }

  .site-category-link {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .page:not(.static-page) .live-hero,
  .page:not(.static-page) .quick-tools,
  .page:not(.static-page) .tool-directory,
  .page:not(.static-page) .layout,
  .static-hero,
  .static-main,
  .tool-page-main {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
  }

  .page:not(.static-page) .live-hero {
    margin-top: 12px !important;
    padding: 28px 16px !important;
    border-radius: 20px !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px) !important;
    line-height: 1.04 !important;
  }

  .page:not(.static-page) .hero-desc {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .page:not(.static-page) .home-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .page:not(.static-page) .quick-tools,
  .page:not(.static-page) .tool-directory {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .page:not(.static-page) .quick-tools-head {
    grid-template-columns: 1fr !important;
  }

  .page:not(.static-page) .category-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    display: grid !important;
    gap: 8px !important;
  }

  .page:not(.static-page) .category-filter button {
    min-width: 0 !important;
    width: 100% !important;
  }

  .page:not(.static-page) .layout {
    grid-template-columns: 1fr !important;
  }

  .page:not(.static-page) .tool-panel > h2,
  .page:not(.static-page) .tool-panel-title {
    font-size: clamp(30px, 9vw, 40px) !important;
  }
}

/* Final static info hero spacing repair */
.static-page > .static-hero:not(.mega-hero) {
  box-sizing: border-box !important;
  display: grid !important;
  align-content: start !important;
  gap: clamp(10px, 1.1vw, 14px) !important;
  width: min(calc(100% - 48px), 1320px) !important;
  max-width: min(calc(100% - 48px), 1320px) !important;
  min-height: 0 !important;
  margin: 14px auto 10px !important;
  padding: clamp(26px, 3vw, 42px) clamp(22px, 4vw, 52px) !important;
  border-radius: 22px !important;
}

.static-page > .static-hero:not(.mega-hero)::after {
  right: clamp(22px, 4vw, 56px) !important;
  bottom: clamp(18px, 2.8vw, 32px) !important;
  width: clamp(92px, 13vw, 160px) !important;
  opacity: 0.34 !important;
}

.static-page > .static-hero:not(.mega-hero) .brand-home {
  display: none !important;
}

.static-page > .static-hero:not(.mega-hero) .eyebrow {
  width: max-content !important;
  margin: 0 !important;
}

.static-page > .static-hero:not(.mega-hero) h1 {
  max-width: min(100%, 780px) !important;
  margin: 0 !important;
  font-size: clamp(42px, 5vw, 60px) !important;
  line-height: 1.05 !important;
}

.static-page > .static-hero:not(.mega-hero) .subtitle {
  max-width: min(100%, 760px) !important;
  margin: 0 !important;
  font-size: clamp(15px, 1.55vw, 18px) !important;
  line-height: 1.65 !important;
}

.static-page > .static-hero:not(.mega-hero) .static-updated {
  margin: 4px 0 0 !important;
  color: rgba(73, 86, 96, 0.82) !important;
  font-weight: 700 !important;
}

.static-page > .static-main {
  margin-top: 10px !important;
}

@media (max-width: 760px) {
  .static-page > .static-hero:not(.mega-hero) {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-top: 10px !important;
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }

  .static-page > .static-hero:not(.mega-hero)::after {
    display: none !important;
  }

  .static-page > .static-hero:not(.mega-hero) h1 {
    font-size: clamp(32px, 9.4vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .static-page > .static-hero:not(.mega-hero) .subtitle {
    display: block !important;
    justify-self: start !important;
    box-sizing: border-box !important;
    width: calc(100vw - 72px) !important;
    max-width: calc(100vw - 72px) !important;
    inline-size: calc(100vw - 72px) !important;
    max-inline-size: calc(100vw - 72px) !important;
    min-width: 0 !important;
    font-size: 13.8px !important;
    line-height: 1.72 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: auto !important;
  }
}

/* Final mega category hero spacing repair */
.static-page > .static-hero.mega-hero {
  box-sizing: border-box !important;
  display: grid !important;
  align-content: start !important;
  gap: clamp(12px, 1.2vw, 16px) !important;
  width: min(calc(100% - 48px), 1320px) !important;
  max-width: min(calc(100% - 48px), 1320px) !important;
  min-height: 0 !important;
  margin: 14px auto 10px !important;
  padding: clamp(28px, 3.2vw, 46px) clamp(22px, 4vw, 52px) !important;
  border-radius: 22px !important;
}

.static-page > .static-hero.mega-hero::after {
  right: clamp(22px, 4vw, 60px) !important;
  bottom: clamp(18px, 3vw, 36px) !important;
  width: clamp(96px, 14vw, 170px) !important;
  opacity: 0.28 !important;
}

.static-page > .static-hero.mega-hero .brand-home {
  display: none !important;
}

.static-page > .static-hero.mega-hero .eyebrow,
.static-page > .static-hero.mega-hero h1,
.static-page > .static-hero.mega-hero .subtitle {
  margin: 0 !important;
}

.static-page > .static-hero.mega-hero h1 {
  max-width: min(100%, 860px) !important;
  font-size: clamp(44px, 5.2vw, 64px) !important;
  line-height: 1.04 !important;
}

.static-page > .static-hero.mega-hero .subtitle {
  max-width: min(100%, 840px) !important;
  font-size: clamp(15px, 1.55vw, 18px) !important;
  line-height: 1.64 !important;
}

.static-page > .static-hero.mega-hero .mega-stat-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 10px !important;
  width: min(100%, 780px) !important;
  max-width: 100% !important;
  margin: 4px 0 0 !important;
}

.static-page > .static-hero.mega-hero .mega-stat-row span {
  min-height: 74px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
}

.static-page > .static-hero.mega-hero .mega-stat-row strong {
  font-size: clamp(25px, 2.7vw, 34px) !important;
}

.static-page > .static-hero.mega-hero .static-actions {
  margin-top: 2px !important;
}

@media (max-width: 760px) {
  .static-page > .static-hero.mega-hero {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-top: 10px !important;
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }

  .static-page > .static-hero.mega-hero::after {
    display: none !important;
  }

  .static-page > .static-hero.mega-hero h1 {
    max-width: calc(100vw - 56px) !important;
    font-size: clamp(30px, 8.6vw, 36px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .static-page > .static-hero.mega-hero .subtitle {
    display: block !important;
    box-sizing: border-box !important;
    width: min(calc(100vw - 72px), 31ch) !important;
    max-width: min(calc(100vw - 72px), 31ch) !important;
    inline-size: min(calc(100vw - 72px), 31ch) !important;
    max-inline-size: min(calc(100vw - 72px), 31ch) !important;
    min-width: 0 !important;
    font-size: 13.8px !important;
    line-height: 1.72 !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .static-page > .static-hero.mega-hero .mega-stat-row {
    box-sizing: border-box !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: calc(100vw - 56px) !important;
    max-width: calc(100vw - 56px) !important;
    inline-size: calc(100vw - 56px) !important;
    max-inline-size: calc(100vw - 56px) !important;
    justify-self: start !important;
    overflow: hidden !important;
  }

  .static-page > .static-hero.mega-hero .mega-stat-row span {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 64px !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    overflow: hidden !important;
  }

  .static-page > .static-hero.mega-hero .mega-stat-row strong {
    font-size: 24px !important;
  }
}

@media (max-width: 420px) {
  .static-page > .static-hero.mega-hero .mega-stat-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .static-page > .static-hero.mega-hero .mega-stat-row {
    grid-template-columns: 1fr !important;
    width: min(100%, 360px) !important;
    max-width: min(100%, 360px) !important;
    inline-size: min(100%, 360px) !important;
    max-inline-size: min(100%, 360px) !important;
  }
}

/* Final home tool runner responsive repair */
.page:not(.static-page) #tools.layout {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.page:not(.static-page) #tools .sidebar,
.page:not(.static-page) #tools .content,
.page:not(.static-page) #tools .tool-panel,
.page:not(.static-page) #tools .sidebar .card {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.page:not(.static-page) #tools .tool-nav-item {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

@media (max-width: 1180px) {
  .page:not(.static-page) #tools.layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: min(calc(100% - 32px), 1320px) !important;
    max-width: min(calc(100% - 32px), 1320px) !important;
  }

  .page:not(.static-page) #tools .sidebar {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .page:not(.static-page) #tools .sidebar .card {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 16px !important;
  }

  .page:not(.static-page) #tools .tool-intro {
    grid-column: 1 / -1 !important;
    margin: 8px 0 2px !important;
    padding: 0 0 8px !important;
  }

  .page:not(.static-page) #tools .tool-intro-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .page:not(.static-page) #tools .tool-nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(214, 225, 231, 0.9) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #263240 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  .page:not(.static-page) #tools .tool-nav-item.active {
    border-color: rgba(36, 107, 111, 0.42) !important;
    background: #eff8f7 !important;
    color: #214f52 !important;
    box-shadow: none !important;
  }

  .page:not(.static-page) #tools .content {
    width: 100% !important;
  }

  .page:not(.static-page) #tools .tool-panel.active {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page:not(.static-page) .tool-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .page:not(.static-page) #tools.layout {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    gap: 14px !important;
  }

  .page:not(.static-page) #tools .sidebar .card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 14px !important;
  }

  .page:not(.static-page) #tools .tool-intro {
    grid-column: 1 / -1 !important;
  }

  .page:not(.static-page) #tools .tool-nav-item {
    min-height: 38px !important;
    padding: 8px 9px !important;
    font-size: 12px !important;
  }

  .page:not(.static-page) #tools .tool-panel.active {
    padding: 16px !important;
    overflow-x: hidden !important;
  }

  .page:not(.static-page) .tool-card-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  .page:not(.static-page) #tools .sidebar .card {
    grid-template-columns: 1fr !important;
  }
}

/* Final home tool form controls responsive repair */
.page:not(.static-page) #tools .mode-selector,
.page:not(.static-page) #tools .control-row,
.page:not(.static-page) #tools .color-row,
.page:not(.static-page) #tools .file-drop,
.page:not(.static-page) #tools .checkbox,
.page:not(.static-page) #tools .actions {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.page:not(.static-page) #tools .radio-pill,
.page:not(.static-page) #tools .checkbox {
  width: 100% !important;
  min-width: 0 !important;
}

.page:not(.static-page) #tools .radio-pill span,
.page:not(.static-page) #tools .checkbox span,
.page:not(.static-page) #tools label span {
  min-width: 0 !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.page:not(.static-page) #tools .tool-panel *,
.page:not(.static-page) #tools .tool-panel *::before,
.page:not(.static-page) #tools .tool-panel *::after {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.page:not(.static-page) #tools .tool-panel p,
.page:not(.static-page) #tools .tool-panel li,
.page:not(.static-page) #tools .tool-panel dd,
.page:not(.static-page) #tools .tool-panel td,
.page:not(.static-page) #tools .tool-panel th,
.page:not(.static-page) #tools .tool-panel small,
.page:not(.static-page) #tools .tool-panel strong,
.page:not(.static-page) #tools .tool-panel span {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

.page:not(.static-page) #tools .radio-pill input[type="radio"],
.page:not(.static-page) #tools .checkbox input[type="checkbox"] {
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

.page:not(.static-page) #tools .description,
.page:not(.static-page) #tools .tool-process-note,
.page:not(.static-page) #tools .tool-process-note-head,
.page:not(.static-page) #tools .tool-process-note-list {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-inline-size: 100% !important;
  overflow: hidden !important;
}

.page:not(.static-page) #tools .tool-process-note {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.page:not(.static-page) #tools .tool-process-note-head,
.page:not(.static-page) #tools .tool-process-note p,
.page:not(.static-page) #tools .tool-process-note small,
.page:not(.static-page) #tools .tool-process-note-list {
  grid-column: 1 / -1 !important;
}

.page:not(.static-page) #tools .description,
.page:not(.static-page) #tools .tool-process-note p,
.page:not(.static-page) #tools .tool-process-note small,
.page:not(.static-page) #tools .tool-process-note-list,
.page:not(.static-page) #tools .tool-process-note-list li {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.page:not(.static-page) #tools .description {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media (max-width: 760px) {
  .page:not(.static-page) #tools,
  .page:not(.static-page) #tools .content,
  .page:not(.static-page) #tools .tool-panel.active {
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }

  .page:not(.static-page) #tools .tool-panel.active > :not(script) {
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }

  .page:not(.static-page) #tools .mode-selector,
  .page:not(.static-page) #tools .control-row,
  .page:not(.static-page) #tools .color-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  .page:not(.static-page) #tools .mode-selector > label,
  .page:not(.static-page) #tools .control-row > label,
  .page:not(.static-page) #tools .color-row > label {
    flex: initial !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page:not(.static-page) #tools .radio-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 9px 10px !important;
    text-align: left !important;
  }

  .page:not(.static-page) #tools .radio-pill span {
    flex: 1 1 auto !important;
    text-align: left !important;
  }

  .page:not(.static-page) #tools .checkbox {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .page:not(.static-page) #tools .checkbox span {
    flex: 1 1 auto !important;
    text-align: left !important;
  }

  .page:not(.static-page) #tools .file-drop {
    padding: 18px 12px !important;
  }

  .page:not(.static-page) #tools .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }

  .page:not(.static-page) #tools .actions .primary,
  .page:not(.static-page) #tools .actions .secondary,
  .page:not(.static-page) #tools button.primary,
  .page:not(.static-page) #tools button.secondary {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }
}

/* Inline runtime on static tool detail pages: no iframe, no inner scroll frame. */
.static-page .tool-inline-runtime {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.static-page .tool-inline-loading {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(214, 225, 231, 0.92);
  border-radius: 14px;
  background: #f7fbfa;
  color: var(--v3-ink, #101827);
}

.static-page .tool-inline-loading strong {
  font-size: 16px;
  line-height: 1.45;
}

.static-page .tool-inline-loading span {
  color: var(--v3-muted, #607080);
  font-size: 14px;
  line-height: 1.6;
}

.static-page .tool-inline-runtime #tools.layout,
.static-page .tool-inline-runtime .tool-inline-runtime-shell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.static-page .tool-inline-runtime .content {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.static-page .tool-inline-runtime [data-tool-panel] {
  display: none !important;
}

.static-page .tool-inline-runtime [data-tool-panel].active {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}

.static-page .tool-inline-runtime .tool-panel.active {
  box-shadow: none !important;
}

.static-page .tool-inline-runtime .tool-panel.active,
.static-page .tool-inline-runtime .tool-panel.active > *,
.static-page .tool-inline-runtime .mode-selector,
.static-page .tool-inline-runtime .control-row,
.static-page .tool-inline-runtime .file-drop,
.static-page .tool-inline-runtime .results,
.static-page .tool-inline-runtime .output-preview {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

@media (max-width: 760px) {
  .static-page .tool-inline-runtime .tool-panel.active {
    padding: 14px !important;
  }
}

/* Final expanded tool catalog usability tuning */
.page:not(.static-page) .home-hero-copy h1 {
  max-width: min(100%, 760px) !important;
  font-size: clamp(38px, 4.4vw, 62px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word !important;
  text-wrap: balance;
}

.page:not(.static-page) .tool-panel > h2,
.page:not(.static-page) .tool-panel-title {
  font-size: clamp(23px, 2.1vw, 34px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) #tools .description,
.page:not(.static-page) #tools .status,
.page:not(.static-page) #tools label,
.page:not(.static-page) #tools .tool-process-note {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

.page:not(.static-page) #tools .extension-tool-nav-item {
  font-size: 12.75px !important;
  line-height: 1.35 !important;
}

.page:not(.static-page) #tools .extension-tool-grid,
.page:not(.static-page) #tools .extension-control-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: 12px !important;
}

.page:not(.static-page) #tools input,
.page:not(.static-page) #tools select,
.page:not(.static-page) #tools textarea {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.page:not(.static-page) #tools textarea,
.page:not(.static-page) #tools .extension-output {
  resize: vertical !important;
  overflow: auto !important;
}

.page:not(.static-page) #tools .extension-output {
  min-height: 190px !important;
}

.page:not(.static-page) #tools .extension-preview {
  max-height: 280px !important;
  overflow: auto !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.page:not(.static-page) #tools .extension-preview pre {
  font-size: 13px !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 1180px) {
  .page:not(.static-page) #tools .sidebar .card {
    max-height: min(44dvh, 420px) !important;
    overflow: auto !important;
    align-content: start !important;
    scrollbar-gutter: stable !important;
  }

  .page:not(.static-page) #tools .sidebar .card.is-collapsed {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none !important;
  }

  .site-category-rail {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-gutter: stable !important;
    -webkit-overflow-scrolling: touch;
  }

  .site-category-rail a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
  }

  .page:not(.static-page) .home-hero-copy h1 {
    max-width: min(100%, 342px) !important;
    font-size: clamp(32px, 9.2vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .page:not(.static-page) .tool-panel > h2,
  .page:not(.static-page) .tool-panel-title {
    font-size: clamp(21px, 6.2vw, 28px) !important;
    line-height: 1.18 !important;
  }

  .page:not(.static-page) #tools .sidebar .card {
    max-height: min(36dvh, 320px) !important;
    padding: 12px !important;
  }

  .page:not(.static-page) .category-filter {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
  }

  .page:not(.static-page) .category-filter button {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.25 !important;
  }

  .page:not(.static-page) #tools input,
  .page:not(.static-page) #tools select,
  .page:not(.static-page) #tools textarea {
    font-size: 16px !important;
  }
}

.page:not(.static-page) #tools .tool-panel.active {
  overflow: visible !important;
}

.page:not(.static-page) #tools pre,
.page:not(.static-page) #tools table,
.page:not(.static-page) #tools .result,
.page:not(.static-page) #tools .output-preview,
.page:not(.static-page) #tools .table-wrap,
.page:not(.static-page) #tools .extension-preview {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 430px) {
  .page:not(.static-page) #tools .sidebar .card {
    max-height: min(34dvh, 280px) !important;
  }
}

@media (max-width: 760px) {
  .tool-page-main .tool-live-frame,
  .tool-live-frame {
    height: min(72dvh, 640px) !important;
    min-height: 480px !important;
  }
}

/* Final accessibility and Korean text fitting guard */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #0f766e !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.18) !important;
}

.page:not(.static-page) .hero-desc,
.page:not(.static-page) .hero-lead,
.tool-detail-head .subtitle,
.static-hero .subtitle,
.static-panel p,
.prose-panel p,
.check-list li {
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

.result-item a,
.codeblock {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
  button,
  input,
  select,
  .button-link,
  .section-link,
  .text-button,
  .site-category-link,
  .tool-nav-item,
  .category-filter button,
  .tool-panel-copy,
  .command-palette-item,
  .related-tool-link,
  .category-overview-link {
    min-height: 44px !important;
  }

  textarea {
    min-height: 96px !important;
  }
}

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

/* ToolBada unified product polish: typography, buttons, cards, and SEO pathways. */
:root {
  --tb-page: #f7f8f6;
  --tb-surface: #ffffff;
  --tb-surface-subtle: #f2f5f1;
  --tb-ink: #101615;
  --tb-muted: #52605c;
  --tb-line: #dce5df;
  --tb-line-strong: #bdcbc3;
  --tb-primary: #0f766e;
  --tb-primary-hover: #0b5f59;
  --tb-accent: #b88728;
  --tb-danger: #b42318;
  --tb-radius: 8px;
  --tb-shadow: 0 12px 30px rgba(16, 22, 21, 0.08);
}

html {
  background: var(--tb-page) !important;
}

body {
  background: var(--tb-page) !important;
  color: var(--tb-ink) !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
}

.page,
.page:not(.static-page) {
  background: var(--tb-page) !important;
}

.site-header {
  min-height: 68px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(220, 229, 223, 0.9) !important;
  box-shadow: 0 8px 22px rgba(16, 22, 21, 0.04) !important;
}

.site-header-inner {
  width: min(calc(100% - 40px), 1320px) !important;
  gap: 18px !important;
}

.site-logo-icon,
.brand-mark {
  border-radius: var(--tb-radius) !important;
  background: var(--tb-surface-subtle) !important;
  color: var(--tb-primary) !important;
}

.site-logo-text {
  font-size: 20px !important;
  font-weight: 900 !important;
}

.site-nav {
  gap: 22px !important;
}

.site-nav a {
  color: #24312d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.site-category-rail {
  width: min(calc(100% - 40px), 1320px) !important;
  gap: 8px !important;
  padding: 9px 0 11px !important;
}

.site-category-link {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border-color: var(--tb-line) !important;
  background: #ffffff !important;
  color: #263733 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.site-category-link:hover,
.site-category-link:focus-visible {
  border-color: var(--tb-primary) !important;
  color: var(--tb-primary-hover) !important;
  background: #eff8f5 !important;
}

.site-search-button,
.home-hero-cta-primary,
.home-hero-cta-secondary,
.button-link,
.section-link,
.text-button,
.category-filter button,
.tool-panel button,
.tool-panel .tool-panel-copy,
.static-actions .button-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 10px 15px !important;
  border-radius: var(--tb-radius) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
}

.home-hero-cta-primary,
.button-link.primary,
.static-actions .button-link.primary,
.tool-panel button.primary,
#tools button.primary {
  border: 1px solid var(--tb-primary) !important;
  background: var(--tb-primary) !important;
  color: #ffffff !important;
}

.home-hero-cta-primary:hover,
.button-link.primary:hover,
.static-actions .button-link.primary:hover,
.tool-panel button.primary:hover,
#tools button.primary:hover {
  border-color: var(--tb-primary-hover) !important;
  background: var(--tb-primary-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.home-hero-cta-secondary,
.button-link.secondary,
.static-actions .button-link.secondary,
.tool-panel button.secondary,
#tools button.secondary,
.site-search-button,
.section-link,
.text-button,
.category-filter button {
  border: 1px solid var(--tb-line) !important;
  background: #ffffff !important;
  color: #263733 !important;
}

.home-hero-cta-secondary:hover,
.button-link.secondary:hover,
.static-actions .button-link.secondary:hover,
.tool-panel button.secondary:hover,
#tools button.secondary:hover,
.site-search-button:hover,
.section-link:hover,
.text-button:hover,
.category-filter button:hover,
.category-filter button.active {
  border-color: var(--tb-primary) !important;
  background: #eff8f5 !important;
  color: var(--tb-primary-hover) !important;
}

.card,
.quick-tools,
.tool-directory,
.static-panel,
.tool-card-link,
.related-tool-link,
.workflow-link,
.tool-detail-head,
.tool-summary-strip,
.tool-inline-loading,
.file-drop,
.results,
.output-preview,
.extension-preview {
  border-radius: var(--tb-radius) !important;
  border-color: var(--tb-line) !important;
  background-color: var(--tb-surface) !important;
  box-shadow: var(--tb-shadow) !important;
}

.page:not(.static-page) > .quick-tools,
.page:not(.static-page) > .tool-directory,
.page:not(.static-page) > .layout,
.page:not(.static-page) > .ad-slot,
.static-main,
.tool-page-main,
.static-page > .static-hero,
.site-header-inner,
.site-category-rail {
  max-width: 1320px !important;
}

.page:not(.static-page) .live-hero {
  width: min(calc(100% - 40px), 1320px) !important;
  min-height: 0 !important;
  margin: 18px auto 18px !important;
  padding: clamp(38px, 5.6vw, 72px) clamp(22px, 4.5vw, 64px) !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  background:
    linear-gradient(90deg, rgba(247, 248, 246, 0.96) 0%, rgba(247, 248, 246, 0.88) 54%, rgba(247, 248, 246, 0.55) 100%),
    url("/assets/toolbada-hero-tools-v2.png") right center / cover no-repeat !important;
  box-shadow: var(--tb-shadow) !important;
}

.page:not(.static-page) .home-hero-bg {
  display: none !important;
}

.page:not(.static-page) .home-hero-copy h1 {
  max-width: 680px !important;
  font-size: clamp(34px, 4.1vw, 54px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .hero-lead,
.page:not(.static-page) .hero-desc {
  max-width: 620px !important;
  font-size: clamp(15px, 1.35vw, 17px) !important;
  line-height: 1.72 !important;
  color: var(--tb-muted) !important;
}

.page:not(.static-page) .quick-tools,
.page:not(.static-page) .tool-directory,
.page:not(.static-page) .layout {
  width: min(calc(100% - 40px), 1320px) !important;
  margin-top: 18px !important;
}

.quick-tools-head h2,
.section-head h2,
.compact-head h2 {
  color: var(--tb-ink) !important;
  font-size: clamp(23px, 2.1vw, 31px) !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

.section-head p,
.compact-head p,
.quick-list-title,
.eyebrow {
  color: var(--tb-primary-hover) !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.tool-card-grid,
.related-tool-list,
.workflow-link-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
  gap: 14px !important;
}

.tool-card-link,
.related-tool-link,
.workflow-link {
  min-height: 132px !important;
  padding: 18px !important;
  color: var(--tb-ink) !important;
}

.tool-card-link strong,
.related-tool-link strong,
.workflow-link strong {
  font-size: 17px !important;
  line-height: 1.3 !important;
}

.tool-card-link span,
.related-tool-link span,
.workflow-link span {
  color: var(--tb-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.tool-card-link:hover,
.related-tool-link:hover,
.workflow-link:hover,
.tool-card-link:focus-visible,
.related-tool-link:focus-visible,
.workflow-link:focus-visible {
  border-color: var(--tb-primary) !important;
  background: #f8fbf9 !important;
  transform: translateY(-1px) !important;
}

.workflow-panel {
  overflow: visible !important;
}

.workflow-link {
  position: relative !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  text-decoration: none !important;
}

.workflow-link::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--tb-primary);
  font-weight: 900;
}

.static-page > .static-hero,
.static-page > .static-hero:not(.mega-hero),
.static-page > .static-hero.mega-hero {
  width: min(calc(100% - 40px), 1320px) !important;
  margin: 16px auto 12px !important;
  padding: clamp(28px, 3.6vw, 48px) clamp(22px, 4vw, 54px) !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.66) 100%),
    url("/assets/toolbada-hero-tools-v2.png") right center / cover no-repeat !important;
  box-shadow: var(--tb-shadow) !important;
}

.static-page > .static-hero h1,
.static-page > .static-hero:not(.mega-hero) h1,
.static-page > .static-hero.mega-hero h1,
.tool-detail-head h1 {
  max-width: 820px !important;
  color: var(--tb-ink) !important;
  font-size: clamp(32px, 4vw, 50px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  word-break: keep-all !important;
}

.static-page > .static-hero .subtitle,
.static-page > .static-hero:not(.mega-hero) .subtitle,
.static-page > .static-hero.mega-hero .subtitle,
.tool-detail-head .subtitle {
  max-width: 820px !important;
  color: var(--tb-muted) !important;
  font-size: clamp(14.5px, 1.4vw, 17px) !important;
  line-height: 1.72 !important;
}

.tool-detail-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: end !important;
  padding: 22px !important;
}

.tool-summary-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
}

.tool-summary-strip span {
  min-height: 58px !important;
  padding: 11px 12px !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  background: var(--tb-surface-subtle) !important;
  color: var(--tb-muted) !important;
  font-size: 13px !important;
}

.tool-summary-strip strong {
  color: var(--tb-ink) !important;
  font-size: 12px !important;
}

.static-panel {
  padding: clamp(18px, 2.4vw, 28px) !important;
}

.tool-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.prose-panel h2 {
  font-size: clamp(19px, 1.7vw, 25px) !important;
  line-height: 1.25 !important;
}

.check-list {
  gap: 9px !important;
}

.check-list li,
.static-panel p {
  color: var(--tb-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.72 !important;
}

.page:not(.static-page) #tools .tool-panel > h2,
.page:not(.static-page) .tool-panel-title {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.2 !important;
}

.page:not(.static-page) #tools .description {
  color: var(--tb-muted) !important;
  font-size: 14.5px !important;
}

.tool-nav-item {
  border-radius: var(--tb-radius) !important;
  font-size: 13.5px !important;
  line-height: 1.35 !important;
}

@media (max-width: 900px) {
  .site-header-inner {
    width: min(calc(100% - 24px), 1320px) !important;
  }

  .site-search-button kbd {
    display: none !important;
  }

  .page:not(.static-page) .live-hero,
  .page:not(.static-page) .quick-tools,
  .page:not(.static-page) .tool-directory,
  .page:not(.static-page) .layout,
  .static-page > .static-hero,
  .static-main,
  .tool-page-main {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  .tool-detail-head,
  .tool-info-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px !important;
  }

  .site-header {
    min-height: 58px !important;
  }

  .site-logo-text {
    font-size: 18px !important;
  }

  .site-category-rail {
    width: calc(100% - 16px) !important;
    padding: 7px 0 9px !important;
  }

  .site-category-link {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .page:not(.static-page) .live-hero {
    margin-top: 10px !important;
    padding: 26px 16px !important;
    background:
      linear-gradient(180deg, rgba(247, 248, 246, 0.98), rgba(247, 248, 246, 0.92)),
      url("/assets/toolbada-hero-tools-v2.png") center / cover no-repeat !important;
  }

  .page:not(.static-page) .home-hero-copy h1,
  .static-page > .static-hero h1,
  .static-page > .static-hero:not(.mega-hero) h1,
  .static-page > .static-hero.mega-hero h1,
  .tool-detail-head h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.13 !important;
  }

  .home-hero-actions,
  .static-actions,
  .tool-detail-head .static-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .home-hero-cta-primary,
  .home-hero-cta-secondary,
  .button-link,
  .section-link,
  .tool-panel button,
  .site-search-button {
    width: 100% !important;
  }

  .static-page > .static-hero,
  .static-page > .static-hero:not(.mega-hero),
  .static-page > .static-hero.mega-hero {
    padding: 22px 16px !important;
  }

  .static-panel,
  .tool-detail-head {
    padding: 16px !important;
  }

  .tool-card-grid,
  .related-tool-list,
  .workflow-link-grid,
  .tool-summary-strip {
    grid-template-columns: 1fr !important;
  }

  .tool-card-link,
  .related-tool-link,
  .workflow-link {
    min-height: 112px !important;
    padding: 16px !important;
  }
}

/* Header simplification and related-tool alignment repair. */
.site-header-inner {
  grid-template-columns: auto 1fr auto !important;
}

.site-header .site-nav {
  display: none !important;
}

.site-search-button {
  flex: 0 0 auto !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: var(--tb-radius) !important;
  border-color: var(--tb-line) !important;
  background: #ffffff !important;
  color: var(--tb-ink) !important;
}

.site-search-button svg {
  width: 19px !important;
  height: 19px !important;
}

.site-search-button span,
.site-search-button kbd {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page:not(.static-page) .content > .related-tools {
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 0 !important;
  padding: 20px !important;
  overflow: visible !important;
}

.page:not(.static-page) .content > .related-tools .section-head,
.page:not(.static-page) .content > .related-tools .compact-head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--tb-line) !important;
}

.page:not(.static-page) .content > .related-tools .section-head h2,
.page:not(.static-page) .content > .related-tools .compact-head h2 {
  margin: 0 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.18 !important;
}

.page:not(.static-page) .content > .related-tools .section-head p,
.page:not(.static-page) .content > .related-tools .compact-head p {
  margin: 0 !important;
  font-size: 12px !important;
}

.page:not(.static-page) .content > .related-tools .related-tool-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: 12px !important;
}

.page:not(.static-page) .content > .related-tools .related-tool-link {
  min-height: 112px !important;
  padding: 16px !important;
  align-content: start !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.page:not(.static-page) .content > .related-tools .related-tool-link::before,
.page:not(.static-page) .content > .related-tools .related-tool-link::after,
.static-page .related-tool-link::before,
.static-page .related-tool-link::after {
  content: none !important;
  display: none !important;
}

.page:not(.static-page) .content > .related-tools .related-tool-link strong {
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.page:not(.static-page) .content > .related-tools .related-tool-link span {
  font-size: 13.5px !important;
  line-height: 1.62 !important;
}

@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto !important;
    width: calc(100% - 20px) !important;
  }

  .site-search-button {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .page:not(.static-page) .content > .related-tools {
    padding: 16px !important;
  }
}

/* Multi-site portal cards. */
.site-network-home,
.site-network-panel {
  overflow: visible !important;
}

.site-network-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
  gap: 14px !important;
}

.site-network-card {
  position: relative !important;
  display: grid !important;
  align-content: start !important;
  gap: 9px !important;
  min-height: 210px !important;
  padding: 20px !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 249, 0.98)),
    radial-gradient(circle at 92% 12%, rgba(15, 118, 110, 0.14), transparent 30%) !important;
  color: var(--tb-ink) !important;
  text-decoration: none !important;
  box-shadow: var(--tb-shadow) !important;
  overflow: hidden !important;
}

.site-network-card::after {
  content: "열기";
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--tb-radius);
  background: #eff8f5;
  color: var(--tb-primary-hover);
  font-size: 12px;
  font-weight: 900;
}

.site-network-card:hover,
.site-network-card:focus-visible {
  border-color: var(--tb-primary) !important;
  background:
    linear-gradient(180deg, #ffffff, #f3faf7),
    radial-gradient(circle at 92% 12%, rgba(15, 118, 110, 0.2), transparent 30%) !important;
  transform: translateY(-1px) !important;
}

.site-network-index {
  width: max-content !important;
  padding: 5px 9px !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--tb-primary-hover) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.site-network-card strong {
  max-width: calc(100% - 54px) !important;
  color: var(--tb-ink) !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.site-network-card em {
  color: var(--tb-primary-hover) !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.site-network-card span:not(.site-network-index) {
  max-width: 96% !important;
  color: var(--tb-muted) !important;
  font-size: 14px !important;
  line-height: 1.66 !important;
}

.site-network-card small {
  align-self: end !important;
  margin-top: 8px !important;
  padding-right: 58px !important;
  color: #6a7672 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}

.sites-hero .subtitle {
  max-width: 900px !important;
}

@media (max-width: 760px) {
  .site-network-grid {
    grid-template-columns: 1fr !important;
  }

  .site-network-card {
    min-height: 178px !important;
    padding: 17px !important;
  }

  .site-network-card strong {
    font-size: 21px !important;
  }
}

/* Multilingual navigation and webtoon visual upgrade. */
.site-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(8px, 1fr) auto auto !important;
  align-items: center !important;
}

.language-switcher {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 4px !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.language-switcher a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  color: var(--tb-muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current="page"] {
  background: #eff8f5 !important;
  color: var(--tb-primary-hover) !important;
}

.footer > .language-switcher {
  margin: 0 auto 12px !important;
}

.page:not(.static-page) .live-hero {
  background:
    linear-gradient(90deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.9) 47%, rgba(247, 248, 246, 0.2) 100%),
    url("/assets/toolbada-webtoon-sites-v1.png") right center / cover no-repeat !important;
}

.static-page > .sites-hero,
.static-page > .localized-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.2) 100%),
    url("/assets/toolbada-webtoon-sites-v1.png") right center / cover no-repeat !important;
}

.site-network-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 249, 0.98)),
    url("/assets/toolbada-webtoon-sites-v1.png") right top / 58% auto no-repeat !important;
}

@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 8px !important;
  }

  .site-header .language-switcher {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: space-between !important;
  }

  .site-header .language-switcher a {
    flex: 1 1 0 !important;
  }

  .page:not(.static-page) .live-hero,
  .static-page > .sites-hero,
  .static-page > .localized-hero,
  .site-network-home {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 246, 0.92)),
      url("/assets/toolbada-webtoon-sites-v1.png") center top / cover no-repeat !important;
  }
}

/* Final mobile readability pass: keep the tool surface compact on phones. */
@media (max-width: 760px) {
  body {
    font-size: 14.5px !important;
  }

  .site-category-rail {
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .site-category-rail::-webkit-scrollbar {
    display: none !important;
  }

  .site-category-link {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 40px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    scroll-snap-align: start !important;
  }

  .page:not(.static-page) .home-hero-copy h1,
  .static-page > .static-hero h1,
  .static-page > .static-hero:not(.mega-hero) h1,
  .static-page > .static-hero.mega-hero h1,
  .tool-detail-head h1 {
    font-size: clamp(24px, 6.4vw, 32px) !important;
    line-height: 1.16 !important;
  }

  .page:not(.static-page) .home-hero-copy .subtitle,
  .page:not(.static-page) .home-hero-copy p,
  .static-page > .static-hero .subtitle,
  .tool-detail-head .subtitle {
    font-size: 15px !important;
    line-height: 1.68 !important;
  }

  .static-page .tool-inline-runtime .tool-panel.active {
    padding: 16px !important;
  }

  .static-page .tool-inline-runtime .tool-panel > h2,
  .static-page .tool-inline-runtime .tool-panel-title {
    font-size: 22px !important;
    line-height: 1.22 !important;
  }

  .static-page .tool-inline-runtime .description,
  .static-page .tool-inline-runtime .tool-process-note,
  .static-page .tool-inline-runtime .tool-process-note p,
  .static-page .tool-inline-runtime .tool-process-note li,
  .static-page .tool-inline-runtime .tool-panel,
  .static-page .tool-inline-runtime .tool-panel p,
  .static-page .tool-inline-runtime label,
  .static-page .tool-inline-runtime input,
  .static-page .tool-inline-runtime textarea,
  .static-page .tool-inline-runtime select {
    font-size: 14.5px !important;
    line-height: 1.62 !important;
  }

  .static-page .tool-inline-runtime .tool-process-note h3,
  .static-page .tool-inline-runtime .field-group strong {
    font-size: 16px !important;
    line-height: 1.32 !important;
  }

  .static-page .tool-inline-runtime .tool-panel button,
  .static-page .tool-inline-runtime .tool-panel .tool-panel-copy,
  .static-page .tool-inline-runtime .button-link,
  .static-page .tool-inline-runtime .section-link {
    font-size: 14px !important;
  }
}

@media (max-width: 760px) {
  .page:not(.static-page) .live-hero,
  .page:not(.static-page) .home-hero-copy,
  .page:not(.static-page) .home-hero-copy > *,
  .page:not(.static-page) .home-hero-actions,
  .page:not(.static-page) .hero-tool-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .page:not(.static-page) .home-hero-copy p,
  .page:not(.static-page) .home-hero-copy .subtitle,
  .page:not(.static-page) .hero-tool-search,
  .page:not(.static-page) .hero-tool-search input {
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page:not(.static-page) .home-hero-copy p {
    font-size: 14.5px !important;
  }
}

/* Site-specific webtoon image system. */
.site-network-home,
.site-network-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.98)) !important;
}

.site-network-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  align-items: stretch !important;
}

.site-network-card {
  grid-template-rows: auto auto auto 1fr auto !important;
  min-height: 326px !important;
  padding: 136px 18px 18px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.98)) !important;
}

.site-network-image {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 118px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-bottom: 1px solid rgba(25, 44, 56, 0.12) !important;
}

.site-network-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 118px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(11, 18, 32, 0.18));
  pointer-events: none;
}

.site-network-card::after {
  z-index: 2 !important;
  border-radius: 8px !important;
}

.site-network-index {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 2 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 18px rgba(25, 44, 56, 0.12) !important;
}

.site-network-card strong,
.site-network-card em,
.site-network-card span:not(.site-network-index),
.site-network-card small {
  position: relative !important;
  z-index: 2 !important;
}

.site-network-card strong {
  max-width: 100% !important;
  font-size: clamp(18px, 1.45vw, 22px) !important;
}

.site-network-card span:not(.site-network-index) {
  font-size: 13.5px !important;
  line-height: 1.62 !important;
}

.site-network-card small {
  margin-top: 2px !important;
}

.static-page > .site-category-hero {
  min-height: 340px !important;
  padding-right: min(48vw, 620px) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.42) 70%, rgba(255, 255, 255, 0.12) 100%),
    var(--site-image) right center / 54% auto no-repeat,
    linear-gradient(135deg, #fffaf4 0%, #f2faf7 100%) !important;
  overflow: hidden !important;
}

.static-page > .site-category-hero h1 {
  max-width: 760px !important;
  font-size: clamp(38px, 4.8vw, 58px) !important;
  line-height: 1.06 !important;
}

.static-page > .site-category-hero .subtitle {
  max-width: 720px !important;
}

.static-page > .site-category-hero .mega-stat-row {
  max-width: 720px !important;
}

.static-page > .sites-hero,
.static-page > .localized-hero {
  min-height: 330px !important;
}

@media (max-width: 900px) {
  .static-page > .site-category-hero {
    padding-right: 24px !important;
    padding-top: 168px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0, rgba(255, 255, 255, 0.94) 150px, rgba(255, 255, 255, 0.98) 100%),
      var(--site-image) center top / 100% 164px no-repeat,
      linear-gradient(135deg, #fffaf4 0%, #f2faf7 100%) !important;
  }

  .static-page > .site-category-hero h1 {
    font-size: clamp(30px, 8vw, 42px) !important;
  }
}

@media (max-width: 760px) {
  .site-network-grid {
    gap: 12px !important;
  }

  .site-network-card {
    min-height: 292px !important;
    padding: 124px 16px 16px !important;
  }

  .site-network-image,
  .site-network-card::before {
    height: 108px !important;
  }

  .site-network-card strong {
    font-size: 19px !important;
  }

  .site-network-card span:not(.site-network-index) {
    font-size: 13.25px !important;
  }
}

/* Image-first extension tools: AI photo tools should not look like text inputs. */
.extension-image-workspace {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.extension-image-drop {
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
  min-height: 210px !important;
  padding: 20px !important;
  border: 1.5px dashed rgba(15, 118, 110, 0.35) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 245, 0.86)),
    radial-gradient(circle at 86% 18%, rgba(251, 146, 60, 0.18), transparent 30%) !important;
  color: var(--tb-ink) !important;
  cursor: pointer !important;
}

.extension-image-drop span {
  width: max-content !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(15, 118, 110, 0.18) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--tb-primary-hover) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.extension-image-drop strong {
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.extension-image-drop small,
.extension-image-note {
  color: var(--tb-muted) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.extension-image-drop input {
  width: 100% !important;
  margin-top: 8px !important;
}

.extension-image-preview {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  min-height: 210px !important;
  overflow: hidden !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.extension-image-preview > span {
  display: block !important;
  padding: 18px !important;
  text-align: center !important;
}

.extension-image-preview img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  display: block !important;
}

.extension-image-preview div {
  width: 100% !important;
  padding: 10px 12px !important;
  border-top: 1px solid var(--tb-line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.extension-image-preview strong,
.extension-image-preview span {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.extension-image-preview strong {
  color: var(--tb-ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.extension-image-preview span {
  color: var(--tb-muted) !important;
  font-size: 12px !important;
}

.extension-image-note {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(15, 118, 110, 0.14) !important;
  border-radius: 8px !important;
  background: #f7fbf9 !important;
}

@media (max-width: 760px) {
  .extension-image-workspace {
    grid-template-columns: 1fr !important;
  }

  .extension-image-drop,
  .extension-image-preview {
    min-height: 176px !important;
  }

  .extension-image-preview img {
    height: 176px !important;
  }
}

/* User-first tool discovery helpers */
.intent-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin-top: 12px;
}

.intent-chip-row button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f3b36;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
}

.intent-chip-row button:hover,
.intent-chip-row button:focus-visible {
  border-color: var(--tb-primary, #0f766e);
  background: #eff8f5;
  color: var(--tb-primary-hover, #0b5f59);
  outline: none;
}

.tool-nav-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tool-nav-kind {
  justify-self: end;
  max-width: 92px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6f2;
  color: #0f5f58;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-nav-item.active .tool-nav-kind {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.command-palette-chip.is-kind {
  border-color: rgba(15, 118, 110, 0.24);
  background: #eef6f2;
  color: #0f5f58;
}

.tool-panel > h2 .tool-panel-title {
  color: inherit !important;
}

@media (max-width: 720px) {
  .intent-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intent-chip-row button {
    width: 100%;
  }

  .tool-nav-kind {
    max-width: 82px;
  }
}

/* Search landing page */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 24px;
}

.search-page-form input {
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(34, 54, 74, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-page-form input:focus {
  border-color: rgba(15, 118, 110, 0.44);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), 0 18px 42px rgba(15, 23, 42, 0.08);
}

.search-page-form .button-link {
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.search-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-suggestion-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(34, 54, 74, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #345067;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.search-suggestion-row a:hover,
.search-suggestion-row a:focus-visible {
  border-color: rgba(15, 118, 110, 0.32);
  color: #173f38;
  transform: translateY(-1px);
}

.search-page-main {
  gap: 18px;
}

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

.search-result-card[hidden] {
  display: none;
}

.search-result-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f5f58;
  font-size: 12px;
  font-weight: 900;
}

.search-empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px dashed rgba(34, 54, 74, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: #526577;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .search-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .search-page-form input,
  .search-page-form .button-link {
    height: 50px;
  }

  .search-result-grid {
    grid-template-columns: 1fr;
  }
}

/* Static tool runtime header contrast */
.static-page .tool-inline-runtime .tool-panel > h2,
.static-page .tool-inline-runtime .tool-panel > h2 .tool-panel-title {
  color: #ffffff !important;
}

/* Local UI test pass: show every top category on phones without horizontal clipping. */
@media (max-width: 760px) {
  .site-category-rail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 auto !important;
    gap: 8px !important;
    overflow: visible !important;
    overflow-x: clip !important;
    padding: 8px 0 10px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .site-category-rail::-webkit-scrollbar {
    display: none !important;
  }

  .site-category-link {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 36px !important;
    padding: 7px 8px !important;
    white-space: normal !important;
    line-height: 1.18 !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    scroll-snap-align: unset !important;
  }
}

@media (max-width: 420px) {
  .site-category-link {
    font-size: 11.5px !important;
  }
}

/* Static tool detail typography pass: keep FAQ and guide cards calmer on mobile. */
.tool-detail-main [data-static-section="faq"] .section-kicker,
.tool-detail-main .static-panel .section-kicker {
  font-size: 12px !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.tool-detail-main [data-static-section="faq"] h2 {
  font-size: clamp(21px, 3.1vw, 25px) !important;
  line-height: 1.24 !important;
}

.tool-detail-main [data-static-section="faq"] h3 {
  margin: 18px 0 8px !important;
  font-size: clamp(17px, 2.35vw, 20px) !important;
  line-height: 1.34 !important;
  letter-spacing: 0 !important;
}

.tool-detail-main [data-static-section="faq"] p,
.tool-detail-main .prose-panel p,
.tool-detail-main .static-panel p {
  font-size: 14.25px !important;
  line-height: 1.68 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 760px) {
  .tool-detail-main {
    gap: 12px !important;
  }

  .tool-detail-main .static-panel,
  .tool-detail-main .prose-panel {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }

  .tool-detail-main .static-panel .section-head,
  .tool-detail-main [data-static-section="faq"] .section-head {
    gap: 5px !important;
    margin-bottom: 14px !important;
  }

  .tool-detail-main .static-panel h2,
  .tool-detail-main .section-head h2,
  .tool-detail-main [data-static-section="faq"] h2 {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  .tool-detail-main .static-panel h3,
  .tool-detail-main [data-static-section="faq"] h3 {
    margin: 15px 0 7px !important;
    font-size: 16px !important;
    line-height: 1.34 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .tool-detail-main [data-static-section="faq"] > h2 {
    font-size: 16px !important;
    line-height: 1.36 !important;
  }

  .tool-detail-main [data-static-section="faq"] > h3 {
    margin: 16px 0 6px !important;
    font-size: 16px !important;
    line-height: 1.36 !important;
    font-weight: 850 !important;
  }

  .tool-detail-main .related-tool-link strong {
    font-size: 16px !important;
    line-height: 1.34 !important;
  }

  .tool-detail-main .related-tool-link span {
    font-size: 13px !important;
    line-height: 1.56 !important;
  }

  .tool-detail-main .static-panel p,
  .tool-detail-main .prose-panel p,
  .tool-detail-main [data-static-section="faq"] p,
  .tool-detail-main .check-list li {
    font-size: 13.5px !important;
    line-height: 1.62 !important;
  }
}

/* Static inline tool header fit: align the dark runtime header with the panel edges. */
.static-page .tool-inline-runtime .tool-panel.active {
  --tool-panel-pad: 16px !important;
}

.static-page .tool-inline-runtime .tool-panel.active > h2 {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: calc(100% + var(--tool-panel-pad, 16px) + var(--tool-panel-pad, 16px)) !important;
  max-width: calc(100% + var(--tool-panel-pad, 16px) + var(--tool-panel-pad, 16px)) !important;
  margin: calc(-1 * var(--tool-panel-pad, 16px)) calc(-1 * var(--tool-panel-pad, 16px)) 16px !important;
  padding: 16px var(--tool-panel-pad, 16px) !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.static-page .tool-inline-runtime .tool-panel.active > h2::before {
  grid-column: 1 !important;
}

.static-page .tool-inline-runtime .tool-panel.active > h2 .tool-panel-title {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: initial !important;
  overflow-wrap: anywhere !important;
}

.static-page .tool-inline-runtime .tool-panel.active > h2 .tool-panel-copy {
  grid-column: 3 !important;
  width: auto !important;
  min-width: 104px !important;
  max-width: 148px !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 560px) {
  .static-page .tool-inline-runtime .tool-panel.active {
    --tool-panel-pad: 14px !important;
  }

  .static-page .tool-inline-runtime .tool-panel.active > h2 {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 14px var(--tool-panel-pad, 14px) !important;
  }

  .static-page .tool-inline-runtime .tool-panel.active > h2 .tool-panel-copy {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Static inline tool action fit: compact controls with clear output spacing. */
.static-page .tool-inline-runtime .tool-panel .actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 18px !important;
  padding: 0 !important;
}

.static-page .tool-inline-runtime .tool-panel .actions > * {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.static-page .tool-inline-runtime .tool-panel .actions button,
.static-page .tool-inline-runtime .tool-panel .actions .button-link,
.static-page .tool-inline-runtime .tool-panel .actions .primary,
.static-page .tool-inline-runtime .tool-panel .actions .secondary {
  min-height: 38px !important;
  height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
}

.static-page .tool-inline-runtime .tool-panel .actions + textarea,
.static-page .tool-inline-runtime .tool-panel .actions + .results,
.static-page .tool-inline-runtime .tool-panel .actions + .output-preview,
.static-page .tool-inline-runtime .tool-panel .actions + pre,
.static-page .tool-inline-runtime .tool-panel .actions + .codeblock {
  margin-top: 14px !important;
}

@media (max-width: 430px) {
  .static-page .tool-inline-runtime .tool-panel .actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Reserved ad placement system: visible planning slots before AdSense approval. */
.ad-slot-reserved {
  min-height: 108px !important;
  margin: 22px 0 !important;
  padding: 18px !important;
  border: 1px dashed rgba(92, 111, 102, 0.42) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 245, 0.92)),
    repeating-linear-gradient(45deg, rgba(20, 33, 29, 0.04) 0 8px, transparent 8px 16px) !important;
  color: #5d6a64 !important;
  box-shadow: none !important;
}

.ad-slot-reserved span {
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-color: rgba(92, 111, 102, 0.28) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #47564f !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

.ad-slot-reserved small {
  display: block !important;
  max-width: 460px !important;
  margin-top: 8px !important;
  color: #77837d !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.tool-card-grid > .ad-slot,
.search-result-grid > .ad-slot,
.related-tool-list > .ad-slot,
.mega-grid > .ad-slot {
  grid-column: 1 / -1 !important;
}

.ad-slot-feed {
  min-height: 96px !important;
  margin: 8px 0 12px !important;
}

.tool-detail-main .ad-slot-reserved,
.search-page-main .ad-slot-reserved,
.static-main > .ad-slot-reserved {
  width: 100% !important;
}

@media (max-width: 760px) {
  .ad-slot-reserved {
    min-height: 86px !important;
    margin: 18px 0 !important;
    padding: 14px !important;
  }

  .ad-slot-reserved small {
    font-size: 11.5px !important;
  }
}

/* Kakao display ads: one selected unit is injected by /kakao-ads.js per slot. */
.ad-slot-kakao {
  position: relative !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  max-width: min(100%, calc(var(--ad-width, 728px) + 24px)) !important;
  min-height: calc(var(--ad-height, 90px) + 24px) !important;
  margin: 22px auto !important;
  padding: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(154, 166, 159, 0.26) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: none !important;
  contain: layout paint !important;
}

.ad-slot-kakao::before {
  content: "AD";
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  color: rgba(92, 104, 98, 0.58);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
}

.ad-slot-kakao .kakao_ad_area {
  max-width: 100% !important;
}

.ad-slot-kakao.ad-slot-horizontal {
  min-height: calc(var(--ad-height, 90px) + 22px) !important;
}

.ad-slot-kakao.ad-slot-feed {
  max-width: min(100%, calc(var(--ad-width, 300px) + 24px)) !important;
  min-height: calc(var(--ad-height, 250px) + 24px) !important;
}

.ad-slot-kakao.ad-slot-square {
  max-width: min(100%, calc(var(--ad-width, 250px) + 24px)) !important;
  min-height: calc(var(--ad-height, 250px) + 24px) !important;
}

.ad-slot-kakao.ad-slot-portrait {
  max-width: min(100%, calc(var(--ad-width, 320px) + 24px)) !important;
  min-height: calc(var(--ad-height, 480px) + 24px) !important;
}

.ad-slot-kakao.ad-slot-compact {
  max-width: min(100%, calc(var(--ad-width, 320px) + 24px)) !important;
  min-height: calc(var(--ad-height, 50px) + 20px) !important;
}

.ad-slot-kakao.ad-slot-side {
  max-width: min(100%, calc(var(--ad-width, 160px) + 24px)) !important;
  min-height: calc(var(--ad-height, 600px) + 24px) !important;
}

.tool-detail-main .ad-slot-kakao,
.search-page-main .ad-slot-kakao,
.static-main > .ad-slot-kakao {
  width: 100% !important;
}

@media (max-width: 760px) {
  .ad-slot-kakao {
    max-width: min(100%, calc(var(--ad-width, 320px) + 18px)) !important;
    min-height: calc(var(--ad-height, 100px) + 18px) !important;
    margin: 16px auto !important;
    padding: 9px !important;
  }
}

/* Final typography pass: Google Fonts first, calmer scale, better reading rhythm. */
:root {
  --font-sans: "Noto Sans KR", Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, Monaco, "Courier New", monospace;
  --text-xs: 11.5px;
  --text-sm: 12.5px;
  --text-md: 14px;
  --text-lg: 15.5px;
  --text-title: clamp(20px, 1.9vw, 27px);
  --text-hero: clamp(30px, 3.7vw, 48px);
  font-family: var(--font-sans);
  font-size: 15px;
}

html:lang(ja),
html[lang^="ja"] {
  --font-sans: "Noto Sans JP", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html:lang(zh),
html[lang^="zh"] {
  --font-sans: "Noto Sans SC", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans) !important;
}

body {
  font-size: var(--text-md) !important;
  line-height: 1.62 !important;
  letter-spacing: 0 !important;
  text-rendering: optimizeLegibility;
}

.mono,
code,
pre,
kbd,
samp,
textarea.mono,
.extension-output {
  font-family: var(--font-mono) !important;
}

.site-logo-text {
  font-size: 19px !important;
  font-weight: 800 !important;
}

.site-nav a,
.site-search-button {
  font-size: 13px !important;
  font-weight: 700 !important;
}

.site-category-link,
.site-category-rail a,
.hero-pills span,
.tool-tag,
.section-kicker,
.static-hero .eyebrow,
.tool-detail-meta span,
.mega-tool-card .status-pill {
  font-size: var(--text-sm) !important;
  font-weight: 700 !important;
}

.page:not(.static-page) .home-hero-copy h1,
.page:not(.static-page) .hero h1,
.static-page > .static-hero h1,
.static-page > .static-hero:not(.mega-hero) h1,
.static-page > .static-hero.mega-hero h1,
.static-page > .site-category-hero h1,
.tool-detail-head h1 {
  font-size: var(--text-hero) !important;
  line-height: 1.14 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.page:not(.static-page) .hero-lead,
.page:not(.static-page) .hero-desc,
.page:not(.static-page) .home-hero-copy p,
.static-page > .static-hero .subtitle,
.static-page > .static-hero:not(.mega-hero) .subtitle,
.static-page > .static-hero.mega-hero .subtitle,
.tool-detail-head .subtitle,
.hero .subtitle {
  font-size: clamp(14px, 1.25vw, 16px) !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

.quick-tools-head h2,
.section-head h2,
.compact-head h2,
.sidebar .tool-intro h2,
.tool-intro h2,
.page:not(.static-page) .quick-tools-head h2,
.page:not(.static-page) .section-head h2,
.page:not(.static-page) .content > .related-tools .section-head h2,
.page:not(.static-page) .content > .related-tools .compact-head h2,
.tool-live-panel-primary .section-head h2,
.tool-page-main .tool-live-panel .section-head h2,
.tool-detail-main .static-panel h2,
.tool-detail-main .section-head h2,
.prose-panel h2 {
  font-size: var(--text-title) !important;
  line-height: 1.26 !important;
  font-weight: 800 !important;
}

.tool-panel > h2,
.page:not(.static-page) #tools .tool-panel > h2,
.page:not(.static-page) .tool-panel > h2,
.page:not(.static-page) .tool-panel-title,
.static-page .tool-inline-runtime .tool-panel > h2,
.static-page .tool-inline-runtime .tool-panel > h2 .tool-panel-title,
.static-page .tool-inline-runtime .tool-panel.active > h2 .tool-panel-title {
  font-size: clamp(19px, 1.75vw, 25px) !important;
  line-height: 1.24 !important;
  font-weight: 800 !important;
}

.tool-card h3,
.tool-card strong,
.tool-card-link strong,
.mega-tool-card strong,
.related-tool-list strong,
.search-result-card strong,
.static-panel h3,
.prose-panel h3,
.faq-item h3,
.tool-detail-main [data-static-section="faq"] h3 {
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.38 !important;
  font-weight: 800 !important;
}

.tool-panel p,
.tool-panel li,
.tool-panel label,
.tool-panel small,
.tool-panel span,
.tool-card p,
.tool-card-link p,
.mega-tool-card p,
.related-tool-list p,
.search-result-card p,
.static-panel p,
.static-panel li,
.prose-panel p,
.prose-panel li,
.tool-detail-main [data-static-section="faq"] p,
.tool-detail-main [data-static-section="faq"] li,
.extension-kind-strip small {
  font-size: var(--text-md) !important;
  line-height: 1.66 !important;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea,
.static-page .tool-inline-runtime .tool-panel input,
.static-page .tool-inline-runtime .tool-panel select,
.static-page .tool-inline-runtime .tool-panel textarea,
.hero-tool-search input,
.search-page-input,
.search-panel input {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.home-hero-cta-primary,
.home-hero-cta-secondary,
.tool-panel button,
.tool-panel .tool-panel-copy,
.static-page .tool-inline-runtime .tool-panel button,
.static-page .tool-inline-runtime .tool-panel .tool-panel-copy,
.static-page .tool-inline-runtime .tool-panel .actions button,
.button-link,
.primary,
.secondary {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.tool-detail-main [data-static-section="faq"] h2 {
  font-size: clamp(19px, 2.4vw, 23px) !important;
}

.tool-detail-main [data-static-section="faq"] h3 {
  font-size: clamp(15.5px, 2vw, 18px) !important;
}

.tool-detail-main [data-static-section="faq"] p {
  font-size: 13.5px !important;
  line-height: 1.68 !important;
}

@media (max-width: 760px) {
  :root {
    --text-md: 13.5px;
    --text-lg: 14.5px;
    --text-title: clamp(18px, 5.2vw, 22px);
    --text-hero: clamp(24px, 6.5vw, 32px);
  }

  body {
    font-size: 13.5px !important;
  }

  .site-logo-text {
    font-size: 17px !important;
  }

  .page:not(.static-page) .home-hero-copy h1,
  .page:not(.static-page) .hero h1,
  .static-page > .static-hero h1,
  .static-page > .static-hero:not(.mega-hero) h1,
  .static-page > .static-hero.mega-hero h1,
  .tool-detail-head h1 {
    font-size: var(--text-hero) !important;
    line-height: 1.18 !important;
  }

  .page:not(.static-page) .hero-lead,
  .page:not(.static-page) .hero-desc,
  .static-page > .static-hero .subtitle,
  .tool-detail-head .subtitle {
    font-size: 14px !important;
  }

  .tool-panel > h2,
  .page:not(.static-page) #tools .tool-panel > h2,
  .static-page .tool-inline-runtime .tool-panel > h2,
  .static-page .tool-inline-runtime .tool-panel > h2 .tool-panel-title {
    font-size: clamp(18px, 5vw, 22px) !important;
  }

  .tool-panel p,
  .tool-panel li,
  .tool-panel label,
  .static-panel p,
  .static-panel li,
  .prose-panel p,
  .prose-panel li {
    font-size: 13.25px !important;
    line-height: 1.66 !important;
  }

  .tool-panel button,
  .tool-panel .tool-panel-copy,
  .static-page .tool-inline-runtime .tool-panel button {
    font-size: 12.75px !important;
  }
}
