:root {
  --ink: #17221d;
  --ink-2: #243229;
  --muted: #6d756f;
  --paper: #f2f0e9;
  --surface: #fbfaf6;
  --surface-2: #ebe9e1;
  --line: #d7d8d0;
  --lumo: #caff68;
  --lumo-deep: #9bc936;
  --sky: #bfe3ff;
  --coral: #ffb7a1;
  --shadow-sm: 0 10px 30px rgba(23, 34, 29, 0.07);
  --shadow-lg: 0 32px 80px rgba(23, 34, 29, 0.14);
  --header-height: 82px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(202, 255, 104, 0.14), transparent 24rem),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.finder-open,
body.tool-fullscreen-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 9px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23, 34, 29, 0.1);
  background: rgba(242, 240, 233, 0.84);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 480px) auto;
  gap: 28px;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  filter: drop-shadow(0 8px 16px rgba(23, 34, 29, 0.12));
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 830;
  letter-spacing: -0.055em;
}

.brand-name span {
  color: #6d8e29;
}

.header-inner nav {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-self: end;
}

.header-inner nav a {
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 680;
  text-decoration: none;
}

.header-inner nav a:hover {
  color: var(--ink);
}

.header-inner nav .nav-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 999px;
}

.header-search,
.directory-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  text-align: left;
}

.header-search:hover,
.directory-search:hover {
  color: var(--ink);
  border-color: #aeb4aa;
  box-shadow: var(--shadow-sm);
}

.header-search svg,
.directory-search svg,
.finder-search svg,
.tool-sidebar button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

kbd {
  padding: 3px 7px;
  color: var(--muted);
  background: #ecebe5;
  border: 1px solid #d7d7d0;
  border-radius: 6px;
  box-shadow: 0 1px 0 #fff inset;
  font: 0.62rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.category-nav-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 35;
  background: rgba(251, 250, 246, 0.93);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 25px rgba(23, 34, 29, 0.045);
  backdrop-filter: blur(18px);
}

.category-nav {
  display: grid;
  grid-template-columns: 0.75fr repeat(5, 1fr);
  min-height: 54px;
  border-inline: 1px solid var(--line);
}

.category-nav a {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 740;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.category-nav a:last-child {
  border-right: 0;
}

.category-nav a:hover {
  color: var(--ink);
  background: rgba(202, 255, 104, 0.2);
}

.category-nav a > span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: #728052;
  background: #eeece5;
  border-radius: 7px;
  font-family: Georgia, serif;
  font-size: 0.62rem;
  font-style: italic;
}

.category-nav a.is-active {
  color: var(--ink);
  background: var(--lumo);
  box-shadow: inset 0 -3px 0 var(--ink);
}

.category-nav a.is-active > span {
  color: var(--lumo);
  background: var(--ink);
}

.mobile-tool-bar {
  display: none;
}

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

.tool-finder {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #c9ccc3;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(13, 24, 18, 0.34);
}

.tool-finder::backdrop {
  background: rgba(9, 18, 13, 0.55);
  backdrop-filter: blur(8px);
}

.tool-finder-panel {
  display: flex;
  max-height: min(760px, calc(100dvh - 40px));
  flex-direction: column;
}

.tool-finder-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 15px;
}

.tool-finder-header p {
  margin-bottom: 2px;
  color: #6c7f43;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-finder-header h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.055em;
}

.finder-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  background: #eeece5;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.finder-search {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 26px;
  padding: 0 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #bfc3ba;
  border-radius: 15px;
  box-shadow: 0 0 0 4px rgba(202, 255, 104, 0.13);
}

.finder-search input {
  width: 100%;
  min-height: 52px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.finder-categories {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 15px 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.finder-categories::-webkit-scrollbar {
  display: none;
}

.finder-categories button {
  min-height: 34px;
  padding: 5px 11px;
  flex: 0 0 auto;
  color: var(--muted);
  background: #eeece5;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 730;
}

.finder-categories button.is-active {
  color: var(--ink);
  background: var(--lumo);
  border-color: #b2d86b;
}

.finder-results {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 26px 18px;
  overflow-y: auto;
}

.finder-tool {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 24px;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 10px 12px;
  color: inherit;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.finder-tool:hover,
.finder-tool:focus-visible {
  background: rgba(202, 255, 104, 0.18);
}

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

.finder-tool-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--lumo);
  background: var(--ink);
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
}

.finder-tool strong,
.finder-tool small {
  display: block;
}

.finder-tool strong {
  font-size: 0.9rem;
}

.finder-tool small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.finder-tool-category {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.finder-empty {
  padding: 55px 20px;
  color: var(--muted);
  text-align: center;
}

.tool-finder-footer {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  min-height: 47px;
  padding: 10px 26px;
  align-items: center;
  color: var(--muted);
  background: #eeece5;
  border-top: 1px solid var(--line);
  font-size: 0.61rem;
}

.tool-finder-footer span:last-child {
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.85fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  min-height: 720px;
  padding-block: 84px 92px;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: #627c2d;
  font-size: 0.73rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--lumo-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(155, 201, 54, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: 780;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.hero h1 em::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.03em;
  left: -0.04em;
  z-index: -1;
  height: 0.22em;
  background: var(--lumo);
  border-radius: 999px;
  content: "";
  transform: rotate(-1.6deg);
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 11px 22px;
  color: var(--surface);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 0 10px 24px rgba(23, 34, 29, 0.18);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 730;
  text-underline-offset: 5px;
}

.hero-promises {
  display: flex;
  gap: 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  list-style: none;
}

.hero-promises span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  place-items: center;
  color: var(--ink);
  background: var(--lumo);
  border-radius: 50%;
  font-size: 0.62rem;
}

.text-desk {
  position: relative;
  display: block;
  min-width: 0;
  padding: 22px;
  color: inherit;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(23, 34, 29, 0.12);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transform: rotate(1.2deg);
  transition: transform 200ms ease;
}

.text-desk:hover {
  transform: rotate(0) translateY(-4px);
}

.desk-glow {
  position: absolute;
  top: -42px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: var(--lumo);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.44;
}

.desk-window {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(23, 34, 29, 0.12);
  border-radius: 20px;
}

.desk-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 720;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  background: var(--line);
  border-radius: 50%;
}

.window-dots i:first-child {
  background: var(--coral);
}

.window-dots i:nth-child(2) {
  background: #ffdc7f;
}

.window-dots i:nth-child(3) {
  background: #9bd98c;
}

.local-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
  padding: 4px 8px;
  color: #526a25;
  background: rgba(202, 255, 104, 0.36);
  border-radius: 999px;
  font-size: 0.62rem;
}

.local-label span {
  width: 5px;
  height: 5px;
  background: var(--lumo-deep);
  border-radius: 50%;
}

.desk-paper {
  position: relative;
  display: block;
  min-height: 280px;
  padding: 46px 38px;
  background:
    linear-gradient(rgba(23, 34, 29, 0.035) 1px, transparent 1px) 0 0 / 100% 34px,
    #fff;
}

.sample-label {
  display: block;
  margin-bottom: 24px;
  color: #959b96;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sample-copy {
  display: block;
  max-width: 370px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.sample-copy mark {
  padding: 0 3px;
  background: var(--lumo);
}

.sample-cursor {
  display: inline-block;
  width: 2px;
  height: 28px;
  margin-top: 14px;
  background: var(--ink);
  animation: blink 1.2s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.desk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.desk-stats > span {
  padding: 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.desk-stats > span:last-child {
  border-right: 0;
}

.desk-stats strong,
.desk-stats small {
  display: block;
}

.desk-stats strong {
  font-size: 1rem;
}

.desk-stats small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.62rem;
}

.desk-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5px 0;
  font-size: 0.76rem;
  font-weight: 720;
}

.desk-caption b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 50%;
}

.proof-strip {
  color: #eef2ec;
  background: var(--ink);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid p {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  min-height: 112px;
  margin: 0;
  padding: 24px 34px;
  color: #9fac9f;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.77rem;
}

.proof-grid p:last-child {
  border-right: 0;
}

.proof-grid p > span {
  grid-row: span 2;
  color: var(--lumo);
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
}

.proof-grid strong {
  color: var(--surface);
  font-size: 0.9rem;
}

.section {
  padding-block: 118px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
}

.section-heading > p {
  max-width: 390px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  display: flex;
  min-height: 230px;
  padding: 25px;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.tool-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.tool-card-featured {
  position: relative;
  grid-row: span 3;
  grid-column: span 2;
  min-height: 722px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.8), transparent 11rem),
    var(--lumo);
  border-color: rgba(23, 34, 29, 0.24);
}

.tool-card-featured::after {
  position: absolute;
  right: -28px;
  bottom: -90px;
  color: rgba(23, 34, 29, 0.07);
  font-family: Georgia, serif;
  font-size: 26rem;
  font-weight: 700;
  line-height: 1;
  content: "Aa";
  letter-spacing: -0.17em;
}

.tool-card-top,
.tool-card-copy,
.card-footer {
  position: relative;
  z-index: 1;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid rgba(23, 34, 29, 0.1);
  border-radius: 14px;
}

.tool-card-featured .tool-icon {
  background: var(--ink);
  border-color: var(--ink);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.tool-card-featured .tool-icon svg {
  stroke: var(--lumo);
}

.live-badge,
.soon-badge {
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 34, 29, 0.1);
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ink);
}

.live-badge i {
  width: 6px;
  height: 6px;
  background: #49924d;
  border-radius: 50%;
}

.tool-card-copy {
  display: block;
}

.tool-card-copy small,
.tool-card-copy strong,
.tool-card-copy > span {
  display: block;
}

.tool-card-copy small {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-card-copy strong {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
}

.tool-card-featured .tool-card-copy strong {
  max-width: 540px;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.tool-card-copy > span {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.88rem;
}

.tool-card-featured .tool-card-copy > span {
  color: rgba(23, 34, 29, 0.72);
  font-size: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 34, 29, 0.19);
  font-size: 0.82rem;
  font-weight: 770;
}

.card-footer b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--lumo);
  background: var(--ink);
  border-radius: 50%;
}

.principles-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 76px;
  align-items: center;
  padding: clamp(38px, 7vw, 84px);
  color: #eef2ec;
  background:
    radial-gradient(circle at 92% 12%, rgba(202, 255, 104, 0.12), transparent 20rem),
    var(--ink);
  border-radius: 32px;
}

.eyebrow-light {
  color: var(--lumo);
}

.principles-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.3vw, 5rem);
}

.principles-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 32px;
  color: #aeb9b0;
}

.button-light {
  color: var(--ink);
  background: var(--lumo);
  border-color: var(--lumo);
}

.local-diagram {
  display: flex;
  padding: 28px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.diagram-node {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px;
  color: var(--ink);
  background: #f5f4ee;
  border-radius: 15px;
}

.diagram-node-active {
  background: var(--lumo);
  box-shadow: 0 12px 32px rgba(202, 255, 104, 0.14);
}

.diagram-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(23, 34, 29, 0.08);
  border-radius: 11px;
  font-family: Georgia, serif;
  font-weight: 700;
}

.diagram-node small,
.diagram-node strong {
  display: block;
}

.diagram-node small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-node strong {
  margin-top: 1px;
  font-size: 0.87rem;
}

.diagram-route {
  display: flex;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.diagram-route i {
  width: 3px;
  height: 3px;
  background: rgba(202, 255, 104, 0.68);
  border-radius: 50%;
}

.local-diagram > p {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin: 20px 0 0;
  color: #aeb9b0;
  font-size: 0.7rem;
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: #72c878;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(114, 200, 120, 0.12);
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 112px;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-inner > p {
  margin: 0;
}

.footer-inner > p:last-child {
  justify-self: end;
}

.brand-footer .brand-name {
  font-size: 1rem;
}

/* Scalable tool discovery */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-category-card {
  position: relative;
  display: flex;
  min-height: 245px;
  padding: 22px;
  overflow: hidden;
  flex-direction: column;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-category-card:hover {
  border-color: #aeb8a6;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.home-category-card:nth-child(2) {
  background: #eef8dd;
}

.home-category-card:nth-child(4) {
  background: #f6efe1;
}

.home-category-mark,
.directory-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--lumo);
  background: var(--ink);
  border-radius: 13px;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
}

.home-category-count {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 730;
}

.home-category-card strong {
  margin-top: auto;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
}

.home-category-card > span:nth-of-type(3) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.home-category-card b {
  position: absolute;
  right: 20px;
  bottom: 17px;
  font-size: 0.78rem;
}

.popular-tools {
  margin-top: 54px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.popular-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.popular-heading .eyebrow {
  margin: 0;
}

.popular-heading a {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 720;
  text-underline-offset: 4px;
}

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

.popular-list a,
.directory-tool {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 12px 16px;
  color: inherit;
  background: rgba(251, 250, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
}

.popular-list a:hover,
.directory-tool:hover {
  background: var(--surface);
  border-color: #aeb8a6;
  box-shadow: var(--shadow-sm);
}

.popular-list a > span:first-child,
.directory-tool-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #627c2d;
  background: rgba(202, 255, 104, 0.42);
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 0.7rem;
  font-style: italic;
}

.popular-list strong,
.popular-list small,
.directory-tool strong,
.directory-tool small {
  display: block;
}

.popular-list strong,
.directory-tool strong {
  font-size: 0.84rem;
}

.popular-list small,
.directory-tool small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.popular-list b,
.directory-tool b {
  font-size: 0.75rem;
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 60px;
  align-items: end;
  padding-block: 72px 43px;
}

.directory-hero:not(.directory-hero-all) {
  display: block;
}

.directory-back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
  text-decoration: none;
}

.directory-back:hover {
  color: var(--ink);
}

.directory-heading {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.directory-heading .eyebrow {
  margin-bottom: 10px;
}

.directory-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
}

.directory-heading > div > p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.directory-search {
  width: 100%;
  min-height: 54px;
  background: var(--surface);
}

.tool-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 250px;
  padding-bottom: 62px;
}

.directory-tool {
  min-height: 96px;
  padding: 17px 18px;
}

.directory-empty {
  grid-column: 1 / -1;
  padding: 64px 32px;
  text-align: center;
  background: rgba(251, 250, 246, 0.55);
  border: 1px dashed #bfc3ba;
  border-radius: 24px;
}

.directory-empty > span {
  display: block;
  margin-bottom: 13px;
  color: #728052;
  font-family: Georgia, serif;
  font-style: italic;
}

.directory-empty h2 {
  margin-bottom: 9px;
  font-size: 2.1rem;
}

.directory-empty p {
  max-width: 480px;
  margin: 0 auto 23px;
  color: var(--muted);
}

.directory-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 22px 24px;
  background: #e9f3d7;
  border: 1px solid #d1ddbc;
  border-radius: 18px;
}

.directory-cta p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 680;
}

.directory-cta .text-link {
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.category-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding-bottom: 100px;
}

.category-block {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.category-block-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 15px 18px;
  color: inherit;
  background: #eeece5;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.category-block-heading > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--lumo);
  background: var(--ink);
  border-radius: 12px;
  font-family: Georgia, serif;
  font-size: 0.74rem;
  font-style: italic;
}

.category-block-heading strong,
.category-block-heading small {
  display: block;
}

.category-block-heading strong {
  font-size: 0.93rem;
}

.category-block-heading small {
  color: var(--muted);
  font-size: 0.65rem;
}

.category-block-heading b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: var(--lumo);
  border-radius: 50%;
  font-size: 0.68rem;
}

.category-tool-list a {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 61px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.category-tool-list a:last-child {
  border-bottom: 0;
}

.category-tool-list a:hover {
  background: rgba(202, 255, 104, 0.16);
}

.category-tool-list span {
  font-size: 0.76rem;
  font-weight: 730;
}

.category-tool-list small,
.category-tool-list p {
  color: var(--muted);
  font-size: 0.65rem;
}

.category-tool-list p {
  margin: 0;
  padding: 20px 18px;
}

/* Tool page */
.tool-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.tool-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 76px);
  padding-top: 31px;
}

.sidebar-category {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
  color: inherit;
  text-decoration: none;
}

.sidebar-category > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--lumo);
  background: var(--ink);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 0.65rem;
  font-style: italic;
}

.sidebar-category > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.sidebar-category small,
.sidebar-category strong {
  display: block;
}

.sidebar-category small {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebar-category strong {
  font-size: 0.83rem;
}

.sidebar-category b {
  margin-left: auto;
  font-size: 0.66rem;
}

.tool-sidebar > p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.tool-sidebar nav {
  padding-block: 6px;
  border-block: 1px solid var(--line);
}

.tool-sidebar nav a {
  display: flex;
  min-height: 42px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.71rem;
  font-weight: 690;
  text-decoration: none;
}

.tool-sidebar nav a:hover {
  color: var(--ink);
  background: #e9e8e1;
}

.tool-sidebar nav a.is-active {
  color: var(--ink);
  background: var(--lumo);
}

.tool-sidebar nav a span:last-child {
  min-width: 0;
  flex: 1;
}

.tool-sidebar nav a > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  flex: 0 0 24px;
  place-items: center;
  color: #6d7c4f;
  background: #e9e8e1;
  border-radius: 7px;
  font-family: Georgia, serif;
  font-size: 0.66rem;
  font-style: italic;
}

.tool-sidebar nav a span strong,
.tool-sidebar nav a span small {
  display: block;
}

.tool-sidebar nav a span strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-sidebar nav a span small {
  display: none;
}

.tool-sidebar nav a.is-active > span:first-child {
  color: var(--lumo);
  background: var(--ink);
}

.tool-sidebar button {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 700;
  text-align: left;
}

.tool-sidebar button:hover {
  color: var(--ink);
  background: var(--surface);
}

.tool-layout .tool-page {
  min-width: 0;
}

.mobile-panel-tabs {
  display: none;
}

.tool-page {
  padding-block: 28px 72px;
}

.tool-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(260px, 0.65fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-bottom: 24px;
}

.tool-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 4.6vw, 4.15rem);
  line-height: 0.98;
}

.title-dot {
  color: var(--lumo-deep);
}

.tool-heading > p {
  max-width: 480px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.counter-app {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #cfd2ca;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.counter-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}

.counter-topbar > div,
.counter-topbar > span {
  display: flex;
  gap: 12px;
  align-items: center;
}

.counter-topbar strong {
  color: var(--ink);
}

.counter-topbar > span i {
  width: 6px;
  height: 6px;
  background: #62b86a;
  border-radius: 50%;
}

.tool-fullscreen-button {
  display: none;
}

.counter-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 530px;
}

.editor-panel {
  display: flex;
  min-width: 0;
  padding: 24px;
  flex-direction: column;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.editor-toolbar label {
  font-size: 0.76rem;
  font-weight: 780;
}

.editor-toolbar span {
  color: var(--muted);
  font-size: 0.63rem;
}

textarea {
  display: block;
  width: 100%;
  min-height: 410px;
  padding: 25px;
  flex: 1;
  resize: vertical;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 34, 29, 0.027) 1px, transparent 1px) 0 0 / 100% 34px,
    #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  font-size: 1rem;
  line-height: 1.75;
}

textarea::placeholder {
  color: #a5aaa6;
}

textarea:focus {
  border-color: #8eac54;
  box-shadow: 0 0 0 4px rgba(155, 201, 54, 0.14);
}

.editor-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
}

.editor-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.editor-actions > div {
  display: flex;
  gap: 7px;
}

.button-small {
  min-height: 40px;
  padding: 7px 15px;
  font-size: 0.75rem;
}

.button-small svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.button-secondary {
  color: var(--ink);
  background: var(--lumo);
  border-color: #b3df5b;
}

.button-quiet {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.stats-panel {
  padding: 24px;
  background: #e9e7df;
  border-left: 1px solid var(--line);
}

.stats-panel > p:first-child {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-featured {
  margin-bottom: 9px;
  padding: 20px;
  background: var(--lumo);
  border: 1px solid rgba(23, 34, 29, 0.13);
  border-radius: 17px;
}

.stat-featured-secondary {
  background: var(--sky);
}

.stat-featured strong,
.stat-featured span {
  display: block;
}

.stat-featured strong {
  font-family: Georgia, serif;
  font-size: 2.65rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-featured span {
  margin-top: 6px;
  color: rgba(23, 34, 29, 0.7);
  font-size: 0.67rem;
  font-weight: 720;
}

.stat-list {
  margin-top: 18px;
  border-top: 1px solid rgba(23, 34, 29, 0.12);
}

.stat-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid rgba(23, 34, 29, 0.1);
  font-size: 0.72rem;
}

.stat-list span {
  color: var(--muted);
}

.stat-list strong {
  font-size: 0.76rem;
}

.stats-panel .local-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

/* Shared text tools */
.utility-app {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #cfd2ca;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.utility-toolbar,
.case-controls,
.diff-toolbar,
.utility-footer {
  display: flex;
  align-items: center;
}

.utility-toolbar {
  gap: 10px;
  padding: 14px 22px;
  flex-wrap: wrap;
  background: #eeece5;
  border-bottom: 1px solid var(--line);
}

.option-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}

.option-check:has(input:checked) {
  color: var(--ink);
  background: rgba(202, 255, 104, 0.42);
  border-color: #b4d676;
}

.option-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #6f9628;
}

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

@media (min-width: 961px) {
  .split-editor.is-resizable-split,
  .counter-workspace.is-resizable-split {
    grid-template-columns: minmax(210px, var(--split-position, 50%)) 14px minmax(210px, 1fr);
  }

  .is-resizable-split > .split-resizer + .text-pane,
  .is-resizable-split > .split-resizer + .stats-panel {
    border-left: 0;
  }
}

.split-resizer {
  position: relative;
  z-index: 5;
  display: flex;
  width: 14px;
  min-width: 14px;
  padding: 0;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  color: #788078;
  background: transparent;
  border: 0;
  cursor: col-resize;
  outline: 0;
  touch-action: none;
}

.split-resizer::before {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
  transition: width 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.split-resizer-grip {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 50px;
  background:
    radial-gradient(circle, currentColor 1.2px, transparent 1.6px) center 13px / 5px 7px no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.6px) center 22px / 5px 7px no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.6px) center 31px / 5px 7px no-repeat,
    var(--surface);
  border: 1px solid #c8cbc3;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(23, 34, 29, 0.09);
  transition: width 150ms ease, color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.split-resizer:hover::before,
.split-resizer:focus-visible::before,
.split-resizer.is-dragging::before {
  width: 3px;
  background: #8fb83f;
  box-shadow: 0 0 0 4px rgba(202, 255, 104, 0.2);
}

.split-resizer:hover .split-resizer-grip,
.split-resizer:focus-visible .split-resizer-grip,
.split-resizer.is-dragging .split-resizer-grip {
  width: 10px;
  color: var(--ink);
  background-color: var(--lumo);
  border-color: #97bf49;
}

.split-resizer:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

body.split-resizing,
body.split-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.text-pane {
  min-width: 0;
  padding: 22px;
}

.text-pane + .text-pane {
  border-left: 1px solid var(--line);
}

.text-pane textarea {
  min-height: 360px;
}

.text-pane textarea[readonly] {
  background:
    linear-gradient(rgba(23, 34, 29, 0.027) 1px, transparent 1px) 0 0 / 100% 34px,
    #f4f3ed;
}

.utility-footer {
  gap: 24px;
  min-height: 76px;
  padding: 14px 22px;
  justify-content: space-between;
  background: #eeece5;
  border-top: 1px solid var(--line);
}

.utility-footer > p {
  min-width: 0;
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.utility-actions,
.mini-stats,
.diff-legend {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-stats {
  gap: 16px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.68rem;
}

.mini-stats strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.case-controls {
  gap: 8px;
  padding: 14px 22px;
  flex-wrap: wrap;
  background: #eeece5;
  border-bottom: 1px solid var(--line);
}

.case-button {
  min-height: 36px;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 720;
}

.case-button:hover,
.case-button.is-active {
  color: var(--ink);
  background: var(--lumo);
  border-color: #acd657;
}

.tool-control-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px 22px;
  background: #eeece5;
  border-bottom: 1px solid var(--line);
}

.tool-control-grid-short {
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  justify-content: start;
}

.tool-control-grid > label:not(.option-check),
.compact-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 730;
}

.tool-control-grid input[type="text"],
.tool-control-grid input[type="number"],
.tool-control-grid select,
.compact-field input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 0.73rem;
}

.compact-field {
  display: flex;
  gap: 7px;
  align-items: center;
  padding-left: 6px;
  white-space: nowrap;
}

.affix-fields {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.affix-fields[hidden] {
  display: none;
}

.compact-field input {
  width: 82px;
}

.tool-control-grid input:focus,
.tool-control-grid select:focus,
.compact-field input:focus,
.regex-pattern:focus-within {
  border-color: #8eac54;
  box-shadow: 0 0 0 3px rgba(155, 201, 54, 0.13);
}

.speech-controls {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.45fr) minmax(150px, 0.45fr);
}

.speech-controls input[type="range"] {
  width: 100%;
  min-height: 38px;
  accent-color: #789d2d;
}

.stacked-inputs {
  display: grid;
  gap: 9px;
}

.stacked-inputs label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 760;
}

.stacked-inputs label:not(:first-child) {
  margin-top: 6px;
}

.stacked-inputs label span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.stacked-inputs input,
.stacked-inputs textarea {
  width: 100%;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
}

.stacked-inputs input {
  min-height: 50px;
}

.stacked-inputs textarea {
  min-height: 155px;
}

.list-compare-output[hidden] {
  display: none !important;
}

.social-report-output[hidden] {
  display: none !important;
}

.seo-report-output[hidden] {
  display: none !important;
}

.meta-report-output[hidden] {
  display: none !important;
}

.social-limit-report {
  min-height: 360px;
  padding: 14px;
  overflow: auto;
  background: #eeece5;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.social-report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 11px;
}

.social-summary-card {
  display: grid;
  min-height: 96px;
  padding: 14px 16px;
  align-content: end;
  border: 1px solid rgba(23, 34, 29, 0.13);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(23, 34, 29, 0.05);
}

.social-summary-total {
  background: var(--lumo);
}

.social-summary-closest {
  background: var(--sky);
}

.social-summary-card span {
  margin-bottom: auto;
  color: rgba(23, 34, 29, 0.65);
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-summary-card strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-summary-total strong {
  font-size: 2.35rem;
}

.social-summary-card small {
  margin-top: 4px;
  color: rgba(23, 34, 29, 0.68);
  font-size: 0.62rem;
  font-weight: 680;
}

.social-limit-list {
  display: grid;
  gap: 9px;
}

.social-limit-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 86px;
  padding: 12px 13px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(23, 34, 29, 0.045);
}

.social-limit-card.is-near {
  background: #fffaf0;
  border-color: #e4c46f;
}

.social-limit-card.is-over {
  background: #fff2ed;
  border-color: #e7a18d;
}

.social-platform-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.social-platform-instagram {
  color: var(--ink);
  background: var(--coral);
}

.social-platform-linkedin {
  color: var(--ink);
  background: var(--sky);
}

.social-platform-facebook {
  color: var(--ink);
  background: #dce9ff;
}

.social-platform-body,
.social-platform-body header {
  min-width: 0;
}

.social-platform-body header,
.social-limit-metrics {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.social-platform-body h3 {
  margin: 0;
  overflow: hidden;
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-limit-badge {
  padding: 3px 7px;
  flex: 0 0 auto;
  color: #54741d;
  background: #effbdc;
  border: 1px solid #d4eab0;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.is-near .social-limit-badge {
  color: #7b5b08;
  background: #fff1bf;
  border-color: #ebd27e;
}

.is-over .social-limit-badge {
  color: #9a3e27;
  background: #ffe0d6;
  border-color: #eab19f;
}

.social-limit-metrics {
  margin-top: 7px;
  font-size: 0.63rem;
}

.social-limit-metrics strong {
  font-size: 0.72rem;
}

.social-limit-metrics span {
  color: var(--muted);
  font-weight: 680;
}

.social-limit-meter {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  background: #e8e8e2;
  border-radius: 999px;
}

.social-limit-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: #91bd3f;
  border-radius: inherit;
  transition: width 180ms ease;
}

.is-near .social-limit-meter span {
  background: #e2ae35;
}

.is-over .social-limit-meter span {
  background: #df7659;
}

.seo-analysis-report {
  min-height: 360px;
  padding: 14px;
  overflow: auto;
  background: #eeece5;
  border: 1px solid var(--line);
  border-radius: 16px;
}

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

.seo-metric-card {
  display: grid;
  min-height: 100px;
  padding: 13px 15px;
  align-content: end;
  background: #fff;
  border: 1px solid rgba(23, 34, 29, 0.13);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(23, 34, 29, 0.045);
}

.seo-metric-words {
  background: var(--lumo);
}

.seo-metric-sentences {
  background: var(--sky);
}

.seo-metric-time {
  background: #fff;
}

.seo-metric-readability {
  background: #f3f1ea;
}

.seo-metric-readability.is-easy {
  background: #e8f8cc;
}

.seo-metric-readability.is-standard {
  background: #fff0c9;
}

.seo-metric-readability.is-challenging {
  background: #ffe0d6;
}

.seo-metric-card > span {
  margin-bottom: auto;
  color: rgba(23, 34, 29, 0.63);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.seo-metric-card > strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 2.05rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-metric-card > strong b {
  font: inherit;
}

.seo-metric-card > small {
  margin-top: 5px;
  color: rgba(23, 34, 29, 0.66);
  font-size: 0.6rem;
  font-weight: 680;
}

.seo-terms-card {
  margin-top: 11px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(23, 34, 29, 0.045);
}

.seo-terms-card > header {
  display: flex;
  min-height: 66px;
  padding: 11px 14px;
  align-items: center;
  justify-content: space-between;
  background: #f7f6f1;
  border-bottom: 1px solid var(--line);
}

.seo-terms-card > header p,
.seo-terms-card > header h3 {
  margin: 0;
}

.seo-terms-card > header p {
  color: #6b7e43;
  font-size: 0.55rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-terms-card > header h3 {
  margin-top: 2px;
  font-size: 0.86rem;
}

.seo-terms-card > header > span {
  padding: 5px 9px;
  color: var(--muted);
  background: #ecebe5;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 730;
}

.seo-term-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-term-list li:not(.seo-terms-empty) {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 60px;
  padding: 9px 14px;
  align-items: center;
  border-bottom: 1px solid #ecece6;
}

.seo-term-list li:last-child {
  border-bottom: 0;
}

.seo-term-rank {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #5e792b;
  background: #effbdc;
  border-radius: 9px;
  font-family: Georgia, serif;
  font-size: 0.64rem;
  font-style: italic;
}

.seo-term-details {
  min-width: 0;
}

.seo-term-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}

.seo-term-heading strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-term-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.57rem;
}

.seo-term-meter {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  background: #ecece6;
  border-radius: 999px;
}

.seo-term-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: #94bd48;
  border-radius: inherit;
  transition: width 180ms ease;
}

.seo-term-density {
  min-width: 46px;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--lumo);
  border-radius: 999px;
  font-size: 0.63rem;
  text-align: center;
}

.seo-terms-empty {
  padding: 42px 18px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.meta-analysis-report {
  min-height: 360px;
  padding: 14px;
  overflow: auto;
  background: #eeece5;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.meta-search-preview,
.meta-check-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(23, 34, 29, 0.045);
}

.meta-search-preview > header {
  display: flex;
  min-height: 62px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  background: #f7f6f1;
  border-bottom: 1px solid var(--line);
}

.meta-search-preview > header p,
.meta-search-preview > header h3 {
  margin: 0;
}

.meta-search-preview > header p {
  color: #6b7e43;
  font-size: 0.55rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-search-preview > header h3 {
  margin-top: 2px;
  font-size: 0.86rem;
}

.meta-search-preview > header > span {
  padding: 5px 9px;
  color: var(--muted);
  background: #ecebe5;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 730;
}

.meta-serp-result {
  min-height: 145px;
  padding: 18px 19px;
}

.meta-serp-url,
.meta-serp-result > strong,
.meta-serp-result > p {
  display: block;
}

.meta-serp-url {
  margin-bottom: 6px;
  color: #4d5156;
  font-size: 0.65rem;
}

.meta-serp-result > strong {
  overflow: hidden;
  color: #1a0dab;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-serp-result > p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #4d5156;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.meta-check-card {
  min-height: 155px;
  padding: 13px;
}

.meta-check-card > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.meta-check-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: #ecebe5;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 0.7rem;
  font-style: italic;
}

.meta-check-card > header h3,
.meta-check-card > header p {
  margin: 0;
}

.meta-check-card > header h3 {
  font-size: 0.73rem;
}

.meta-check-card > header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.52rem;
}

.meta-check-card > header > strong {
  padding: 4px 7px;
  color: var(--muted);
  background: #f0efe9;
  border: 1px solid #dfded8;
  border-radius: 999px;
  font-size: 0.54rem;
  white-space: nowrap;
}

.meta-check-card.is-good {
  background: #f5ffe5;
  border-color: #b9db7b;
}

.meta-check-card.is-good .meta-check-mark,
.meta-check-card.is-good > header > strong {
  color: #526f1e;
  background: #ddf6b3;
  border-color: #c8e49a;
}

.meta-check-card.is-short {
  background: #fffaf0;
  border-color: #e4c46f;
}

.meta-check-card.is-short .meta-check-mark,
.meta-check-card.is-short > header > strong {
  color: #785808;
  background: #fff0bd;
  border-color: #ead17b;
}

.meta-check-card.is-long {
  background: #fff2ed;
  border-color: #e7a18d;
}

.meta-check-card.is-long .meta-check-mark,
.meta-check-card.is-long > header > strong {
  color: #943b25;
  background: #ffd9ce;
  border-color: #e8ae9d;
}

.meta-length-row {
  display: flex;
  margin-top: 23px;
  align-items: baseline;
  justify-content: space-between;
}

.meta-length-row strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.meta-length-row span {
  color: var(--muted);
  font-size: 0.57rem;
}

.meta-length-meter {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  background: #e7e7e1;
  border-radius: 999px;
}

.meta-length-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: #a7aaa4;
  border-radius: inherit;
  transition: width 180ms ease;
}

.is-good .meta-length-meter span {
  background: #8db83e;
}

.is-short .meta-length-meter span {
  background: #e0ad36;
}

.is-long .meta-length-meter span {
  background: #dc7457;
}

.list-compare-report {
  min-height: 360px;
  padding: 14px;
  overflow: auto;
  background: #eeece5;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.comparison-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
}

.comparison-stat {
  display: flex;
  min-height: 72px;
  padding: 11px 13px;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--ink);
  border: 1px solid rgba(23, 34, 29, 0.13);
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(23, 34, 29, 0.05);
}

.comparison-stat span {
  font-size: 0.65rem;
  font-weight: 780;
}

.comparison-stat strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.comparison-stat-a {
  background: var(--coral);
}

.comparison-stat-b {
  background: var(--sky);
}

.comparison-stat-both {
  background: var(--lumo);
}

.comparison-groups {
  display: grid;
  gap: 11px;
}

.comparison-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(23, 34, 29, 0.045);
}

.comparison-group > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 66px;
  padding: 11px 13px;
  align-items: center;
  border-bottom: 1px solid rgba(23, 34, 29, 0.1);
}

.comparison-group-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(23, 34, 29, 0.12);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.comparison-group-a > header,
.comparison-group-a .comparison-item-mark {
  background: #fff0ea;
}

.comparison-group-a .comparison-group-mark {
  background: var(--coral);
}

.comparison-group-b > header,
.comparison-group-b .comparison-item-mark {
  background: #eaf6ff;
}

.comparison-group-b .comparison-group-mark {
  background: var(--sky);
}

.comparison-group-both > header,
.comparison-group-both .comparison-item-mark {
  background: #f0ffd6;
}

.comparison-group-both .comparison-group-mark {
  background: var(--lumo);
}

.comparison-group h3,
.comparison-group p {
  margin: 0;
}

.comparison-group h3 {
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.comparison-group p {
  color: var(--muted);
  font-size: 0.59rem;
}

.comparison-group > header > strong {
  display: grid;
  min-width: 32px;
  height: 32px;
  padding-inline: 8px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 34, 29, 0.11);
  border-radius: 999px;
  font-size: 0.75rem;
}

.comparison-group ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-group li:not(.comparison-empty) {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-height: 48px;
  padding: 8px 13px;
  align-items: center;
  border-bottom: 1px solid #ecece6;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.comparison-group li:last-child {
  border-bottom: 0;
}

.comparison-item-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.64rem;
  font-weight: 700;
}

.comparison-empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.stacked-inputs input:focus,
.stacked-inputs textarea:focus {
  border-color: #8eac54;
  box-shadow: 0 0 0 4px rgba(155, 201, 54, 0.14);
}

.generator-placeholder {
  display: grid;
  min-height: 360px;
  padding: 30px;
  place-content: center;
  color: var(--muted);
  background: #f4f3ed;
  border: 1px dashed #bfc3ba;
  border-radius: 16px;
  text-align: center;
}

.generator-placeholder > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 13px;
  place-items: center;
  color: var(--lumo);
  background: var(--ink);
  border-radius: 15px;
  font-family: Georgia, serif;
  font-style: italic;
}

.generator-placeholder strong {
  color: var(--ink);
}

.generator-placeholder p {
  margin: 3px 0 0;
  font-size: 0.72rem;
}

.code-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  tab-size: 2;
}

.json-output-source[hidden] {
  display: none !important;
}

.json-tree-toolbar > div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.json-tree-toolbar button {
  min-height: 29px;
  padding: 4px 8px;
  color: var(--muted);
  background: #eeece5;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 730;
}

.json-tree-toolbar button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--lumo);
  border-color: #acd657;
}

.json-tree-toolbar button:disabled {
  cursor: default;
  opacity: 0.45;
}

.json-tree-view {
  min-height: 360px;
  max-height: 620px;
  padding: 16px 13px 30px;
  overflow: auto;
  color: #d5ddd7;
  background: #111b16;
  border: 1px solid #2f3b34;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: 0.72rem/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
}

.json-tree-view::selection,
.json-tree-view *::selection {
  color: #111b16;
  background: var(--lumo);
}

.json-tree-empty {
  display: grid;
  min-height: 325px;
  padding: 32px;
  place-content: center;
  color: #87948c;
  text-align: center;
}

.json-tree-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  place-items: center;
  color: var(--lumo);
  background: #1b2921;
  border: 1px solid #33483a;
  border-radius: 15px;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
}

.json-tree-empty strong {
  color: #d5ddd7;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}

.json-tree-empty p {
  max-width: 310px;
  margin: 6px 0 0;
  font: 0.62rem/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
}

.json-tree-empty.is-error > span {
  color: #ffb7a1;
  background: #38231e;
  border-color: #6a3c30;
}

.json-tree-node {
  min-width: max-content;
}

.json-tree-summary,
.json-tree-line,
.json-tree-close {
  min-height: 27px;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.json-tree-summary {
  display: flex;
  gap: 0;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
}

.json-tree-summary::-webkit-details-marker {
  display: none;
}

.json-tree-summary::before {
  width: 14px;
  margin-right: 3px;
  flex: 0 0 14px;
  color: #809087;
  content: "▸";
  transition: transform 120ms ease;
}

.json-tree-node[open] > .json-tree-summary::before {
  transform: rotate(90deg);
}

.json-tree-summary:hover,
.json-tree-line:hover {
  background: rgba(255, 255, 255, 0.045);
}

.json-tree-node[open] > .json-tree-summary .json-tree-ellipsis,
.json-tree-node[open] > .json-tree-summary .json-tree-inline-close {
  display: none;
}

.json-tree-children {
  margin-left: 14px;
  padding-left: 13px;
  border-left: 1px solid rgba(202, 255, 104, 0.14);
}

.json-tree-close {
  padding-left: 25px;
}

.json-tree-count {
  margin-left: 8px;
  padding: 1px 6px;
  color: #829087;
  background: #1c2922;
  border: 1px solid #2c3b32;
  border-radius: 999px;
  font: 0.53rem/1.6 Inter, ui-sans-serif, system-ui, sans-serif;
}

.json-tree-ellipsis {
  margin-left: 7px;
  color: #76847b;
}

.json-token-key {
  color: #caff68;
}

.json-token-index {
  margin-right: 3px;
  color: #7f8d85;
  font-size: 0.64rem;
}

.json-token-string {
  color: #ffb99f;
}

.json-token-number {
  color: #8ecbff;
}

.json-token-boolean {
  color: #c5a7ff;
}

.json-token-null {
  color: #929f97;
  font-style: italic;
}

.json-token-punctuation {
  color: #a6b0aa;
}

.json-tree-more {
  min-height: 34px;
  margin: 5px 8px;
  padding: 6px 11px;
  color: var(--lumo);
  background: #1b2921;
  border: 1px solid #34483b;
  border-radius: 9px;
  cursor: pointer;
  font: 0.61rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}

.json-tree-more:hover {
  background: #23352a;
  border-color: #607d53;
}

.json-error {
  padding: 12px 22px;
  color: #8f3427;
  background: #ffebe4;
  border-top: 1px solid #f1c7b9;
  font: 0.72rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.utility-footer .is-error {
  color: #9c3829;
  font-weight: 700;
}

.regex-config {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px 22px;
  background: #eeece5;
  border-bottom: 1px solid var(--line);
}

.regex-pattern {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.regex-pattern input {
  width: 100%;
  min-height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.regex-flags {
  display: flex;
  gap: 5px;
}

.regex-flags label {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font: 0.7rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.regex-flags label:has(input:checked) {
  color: var(--ink);
  background: var(--lumo);
  border-color: #acd657;
}

.regex-flags input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.regex-preview {
  min-height: 410px;
  padding: 25px;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: 0.86rem/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.regex-placeholder {
  color: #a5aaa6;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.regex-match {
  padding: 1px 2px;
  color: var(--ink);
  background: var(--lumo);
  border: 1px solid #afd064;
  border-radius: 4px;
}

.match-details {
  max-height: 230px;
  padding: 18px 22px;
  overflow: auto;
  background: #f4f3ed;
  border-top: 1px solid var(--line);
}

.match-details > strong {
  font-size: 0.72rem;
}

.match-details ol {
  margin: 9px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font: 0.68rem/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.diff-mode-bar {
  display: flex;
  gap: 20px;
  min-height: 64px;
  padding: 10px 22px;
  align-items: center;
  justify-content: space-between;
  background: #eeece5;
  border-bottom: 1px solid var(--line);
}

.diff-mode-bar > div:first-child strong,
.diff-mode-bar > div:first-child span {
  display: block;
}

.diff-mode-bar > div:first-child strong {
  font-size: 0.72rem;
}

.diff-mode-bar > div:first-child span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.61rem;
}

.diff-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 4px;
  padding: 4px;
  flex: 0 0 auto;
  background: #deded7;
  border: 1px solid #d0d1ca;
  border-radius: 12px;
}

.diff-mode-switch button {
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 760;
}

.diff-mode-switch button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #6c7756;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 0.58rem;
}

.diff-mode-switch button:hover {
  color: var(--ink);
}

.diff-mode-switch button.is-active {
  color: var(--ink);
  background: var(--lumo);
  box-shadow: 0 2px 8px rgba(23, 34, 29, 0.12);
}

.diff-mode-switch button.is-active span {
  color: var(--lumo);
  background: var(--ink);
}

.diff-inputs textarea {
  min-height: 250px;
}

.diff-toolbar {
  gap: 20px;
  min-height: 62px;
  padding: 10px 22px;
  justify-content: space-between;
  background: #eeece5;
  border-top: 1px solid var(--line);
}

.diff-legend {
  gap: 15px;
  color: var(--muted);
  font-size: 0.67rem;
}

.diff-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.diff-legend i {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(23, 34, 29, 0.12);
  border-radius: 3px;
}

.legend-added {
  background: #dff4ba;
}

.legend-removed {
  background: #ffe0d6;
}

.legend-same {
  background: #e8e8e2;
}

.diff-result {
  min-height: 250px;
  max-height: 520px;
  overflow: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (min-width: 961px) {
  .tool-fullscreen-button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.66rem;
    font-weight: 760;
    line-height: 1;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .tool-fullscreen-button:hover {
    background: var(--lumo);
    border-color: #afd45f;
    transform: translateY(-1px);
  }

  .tool-fullscreen-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .tool-fullscreen-button .fullscreen-icon-collapse {
    display: none;
  }

  .is-tool-fullscreen .tool-fullscreen-button .fullscreen-icon-expand {
    display: none;
  }

  .is-tool-fullscreen .tool-fullscreen-button .fullscreen-icon-collapse {
    display: block;
  }

  .counter-app.is-tool-fullscreen,
  .utility-app.is-tool-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .is-tool-fullscreen > .counter-topbar {
    min-height: 60px;
    padding-inline: 28px;
    flex: 0 0 60px;
  }

  .is-tool-fullscreen.counter-app .counter-workspace {
    min-height: 0;
    flex: 1;
  }

  .is-tool-fullscreen .editor-panel,
  .is-tool-fullscreen .text-pane {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .is-tool-fullscreen .editor-panel {
    padding: 28px;
  }

  .is-tool-fullscreen .stats-panel {
    min-height: 0;
    overflow-y: auto;
  }

  .is-tool-fullscreen.utility-app > .split-editor {
    min-height: 0;
    flex: 1;
  }

  .is-tool-fullscreen .text-pane textarea,
  .is-tool-fullscreen .editor-panel textarea,
  .is-tool-fullscreen .regex-preview,
  .is-tool-fullscreen .generator-placeholder {
    min-height: 0;
    height: 100%;
    flex: 1;
    resize: none;
  }

  .is-tool-fullscreen .stacked-inputs {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
  }

  .is-tool-fullscreen .list-compare-report {
    min-height: 0;
    flex: 1;
  }

  .is-tool-fullscreen .social-limit-report {
    min-height: 0;
    flex: 1;
  }

  .is-tool-fullscreen .seo-analysis-report {
    min-height: 0;
    flex: 1;
  }

  .is-tool-fullscreen .meta-analysis-report {
    min-height: 0;
    flex: 1;
  }

  .is-tool-fullscreen .match-details {
    max-height: 22dvh;
    flex: 0 0 auto;
  }

  .is-tool-fullscreen.diff-app > .diff-inputs {
    min-height: 0;
    flex: 0 1 38%;
  }

  .is-tool-fullscreen.diff-app > .diff-result {
    min-height: 0;
    max-height: none;
    flex: 1;
  }

  .is-tool-fullscreen .diff-empty {
    min-height: 100%;
  }

  .is-tool-fullscreen .utility-toolbar,
  .is-tool-fullscreen .case-controls,
  .is-tool-fullscreen .tool-control-grid,
  .is-tool-fullscreen .regex-config,
  .is-tool-fullscreen .diff-mode-bar,
  .is-tool-fullscreen .diff-toolbar,
  .is-tool-fullscreen .utility-footer,
  .is-tool-fullscreen .json-error {
    flex: 0 0 auto;
  }

  .is-tool-fullscreen .json-tree-view {
    min-height: 0;
    max-height: none;
    flex: 1;
  }
}

.diff-empty {
  display: grid;
  min-height: 250px;
  place-content: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.diff-empty[hidden] {
  display: none;
}

.diff-empty strong,
.diff-empty span {
  display: block;
}

.diff-empty strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.9rem;
}

.diff-empty span {
  font-size: 0.72rem;
}

.diff-lines {
  margin: 0;
  padding: 14px 0;
  list-style: none;
  counter-reset: diff-line;
}

.word-diff {
  min-height: 250px;
  padding: 28px 32px;
  color: var(--ink);
  font: 0.92rem/2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.word-diff[hidden] {
  display: none;
}

.word-token {
  margin-inline: 1px;
  padding: 2px 5px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.word-token-added {
  background: #dff5b7;
  border-color: #c4e48e;
  text-decoration: none;
}

.word-token-removed {
  color: #8e3f2d;
  background: #ffe1d7;
  border-color: #f2c4b5;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.diff-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 34px;
  border-block: 1px solid transparent;
  counter-increment: diff-line;
  font: 0.78rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.diff-line::before {
  padding: 6px 8px;
  color: #9ba09c;
  border-right: 1px solid rgba(23, 34, 29, 0.08);
  content: counter(diff-line);
  text-align: right;
  user-select: none;
}

.diff-marker {
  display: none;
}

.diff-content {
  padding: 6px 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.diff-added {
  background: #eaf8ce;
  border-color: #d6edaa;
}

.diff-removed {
  background: #ffebe4;
  border-color: #f8d8cc;
}

.diff-added .diff-content::before,
.diff-removed .diff-content::before {
  display: inline-block;
  width: 19px;
  color: #58831a;
  content: "+";
  font-weight: 800;
}

.diff-removed .diff-content::before {
  color: #b5563b;
  content: "−";
}

.stat-added strong {
  color: #58831a;
}

.stat-removed strong {
  color: #b5563b;
}

.content-section {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 86px;
  padding-block: 110px 130px;
}

.prose-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.prose-columns {
  display: grid;
  gap: 0;
}

.prose-columns article {
  position: relative;
  padding: 29px 0 29px 54px;
  border-top: 1px solid var(--line);
}

.prose-columns article:last-child {
  border-bottom: 1px solid var(--line);
}

.prose-columns article > span {
  position: absolute;
  top: 32px;
  left: 0;
  color: #71853e;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
}

.prose-columns h3 {
  margin-bottom: 7px;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.prose-columns p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.category-about {
  padding-block: 48px 110px;
}

.category-about-copy {
  align-self: center;
  padding: 28px 30px;
  color: var(--muted);
  background: rgba(251, 250, 246, 0.76);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.87rem;
  line-height: 1.75;
}

.category-about-copy p {
  margin: 0;
}

.category-about-copy p + p {
  margin-top: 14px;
}

.category-about-copy strong {
  color: var(--ink);
}

.empty-state {
  min-height: 650px;
  padding-block: 145px;
}

.empty-state h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 8vw, 7rem);
}

.empty-state > p:not(.eyebrow) {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid #7ba128;
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .split-resizer {
    display: none;
  }

  .split-editor.is-resizable-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counter-workspace.is-resizable-split {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 18px;
  }

  .header-inner nav > a:not(.nav-cta) {
    display: none;
  }

  .category-nav a {
    gap: 6px;
    padding-inline: 7px;
    font-size: 0.62rem;
  }

  .category-nav a > span {
    min-width: 21px;
    height: 21px;
  }

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

  .category-directory,
  .tool-directory {
    grid-template-columns: 1fr;
  }

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

  .tool-sidebar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-block: 82px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .text-desk {
    width: min(620px, 100%);
    justify-self: center;
  }

  .section-heading,
  .principles-panel,
  .content-section {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .content-section {
    gap: 38px;
  }

  .principles-panel {
    gap: 50px;
  }

  .counter-workspace {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stats-panel > p:first-child,
  .stat-list,
  .stats-panel .local-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
    min-height: 64px;
  }

  .brand img {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .header-inner nav {
    display: none;
  }

  .header-search {
    grid-template-columns: 1fr;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    justify-self: end;
    background: var(--surface);
  }

  .header-search > span,
  .header-search kbd,
  .category-nav-wrap {
    display: none;
  }

  .mobile-tool-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 35;
    display: block;
    padding: 8px 14px;
    background: rgba(251, 250, 246, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(23, 34, 29, 0.05);
    backdrop-filter: blur(16px);
  }

  .mobile-tool-bar button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 43px;
    padding: 7px 12px;
    color: var(--ink);
    background: #eeece5;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    text-align: left;
  }

  .mobile-tool-bar button span:first-child {
    overflow: hidden;
    font-size: 0.71rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tool-bar button span:first-child small,
  .mobile-tool-bar button span:first-child strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tool-bar button span:first-child small {
    color: var(--muted);
    font-size: 0.55rem;
    line-height: 1.25;
  }

  .mobile-tool-bar button span:first-child strong {
    margin-top: 1px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .mobile-tool-bar button span:last-child {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 690;
  }

  .tool-finder {
    width: 100%;
    max-height: 86dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 23px 23px 0 0;
  }

  .tool-finder-panel {
    max-height: 86dvh;
  }

  .tool-finder-header {
    padding: 19px 18px 12px;
  }

  .tool-finder-header h2 {
    font-size: 1.65rem;
  }

  .finder-search {
    margin-inline: 18px;
  }

  .finder-search input {
    min-height: 48px;
    font-size: 1rem;
  }

  .finder-categories {
    padding: 13px 18px;
  }

  .finder-results {
    padding: 0 10px max(18px, env(safe-area-inset-bottom));
  }

  .finder-tool {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    min-height: 70px;
    padding-inline: 9px;
  }

  .finder-tool-category {
    display: none;
  }

  .tool-finder-footer {
    display: none;
  }

  .hero {
    gap: 52px;
    padding-block: 66px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 16vw, 5rem);
  }

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

  .hero-promises {
    gap: 12px 18px;
    flex-wrap: wrap;
  }

  .text-desk {
    padding: 12px;
    border-radius: 23px;
    transform: none;
  }

  .desk-paper {
    min-height: 230px;
    padding: 34px 25px;
  }

  .sample-copy {
    font-size: 1.8rem;
  }

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

  .proof-grid p {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proof-grid p:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 84px;
  }

  .section-heading h2 {
    font-size: 3.25rem;
  }

  .home-category-grid,
  .popular-list {
    grid-template-columns: 1fr;
  }

  .home-category-card {
    min-height: 158px;
  }

  .popular-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

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

  .tool-card-featured {
    grid-row: auto;
    grid-column: auto;
    min-height: 500px;
  }

  .tool-card-featured::after {
    font-size: 16rem;
  }

  .principles-panel {
    padding: 34px 24px;
    border-radius: 25px;
  }

  .principles-copy h2 {
    font-size: 3.1rem;
  }

  .footer-inner {
    display: flex;
    min-height: 150px;
    padding-block: 28px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer-inner > p {
    margin-top: 12px;
  }

  .footer-inner > p:last-child {
    align-self: flex-start;
  }

  .directory-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 42px 28px;
  }

  .directory-back {
    margin-bottom: 22px;
  }

  .directory-heading {
    gap: 14px;
  }

  .directory-mark {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
  }

  .directory-heading h1 {
    margin-bottom: 9px;
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .directory-heading > div > p:last-child {
    font-size: 0.8rem;
  }

  .tool-directory {
    min-height: 180px;
    padding-bottom: 36px;
  }

  .directory-tool {
    min-height: 82px;
    padding: 13px 14px;
  }

  .directory-empty {
    padding: 48px 20px;
  }

  .directory-cta {
    align-items: flex-start;
    margin-bottom: 54px;
    flex-direction: column;
    gap: 15px;
  }

  .category-directory {
    padding-bottom: 70px;
  }

  .category-tool-list a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .category-tool-list small {
    display: none;
  }

  .tool-layout.shell {
    width: 100%;
  }

  .tool-page {
    padding: 18px 14px 54px;
  }

  .tool-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 16px;
  }

  .tool-heading h1 {
    font-size: clamp(2.2rem, 11vw, 2.75rem);
  }

  .tool-heading > p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.76rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .counter-app {
    border-radius: 20px;
  }

  .editor-panel {
    padding: 15px;
  }

  textarea {
    min-height: 330px;
    padding: 20px;
    font-size: 1rem;
  }

  .editor-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .stats-panel > p:first-child,
  .stat-list,
  .stats-panel .local-note {
    grid-column: auto;
  }

  .utility-app {
    overflow: visible;
    border-radius: 18px;
  }

  .utility-toolbar,
  .case-controls {
    overflow-x: auto;
    padding-inline: 15px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .tool-control-grid,
  .tool-control-grid-short,
  .speech-controls {
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
    overflow-x: auto;
    padding: 12px 15px;
  }

  .tool-control-grid .option-check {
    align-self: center;
  }

  .regex-config {
    grid-template-columns: 1fr;
    padding: 12px 15px;
  }

  .regex-flags {
    overflow-x: auto;
  }

  .regex-preview {
    min-height: min(54vh, 430px);
    padding: 20px;
  }

  .generator-placeholder {
    min-height: min(45vh, 350px);
  }

  .stacked-inputs textarea {
    min-height: 145px;
  }

  .list-compare-report {
    min-height: min(54vh, 430px);
    padding: 10px;
  }

  .social-limit-report {
    min-height: min(54vh, 430px);
    padding: 10px;
  }

  .seo-analysis-report {
    min-height: min(54vh, 430px);
    padding: 10px;
  }

  .meta-analysis-report {
    min-height: min(54vh, 430px);
    padding: 10px;
  }

  .meta-check-grid {
    grid-template-columns: 1fr;
  }

  .meta-serp-result {
    min-height: 132px;
    padding: 16px;
  }

  .meta-check-card {
    min-height: 145px;
  }

  .seo-metric-card {
    min-height: 90px;
    padding: 11px 12px;
  }

  .seo-metric-card > strong {
    font-size: 1.75rem;
  }

  .seo-term-list li:not(.seo-terms-empty) {
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 10px;
  }

  .social-report-summary {
    gap: 8px;
  }

  .social-summary-card {
    min-height: 88px;
    padding: 12px;
  }

  .social-summary-card strong {
    font-size: 1.35rem;
  }

  .social-summary-total strong {
    font-size: 2rem;
  }

  .social-limit-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 10px;
  }

  .social-platform-mark {
    width: 38px;
    height: 38px;
  }

  .comparison-stat {
    min-height: 65px;
    padding: 9px;
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .comparison-stat strong {
    font-size: 1.7rem;
  }

  .comparison-group > header {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .comparison-group p {
    display: none;
  }

  .utility-toolbar::-webkit-scrollbar,
  .case-controls::-webkit-scrollbar {
    display: none;
  }

  .option-check,
  .case-button {
    flex: 0 0 auto;
  }

  .mobile-panel-tabs {
    position: sticky;
    top: 120px;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    background: #e8e7df;
    border-bottom: 1px solid var(--line);
  }

  .mobile-panel-tabs-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-panel-tabs button {
    min-height: 40px;
    padding: 5px 7px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 750;
  }

  .mobile-panel-tabs button.is-active {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 2px 7px rgba(23, 34, 29, 0.08);
  }

  [data-mobile-panel].is-mobile-hidden {
    display: none !important;
  }

  .split-editor {
    display: block;
  }

  .split-editor.is-resizable-split {
    display: block;
  }

  .text-pane {
    padding: 15px;
  }

  .text-pane + .text-pane {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .text-pane textarea {
    min-height: min(54vh, 430px);
  }

  .json-tree-view {
    min-height: min(54vh, 430px);
    max-height: none;
    padding: 12px 9px 24px;
    font-size: 0.68rem;
  }

  .json-tree-toolbar {
    align-items: flex-start;
  }

  .json-tree-toolbar > div {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .json-tree-toolbar > div > span {
    width: 100%;
    text-align: right;
  }

  .diff-inputs textarea {
    min-height: min(45vh, 360px);
  }

  .diff-mode-bar {
    gap: 9px;
    min-height: 58px;
    padding: 8px 12px;
  }

  .diff-mode-bar > div:first-child span {
    display: none;
  }

  .diff-mode-switch {
    grid-template-columns: repeat(2, minmax(74px, 1fr));
  }

  .diff-mode-switch button {
    min-height: 36px;
    padding-inline: 8px;
  }

  .word-diff {
    min-height: min(46vh, 370px);
    padding: 21px 18px;
    font-size: 0.84rem;
    line-height: 2.05;
  }

  .utility-footer {
    position: sticky;
    z-index: 14;
    bottom: 0;
    min-height: 64px;
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
    flex-wrap: nowrap;
    box-shadow: 0 -12px 30px rgba(23, 34, 29, 0.1);
  }

  .utility-footer > p {
    display: none;
  }

  .utility-footer .mini-stats {
    gap: 10px;
    margin-right: auto;
  }

  .utility-actions {
    margin-left: auto;
  }

  .utility-actions .button-small {
    min-height: 42px;
  }

  .diff-summary .mini-stats {
    width: auto;
    flex-wrap: nowrap;
  }

  .diff-toolbar {
    align-items: flex-start;
    padding: 14px 15px;
    flex-direction: column;
  }

  .diff-result {
    min-height: min(46vh, 370px);
  }

  .content-section {
    padding-block: 80px 100px;
  }

  .category-about {
    padding-block: 34px 70px;
  }

  .category-about-copy {
    padding: 22px;
  }

  .prose-intro h2 {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 82%, white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 9px;
  list-style: none;
  min-height: 42px;
  padding: 7px 7px 7px 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.language-switcher summary::-webkit-details-marker { display: none; }

.language-switcher summary:hover {
  background: color-mix(in srgb, var(--lumo) 10%, white);
  border-color: color-mix(in srgb, var(--lumo-deep) 48%, var(--line));
}

.language-switcher summary:focus-visible {
  outline: 0;
  border-color: var(--lumo-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lumo) 26%, transparent);
}

.language-switcher summary > span {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  line-height: 0;
  transition: background 160ms ease, transform 180ms ease;
}

.language-switcher summary > span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.7px solid var(--ink);
  border-bottom: 1.7px solid var(--ink);
  content: "";
  transform: translate(-50%, -68%) rotate(45deg);
}

.language-switcher[open] summary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.language-switcher[open] summary > span {
  background: color-mix(in srgb, var(--lumo) 28%, transparent);
  transform: rotate(180deg);
}

.language-switcher[open] summary > span::before {
  border-color: var(--lumo);
}

.language-switcher > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgb(18 33 27 / 14%);
  display: grid;
  min-width: 205px;
  overflow: hidden;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}

.language-switcher > div a {
  align-items: center;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 12px;
}

.language-switcher > div a:hover,
.language-switcher > div a.is-active {
  background: color-mix(in srgb, var(--lumo) 45%, white);
  color: var(--ink);
}

.language-switcher > div a.is-active::after {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--lumo);
  content: "✓";
  font-size: 0.65rem;
  font-weight: 900;
}

.text-language-control {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  margin-left: auto;
  padding: 3px 4px 3px 10px;
  background: color-mix(in srgb, var(--surface) 82%, white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.counter-topbar:has(.text-language-control) {
  column-gap: 16px;
}

.text-language-control:hover {
  background: color-mix(in srgb, var(--lumo) 8%, white);
  border-color: color-mix(in srgb, var(--lumo-deep) 42%, var(--line));
}

.text-language-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.text-language-control select {
  appearance: none;
  max-width: 150px;
  min-height: 26px;
  padding: 3px 30px 3px 9px;
  background-color: color-mix(in srgb, var(--lumo) 12%, white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.75 3 3 3-3' stroke='%2317221d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 12px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  cursor: pointer;
}

.text-language-control select:focus {
  outline: 0;
}

.text-language-control:focus-within {
  border-color: var(--lumo-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lumo) 26%, transparent);
}

.localized-faq {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 28px;
}

.localized-faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.localized-faq summary {
  cursor: pointer;
  font-weight: 850;
}

.localized-faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .counter-topbar:has(.text-language-control) {
    gap: 8px;
    padding-inline: 14px;
  }

  .counter-topbar:has(.text-language-control) > span:last-child {
    display: none;
  }

  .text-language-control {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .text-language-label {
    display: none;
  }

  .text-language-control {
    padding-left: 4px;
  }

  .text-language-control select {
    max-width: 118px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px auto;
    gap: 8px;
  }

  .header-inner nav {
    display: flex;
  }

  .header-inner nav > a {
    display: none;
  }

  .language-switcher summary {
    max-width: 116px;
    overflow: hidden;
    padding-inline: 10px;
    text-overflow: ellipsis;
  }

  .language-switcher > div {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-height) + 8px);
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}
