:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --bg-strong: #f1f5ff;
  --surface: #ffffff;
  --surface-soft: #f6f7f8;
  --surface-blue: #f2f6ff;
  --text: #101827;
  --muted: #5e6875;
  --muted-strong: #344154;
  --line: #e3e7ed;
  --line-strong: #c8d1dc;
  --primary: #155dfc;
  --primary-strong: #0b45c9;
  --success: #087a55;
  --warning: #8a5200;
  --max: 1180px;
  --radius: 10px;
  --shadow-focus: 0 0 0 3px rgba(21, 93, 252, 0.16);
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d16;
  --bg-strong: #0d1830;
  --surface: #0f1726;
  --surface-soft: #121d2f;
  --surface-blue: #102348;
  --text: #f4f7fb;
  --muted: #aab8cc;
  --muted-strong: #d3dce9;
  --line: #233148;
  --line-strong: #35465f;
  --primary: #6ea2ff;
  --primary-strong: #9bbcff;
  --success: #5ee0ad;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  --site-header-height: 65px;
  padding-top: var(--site-header-height);
}

body.is-drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  height: var(--site-header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  min-height: var(--site-header-height);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 860;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-word::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-right: 7px;
  border-radius: 8px;
  background: url("/assets/brand-icon.png") center / contain no-repeat;
}

.brand-word span {
  color: var(--primary);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.primary-nav a,
.drawer-nav a {
  color: var(--muted-strong);
  font-weight: 780;
}

.primary-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.93rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--surface);
  color: var(--primary-strong);
}

.primary-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: max-content;
}

.language-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0 32px 0 12px;
  font-weight: 820;
}

.theme-toggle,
.menu-button,
.drawer-close,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 820;
}

.theme-toggle {
  position: relative;
  width: 42px;
  min-width: 42px;
  padding: 0;
  overflow: hidden;
  gap: 8px;
  font-size: 0 !important;
}

.theme-toggle-label,
.site-header .theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.theme-toggle:not(:has(.solar-switch))::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 5px, currentColor 5px 7px, transparent 7px),
    conic-gradient(from 0deg, currentColor 0 8deg, transparent 8deg 37deg, currentColor 37deg 45deg, transparent 45deg 82deg, currentColor 82deg 90deg, transparent 90deg 127deg, currentColor 127deg 135deg, transparent 135deg 172deg, currentColor 172deg 180deg, transparent 180deg 217deg, currentColor 217deg 225deg, transparent 225deg 262deg, currentColor 262deg 270deg, transparent 270deg 307deg, currentColor 307deg 315deg, transparent 315deg);
  color: var(--primary);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

[data-theme="dark"] .theme-toggle:not(:has(.solar-switch))::before {
  width: 19px;
  height: 19px;
  background: currentColor;
  box-shadow: inset -6px -3px 0 0 var(--surface);
  color: var(--primary-strong);
  transform: rotate(-16deg);
}

.solar-switch {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  flex: 0 0 auto;
  pointer-events: none;
}

.solar-switch svg {
  display: block;
  overflow: visible;
  width: 22px;
  height: 22px;
}

.sun-shape,
.moon-shape {
  transform-box: fill-box;
  transform-origin: center;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    stroke-dashoffset 0.36s ease;
}

.sun-shape {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  stroke-dasharray: 48;
  stroke-dashoffset: 0;
}

.moon-shape {
  opacity: 0;
  transform: scale(0.34) rotate(-16deg);
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
}

[data-theme="dark"] .solar-switch {
  color: var(--primary-strong);
}

[data-theme="dark"] .sun-shape {
  opacity: 0;
  transform: scale(0.42) rotate(22deg);
  stroke-dashoffset: 48;
}

[data-theme="dark"] .moon-shape {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  stroke-dashoffset: 0;
}

.theme-toggle:hover,
.menu-button:hover,
.drawer-close:hover,
.button:hover {
  border-color: var(--line-strong);
}

.menu-button {
  display: none;
  position: relative;
  width: 42px;
  min-width: 42px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
}

.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-button::before {
  top: 14px;
  box-shadow: 0 6px 0 currentColor;
}

.menu-button::after {
  top: 26px;
}

.is-drawer-open .menu-button::before {
  top: 20px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 currentColor;
}

.is-drawer-open .menu-button::after {
  top: 20px;
  transform: rotate(-45deg);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 17, 31, 0.42);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(88vw, 360px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 16px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: translateX(104%);
  visibility: hidden;
  transition:
    transform 0.2s ease,
    visibility 0.2s ease;
}

.is-drawer-open .drawer {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  padding: 0 12px;
}

.drawer-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.drawer-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.drawer-nav a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-strong);
}

.drawer-nav .theme-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  font-size: 0.98rem !important;
}

.drawer-nav .theme-toggle-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 0.98rem;
}

.drawer-nav .solar-switch {
  margin-left: auto;
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.58fr);
  gap: 30px;
  align-items: stretch;
  padding: 36px 0 28px;
}

.hero-copy,
.command-panel,
.launch-panel,
.home-tool-starter,
.search-console,
.catalog-map,
.content-panel {
  min-width: 0;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.status-line span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 760;
}

.hero h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-size: 3rem;
  line-height: 1.03;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.home-live-hero h1,
.search-hero h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-size: 3rem;
  line-height: 1.03;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.hero p {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.home-live-hero .hero-copy p,
.search-hero .hero-copy p {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Keep page intros calm and aligned. Short H1s should not be forced into
   narrow columns that leave a dead blank area on the right. */
.hero h1,
.home-live-hero h1,
.search-hero h1,
.comfort-hero h1,
.tools-simple-hero h1,
.simple-search-hero h1 {
  max-width: min(980px, 100%);
  text-wrap: pretty;
}

.hero p,
.home-live-hero .hero-copy p,
.search-hero .hero-copy p,
.comfort-hero .hero-copy p,
.tools-simple-hero p,
.simple-search-hero p {
  max-width: min(980px, 100%);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  padding: 0 17px;
}

.button.primary {
  border-color: var(--primary);
  background: #155dfc;
  color: #fff;
}

[data-theme="dark"] .button.primary {
  background: #155dfc;
}

.command-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.home-live-hero,
.search-hero {
  display: grid;
  gap: 34px;
  align-items: center;
  padding: 54px 0 36px;
}

.home-live-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr);
}

.search-hero {
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 0.85fr);
}

.comfort-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.68fr);
  gap: 40px;
  align-items: start;
  padding: 46px 0 30px;
}

.comfort-hero h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.comfort-hero .hero-copy p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.task-list-panel {
  min-width: 0;
  align-self: stretch;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.task-list-head {
  display: grid;
  gap: 5px;
  padding: 4px 0 14px;
}

.task-list-head span {
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.task-list-head strong {
  color: var(--text);
  font-size: 1.06rem;
}

.task-row {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 17px 28px 17px 0;
  border-top: 1px solid var(--line);
}

.task-row::after {
  content: "Open";
  position: absolute;
  top: 18px;
  right: 0;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 820;
}

.task-row strong {
  color: var(--text);
  font-size: 1rem;
}

.task-row span {
  color: var(--muted);
  font-size: 0.94rem;
}

.task-row:hover strong,
.task-row:hover::after {
  color: var(--primary);
}

.home-tool-starter,
.search-console {
  align-self: stretch;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.starter-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.starter-tabs a[aria-current="true"],
.starter-tabs a:hover {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-strong);
}

.starter-drop {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.starter-drop strong {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.2;
}

.starter-drop span,
.starter-note {
  color: var(--muted);
}

.starter-drop span {
  max-width: 42ch;
}

.starter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.starter-note {
  margin: 0;
  font-size: 0.9rem;
}

.home-hero {
  align-items: center;
  padding-top: 48px;
}

.home-hero .hero-copy {
  padding: 10px 0;
}

.launch-panel {
  align-self: stretch;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.launch-head {
  display: grid;
  gap: 4px;
}

.launch-head strong {
  color: var(--text);
  font-size: 1.05rem;
}

.launch-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.launch-list {
  display: grid;
  gap: 10px;
}

.launch-option {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.launch-option:hover {
  border-color: var(--line-strong);
  background: var(--surface-blue);
}

.launch-option strong {
  color: var(--text);
  line-height: 1.25;
}

.launch-option span {
  color: var(--muted);
  font-size: 0.92rem;
}

.command-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.command-box {
  min-height: 216px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 4px 0;
}

.command-search label {
  display: block;
}

.command-search input,
.search-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
}

.command-search input:focus,
.search-row input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.command-search input::placeholder,
.search-row input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.command-hints {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-row span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 780;
}

.section {
  padding: 28px 0;
}

.tools-home {
  padding-top: 28px;
}

.tooldesk-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 24px;
  align-items: end;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 820;
}

.tooldesk-intro h1 {
  max-width: 24ch;
  margin: 0;
  color: var(--text);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tooldesk-intro p:not(.section-kicker) {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.tooldesk-shortcuts a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 820;
  text-align: center;
}

.tooldesk-shortcuts a:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.home-tool-board {
  margin-top: 18px;
  padding: 18px;
}

.tool-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.tool-board-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tool-board-head p {
  max-width: 62ch;
  margin: 6px 0 0;
  color: var(--muted);
}

.tool-board-head > span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 780;
  white-space: nowrap;
}

.search-row label {
  display: block;
  min-width: 0;
}

.home-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 10px;
}

.home-tool-grid .tool-card {
  min-height: 156px;
  padding: 15px;
}

.section-head {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head > * {
  min-width: 0;
}

.section h2,
.content-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-head p,
.section > p,
.content-panel p,
.content-panel li,
.workflow-card span,
.category-card p,
.trust-item p {
  color: var(--muted);
}

.section-head p,
.section > p {
  max-width: 68ch;
  margin: 8px 0 0;
}

.section-link,
.text-link {
  color: var(--primary-strong);
  font-weight: 820;
}

.section-link {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.section-link:hover,
.section-link:focus-visible {
  border-color: var(--primary);
}

.workflow-grid,
.popular-grid,
.category-grid,
.guide-link-grid,
.trust-grid {
  display: grid;
  gap: 12px;
}

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

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

.workflow-card,
.category-card,
.guide-link-card,
.trust-item,
.tool-card,
.faq-item,
.content-panel,
.tool-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.workflow-card,
.category-card,
.guide-link-card,
.trust-item {
  padding: 16px;
}

.workflow-card strong,
.category-card strong,
.guide-link-card strong,
.trust-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1rem;
}

.workflow-card:hover,
.category-card:hover,
.guide-link-card:hover,
.tool-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.workflow-card em {
  display: block;
  margin-top: 18px;
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 820;
}

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

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

.guide-link-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.tool-board {
  padding: 16px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.empty-state {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  padding: 0 13px;
  font-weight: 790;
}

.filter-row button[aria-pressed="true"] {
  border-color: var(--primary);
  background: #155dfc;
  color: #fff;
}

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

.tool-card {
  min-height: 174px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  padding: 16px;
}

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

.tool-category,
.tool-formats {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.tool-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tool-meta strong {
  color: var(--primary-strong);
  font-size: 0.92rem;
}

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

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.5fr);
  gap: 16px;
  align-items: start;
}

.content-panel {
  padding: 24px;
}

.content-panel h2,
.content-panel h3 {
  margin-top: 0;
}

.content-panel li + li {
  margin-top: 8px;
}

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

.home-page .trust-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.privacy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.privacy-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.privacy-panel p {
  max-width: 72ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.comfort-notes {
  padding-block: 30px;
}

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

.note-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note-grid strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.note-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.catalog-map {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.catalog-map a {
  display: grid;
  align-content: center;
  min-height: 96px;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.catalog-map a:hover {
  border-color: var(--line-strong);
  background: var(--surface-blue);
}

.catalog-map strong {
  color: var(--text);
}

.catalog-map span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.catalog-page {
  --catalog-accent-soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
}

.catalog-hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.52fr);
  gap: 34px;
  align-items: stretch;
  padding: 48px 0 30px;
}

.catalog-hero-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 12px 0;
}

.catalog-hero-copy h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--text);
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.catalog-hero-copy p {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.catalog-finder-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.catalog-finder-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.catalog-finder-head strong,
.catalog-filter-panel strong,
.catalog-filter-note strong,
.catalog-help-grid strong {
  color: var(--text);
}

.catalog-finder-head span {
  max-width: 18ch;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  text-align: right;
}

.catalog-search-form label,
.catalog-inline-search label {
  display: block;
}

.catalog-search-form input,
.catalog-inline-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
}

.catalog-search-form input:focus,
.catalog-inline-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.format-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-shortcuts a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 820;
}

.format-shortcuts a:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.catalog-paths,
.catalog-help-section {
  padding: 26px 0;
}

.catalog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.catalog-section-heading h2,
.catalog-results-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.catalog-section-heading p,
.catalog-results-head p,
.catalog-filter-panel p,
.catalog-help-grid p {
  margin: 7px 0 0;
  color: var(--muted);
}

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

.catalog-path-grid a {
  min-height: 178px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.catalog-path-grid a:hover {
  border-color: var(--line-strong);
  background: var(--catalog-accent-soft);
}

.catalog-path-grid span {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 840;
}

.catalog-path-grid strong {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}

.catalog-path-grid em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 780;
}

.catalog-workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 28px 0;
}

.catalog-filter-panel,
.catalog-results-panel,
.catalog-help-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.catalog-filter-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
  padding: 16px;
}

.catalog-filter-row {
  display: grid;
  gap: 8px;
  margin: 0;
}

.catalog-filter-row button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
}

.catalog-filter-note {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalog-results-panel {
  min-width: 0;
  padding: 18px;
}

.catalog-results-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.catalog-inline-search {
  margin-bottom: 14px;
}

.catalog-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.catalog-page .tool-card {
  min-height: 186px;
  border-radius: 12px;
  background: var(--surface);
}

.catalog-page .tool-card:hover {
  background: var(--catalog-accent-soft);
}

.catalog-page .tool-category {
  width: max-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.catalog-page .tool-meta {
  align-items: end;
}

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

.catalog-help-grid article {
  padding: 18px;
}

.tools-directory-page {
  --directory-panel: var(--surface);
  --directory-panel-soft: var(--surface-soft);
}

.tools-directory-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.5fr);
  gap: 32px;
  align-items: end;
  padding: 42px 0 24px;
  border-bottom: 1px solid var(--line);
}

.tools-directory-header h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.tools-directory-header p {
  max-width: 72ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.tools-directory-search {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--directory-panel);
}

.tools-directory-search label {
  display: block;
}

.tools-directory-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--directory-panel-soft);
  color: var(--text);
  padding: 0 14px;
}

.tools-directory-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.tools-directory-search span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.tools-directory-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0 30px;
}

.tools-directory-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.directory-sidebar-block,
.directory-sidebar-note,
.tools-directory-content,
.directory-guidance {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--directory-panel);
}

.directory-sidebar-block,
.directory-sidebar-note {
  padding: 14px;
}

.directory-sidebar-block > strong,
.directory-sidebar-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.directory-filter-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.directory-filter-list button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
}

.directory-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-chip-list a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--directory-panel-soft);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 820;
}

.directory-chip-list a:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.directory-sidebar-note p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.directory-sidebar-note a {
  color: var(--primary-strong);
  font-weight: 820;
}

.tools-directory-content {
  min-width: 0;
  padding: 18px;
}

.directory-content-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.directory-content-head h2,
.directory-guidance h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.directory-content-head p,
.directory-guidance p {
  max-width: 70ch;
  margin: 7px 0 0;
  color: var(--muted);
}

.tool-group-section {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.tool-group-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.tool-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.tool-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.2;
}

.tool-group-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.tool-group-head span {
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 820;
  white-space: nowrap;
}

.directory-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 10px;
}

.tools-directory-page .tool-card {
  min-height: 160px;
  border-radius: 12px;
  background: var(--directory-panel);
}

.tools-directory-page .tool-card:hover {
  background: var(--surface-blue);
}

.tools-directory-page .tool-category {
  width: max-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--directory-panel-soft);
  color: var(--muted-strong);
}

.tools-directory-page .tool-meta {
  align-items: end;
}

.directory-guidance {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 0.8fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin: 12px 0 34px;
}

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

.directory-guidance-grid article {
  min-height: 104px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--directory-panel-soft);
}

.directory-guidance-grid strong {
  color: var(--text);
}

.directory-guidance-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.search-console .command-box {
  min-height: auto;
  align-content: stretch;
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 780;
}

.suggestion-row a:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

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

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

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

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

.guide-card,
.task-guide-card,
.guide-sidebar,
.article-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-card {
  min-height: 230px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.task-guide-card {
  min-height: 250px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 18px;
}

.task-guide-card > span {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-card h2,
.guide-card h3,
.task-guide-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.2;
}

.guide-card p,
.task-guide-card p,
.guide-card li,
.guide-sidebar p,
.guide-sidebar li,
.article-body p,
.article-body li {
  color: var(--muted);
}

.guide-card p {
  margin: 0;
}

.task-guide-card p {
  margin: 0;
}

.guide-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.guide-card-meta span,
.article-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.guide-card-actions a,
.task-guide-actions a,
.article-body a {
  color: var(--primary-strong);
  font-weight: 820;
}

.task-guide-actions {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.guide-sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.guide-sidebar h2,
.guide-sidebar h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.15rem;
}

.guide-sidebar ul,
.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 20px;
}

.guide-sidebar li + li,
.article-body li + li {
  margin-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  padding: 28px 0 56px;
}

.article-body {
  padding: 28px;
}

.article-body h2 {
  margin: 30px 0 10px;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  max-width: 72ch;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-body th,
.article-body td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--text);
  background: var(--surface-soft);
}

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

.reader-note {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.reader-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

.reader-note p {
  margin: 0;
  color: var(--muted-strong);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.52fr);
  gap: 16px;
  align-items: start;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.contact-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field span {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 780;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 13px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 18px;
  align-items: start;
}

.legal-article,
.legal-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-article {
  padding: 28px;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-toc a:hover {
  color: var(--primary-strong);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.legal-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 760;
}

.legal-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
}

.legal-section li + li {
  margin-top: 5px;
}

.legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 820;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

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

.footer-shell {
  width: min(1440px, calc(100% - 54px));
  margin: 0 auto;
  padding: 38px 0 24px;
}

.footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(190px, 1fr);
  gap: 38px;
  padding-top: 24px;
}

.footer-top:has(.footer-brand) {
  grid-template-columns: minmax(220px, 1.25fr) repeat(5, minmax(145px, 1fr));
}

.footer-brand {
  max-width: 54ch;
}

.footer-brand .brand-word {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 18px;
}

.footer-brand .brand-word::before {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand strong,
.footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: end;
  gap: 8px;
}

.footer-shortcuts a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 820;
}

.footer-shortcuts a:hover,
.footer-shortcuts a:focus-visible {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.footer-col a {
  display: block;
  margin: 13px 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 720;
}

.footer-col a:hover {
  color: var(--primary-strong);
}

.footer-company {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-bottom a {
  color: var(--muted-strong);
}

.footer-bottom a:hover {
  color: var(--primary-strong);
}

.cookie-sheet {
  position: fixed;
  inset: auto 14px 14px;
  z-index: 120;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-sheet.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-sheet.is-hiding {
  opacity: 0;
  transform: translateY(18px);
}

.cookie-sheet-panel {
  position: relative;
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  color: var(--text);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.cookie-sheet-copy {
  min-width: 0;
  padding-right: 34px;
}

.cookie-kicker {
  margin: 0 0 6px;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cookie-sheet h2 {
  margin: 0 0 7px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.cookie-sheet p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-sheet a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 850;
}

.cookie-sheet-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cookie-sheet-options[hidden] {
  display: none !important;
}

.cookie-sheet [hidden] {
  display: none !important;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.cookie-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.cookie-sheet-actions .button {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-sheet-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.blog-index-page,
.blog-article-page {
  padding-top: 32px;
}

.blog-index-hero,
.blog-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.blog-index-hero {
  grid-template-columns: 1fr;
}

.blog-article-hero {
  grid-template-columns: 1fr;
  align-items: start;
}

.blog-index-hero .blog-topic-panel {
  max-width: 100%;
}

.blog-index-hero h1,
.blog-article-hero h1 {
  max-width: min(1060px, 100%);
  margin: 0;
  color: var(--text);
  font-size: clamp(2.45rem, 3.2vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.blog-index-hero p,
.blog-article-hero p {
  max-width: min(980px, 100%);
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.blog-topic-panel,
.blog-hero-media,
.blog-lead-card,
.blog-feature-row,
.blog-feature-card,
.blog-card,
.blog-related-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.blog-topic-panel {
  padding: 18px;
}

.blog-topic-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.04rem;
}

.blog-topic-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-topic-panel a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 780;
}

.blog-topic-panel a:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.blog-feature-section,
.blog-library-section {
  margin-top: 34px;
}

.blog-feature-section h2,
.blog-library-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.blog-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 16px;
  align-items: stretch;
}

.blog-lead-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
}

.blog-lead-media {
  min-height: 360px;
  display: block;
  overflow: hidden;
  background: var(--surface-soft);
}

.blog-lead-content {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

.blog-lead-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.48rem;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.blog-lead-content h3 a,
.blog-feature-row h3 a {
  color: inherit;
}

.blog-lead-content p {
  margin: 0;
  color: var(--muted-strong);
}

.blog-feature-list {
  display: grid;
  gap: 12px;
}

.blog-feature-row {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1fr);
}

.blog-feature-row-media {
  display: block;
  min-height: 180px;
  overflow: hidden;
  background: var(--surface-soft);
}

.blog-feature-row > div {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 16px;
}

.blog-feature-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.blog-feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.blog-feature-card,
.blog-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
}

.blog-feature-card > div,
.blog-card > div {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding: 16px;
}

.blog-feature-card h3,
.blog-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.blog-feature-card h3 a,
.blog-card h3 a {
  color: inherit;
}

.blog-feature-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

.blog-lead-media img,
.blog-feature-row-media img,
.blog-card-media img,
.blog-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-hero-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}

.blog-article-hero .blog-hero-media {
  width: min(760px, 100%);
  max-height: 320px;
}

.blog-article-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  padding: 28px 0 56px;
}

.blog-article-body {
  padding: 36px;
}

.blog-article-body > p:first-child {
  margin-top: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.article-tool-links {
  display: grid;
  gap: 16px;
  margin: 24px 0 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.article-tool-links > div:first-child span,
.rail-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 820;
}

.article-tool-links h2 {
  margin: 0;
  font-size: 1.22rem;
}

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

.article-tool-link-grid a {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.article-tool-link-grid a:hover,
.article-tool-link-grid a:focus-visible {
  border-color: var(--primary);
}

.article-tool-link-grid strong {
  color: var(--primary-strong);
  font-size: 0.96rem;
}

.article-tool-link-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-related-panel {
  position: static;
  align-self: start;
  max-height: calc(100vh - 106px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  z-index: 10;
}

.blog-related-panel.is-rail-fixed {
  position: fixed;
  top: 88px;
  left: var(--rail-fixed-left);
  width: var(--rail-fixed-width);
}

.blog-related-panel.is-rail-bottom {
  position: absolute;
  top: var(--rail-bottom-top);
  right: 0;
  width: var(--rail-fixed-width);
}

.blog-related-panel h2,
.blog-related-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.18;
  text-wrap: balance;
}

.blog-related-panel p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.rail-tool-list {
  display: grid;
  gap: 9px;
}

.rail-tool-list a {
  min-height: 74px;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.rail-tool-list a:hover,
.rail-tool-list a:focus-visible {
  border-color: var(--primary);
  background: var(--surface);
}

.rail-tool-list a strong {
  color: var(--primary-strong);
  font-size: 0.96rem;
  line-height: 1.15;
}

.rail-tool-list a span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 640;
  line-height: 1.35;
}

.rail-tool-list .primary-rail-tool {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  background: var(--surface-blue);
}

.rail-topics {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.blog-related-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-related-panel li + li {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .primary-nav {
    display: none;
  }

  .language-select {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero,
  .comfort-hero,
  .home-live-hero,
  .search-hero,
  .blog-index-hero,
  .blog-article-hero,
  .tooldesk-intro,
  .content-band,
  .split-grid,
  .legal-layout,
  .guide-layout,
  .article-layout,
  .blog-feature-layout,
  .blog-lead-card,
  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc,
  .guide-sidebar,
  .blog-related-panel {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .workflow-grid,
  .popular-grid,
  .category-grid,
  .guide-link-grid,
  .trust-grid,
  .note-grid,
  .home-page .trust-grid,
  .search-help-grid,
  .task-guide-grid,
  .guide-grid,
  .blog-feature-list,
  .blog-card-grid,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-feature-list {
    display: grid;
  }

  .blog-lead-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-feature-row {
    grid-template-columns: 1fr;
  }

  .blog-feature-row-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-shell {
    width: min(1000px, calc(100% - 32px));
  }

  .footer-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-shortcuts {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 34px;
  }

  .footer-top:has(.footer-brand) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-company {
    padding-left: 0;
    border-left: 0;
  }

  .footer-bottom {
    display: grid;
    justify-items: start;
  }

  .footer-bottom nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    --site-header-height: 58px;
  }

  .cookie-sheet {
    inset: auto 10px 10px;
  }

  .cookie-sheet-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .cookie-sheet-options {
    grid-template-columns: 1fr;
  }

  .cookie-sheet-actions {
    justify-content: stretch;
  }

  .cookie-sheet-actions .button {
    flex: 1 1 100%;
  }

  .page,
  .footer-shell {
    width: calc(100% - 24px);
  }

  .site-header {
    top: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
  }

  .nav-shell {
    width: calc(100% - 20px);
    min-height: var(--site-header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0;
    gap: 8px;
  }

  .brand-word {
    font-size: 0.98rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-word::before {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    border-radius: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle {
    min-width: 42px;
    padding: 0;
    font-size: 0.9rem;
  }

  .site-header .theme-toggle {
    display: none;
  }

  .drawer .theme-toggle {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .menu-button {
    width: 42px;
    min-width: 42px;
    min-height: 40px;
    padding: 0;
    border-radius: 10px;
    background: var(--surface);
    font-size: 0;
  }

  .hero {
    padding: 30px 0 24px;
    gap: 16px;
  }

  .home-live-hero,
  .comfort-hero,
  .search-hero,
  .blog-index-hero,
  .blog-article-hero {
    padding: 18px;
    gap: 22px;
  }

  .status-line {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
  }

  .status-line span {
    min-height: 28px;
    padding-inline: 9px;
    max-width: 100%;
    font-size: 0.8rem;
  }

  .hero h1 {
    max-width: 12.5ch;
    font-size: 2.28rem;
    line-height: 1.02;
    letter-spacing: -0.024em;
  }

  .home-live-hero h1,
  .comfort-hero h1,
  .search-hero h1,
  .blog-index-hero h1,
  .blog-article-hero h1 {
    max-width: none;
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.012em;
  }

  .hero p {
    font-size: 1rem;
    margin-top: 16px;
  }

  .home-live-hero .hero-copy p,
  .comfort-hero .hero-copy p,
  .search-hero .hero-copy p {
    font-size: 1rem;
    margin-top: 16px;
  }

  .hero-actions,
  .search-row,
  .starter-tabs,
  .tooldesk-shortcuts,
  .workflow-grid,
  .popular-grid,
  .category-grid,
  .guide-link-grid,
  .trust-grid,
  .note-grid,
  .home-page .trust-grid,
  .search-help-grid,
  .task-guide-grid,
  .guide-grid,
  .blog-feature-layout,
  .blog-feature-list,
  .blog-card-grid,
  .article-tool-link-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button,
  .search-row .button {
    width: 100%;
  }

  .footer-shell {
    width: calc(100% - 24px);
    padding-top: 32px;
  }

  .footer-hero {
    gap: 18px;
    padding-bottom: 22px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-brand .brand-word {
    margin-bottom: 12px;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-shortcuts {
    gap: 8px;
  }

  .footer-shortcuts a {
    min-height: 36px;
    padding-inline: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-top:has(.footer-brand) {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-col a {
    margin: 10px 0;
  }

  .footer-bottom {
    gap: 12px;
    font-size: 0.88rem;
  }

  .footer-bottom nav {
    gap: 10px 13px;
  }

  .command-panel {
    padding: 14px;
  }

  .launch-panel {
    padding: 14px;
  }

  .home-tool-starter,
  .search-console,
  .catalog-map {
    padding: 14px;
  }

  .starter-drop {
    min-height: 190px;
    padding: 18px;
  }

  .starter-actions,
  .privacy-panel {
    display: grid;
  }

  .starter-actions .button,
  .privacy-panel .button {
    width: 100%;
  }

  .legal-article,
  .article-body {
    padding: 20px;
  }

  .command-box {
    min-height: 190px;
  }

  .section {
    padding: 26px 0;
  }

  .section-head,
  .tool-board-head,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .tool-board-head > span {
    white-space: normal;
  }

  .tooldesk-intro {
    padding: 24px 0 16px;
  }

  .tooldesk-intro h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .home-tool-board {
    padding: 14px;
  }

  .section-head .button {
    width: 100%;
  }

  .section h2,
  .content-panel h2 {
    font-size: 1.6rem;
  }
}

.brand-logo {
  align-items: center;
  gap: 7px;
}

.brand-logo img {
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
}

.language-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0 34px 0 12px;
  font-weight: 820;
}

.home-live-match {
  background: var(--surface);
}

.live-hero-band {
  background: var(--surface-blue);
  border-bottom: 1px solid var(--line);
}

.live-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.5fr);
  gap: 54px;
  align-items: center;
  padding: 42px 0;
}

.live-hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: 3.25rem;
  line-height: 0.98;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.live-hero-copy h1 span {
  color: var(--primary);
}

.live-hero-copy p {
  max-width: 66ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.live-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.live-badges span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 780;
}

.live-upload-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.live-upload-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-upload-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 820;
  text-align: center;
}

.live-upload-tabs a[aria-current="true"] {
  color: var(--primary-strong);
  background: var(--surface-blue);
}

.live-drop-zone {
  min-height: 210px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-blue) 46%, var(--surface));
  text-align: center;
}

.live-drop-zone img {
  border-radius: 14px;
}

.live-drop-zone strong {
  color: var(--text);
  font-size: 1rem;
}

.live-drop-zone > span {
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 760;
}

.live-section-head {
  align-items: start;
}

.text-link {
  color: var(--primary-strong);
  font-weight: 820;
}

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

.live-tool-grid .workflow-card {
  min-height: 132px;
  padding: 14px;
}

.live-tool-grid .workflow-card span {
  font-size: 0.88rem;
}

.live-tool-grid .workflow-card em,
.category-card em {
  display: block;
  margin-top: 14px;
  color: var(--primary-strong);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 820;
}

.compact-section {
  padding-top: 18px;
}

.center-section-head {
  margin-bottom: 16px;
  text-align: center;
}

.center-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.15;
}

.center-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.live-trust-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.live-trust-grid .trust-item {
  min-height: 118px;
}

.live-privacy-band {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 28px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef6ff;
}

.privacy-art {
  min-height: 130px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #dcecff;
}

.privacy-art img {
  border-radius: 24px;
}

.live-privacy-band h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.live-privacy-band h2 span,
.live-privacy-band h2 strong {
  color: var(--primary);
}

.live-privacy-band p {
  max-width: 70ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.privacy-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.privacy-points span {
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 820;
}

.live-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

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

.mini-tool-grid a {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-tool-grid strong {
  color: var(--text);
}

.mini-tool-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .catalog-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 980px) {
  .language-select {
    display: none;
  }

  .catalog-hero-v2,
  .catalog-workspace,
  .tools-directory-header,
  .directory-guidance {
    grid-template-columns: 1fr;
  }

  .catalog-filter-panel {
    position: static;
  }

  .catalog-filter-row {
    display: flex;
  }

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

  .live-hero-grid,
  .live-content-grid,
  .live-privacy-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .catalog-hero-v2 {
    gap: 20px;
    padding: 30px 0 22px;
  }

  .tools-directory-header {
    gap: 18px;
    padding: 30px 0 20px;
  }

  .catalog-hero-copy h1,
  .tools-directory-header h1 {
    max-width: 12ch;
    font-size: 2.28rem;
    line-height: 1.06;
  }

  .catalog-hero-actions,
  .catalog-section-heading,
  .catalog-results-head {
    display: grid;
  }

  .catalog-hero-actions .button,
  .catalog-results-head .button {
    width: 100%;
  }

  .catalog-finder-card,
  .catalog-results-panel,
  .catalog-filter-panel,
  .tools-directory-search,
  .tools-directory-content,
  .directory-sidebar-block,
  .directory-sidebar-note,
  .directory-guidance {
    padding: 14px;
    border-radius: 12px;
  }

  .catalog-finder-head {
    display: grid;
  }

  .catalog-finder-head span {
    max-width: none;
    text-align: left;
  }

  .catalog-path-grid,
  .catalog-help-grid {
    grid-template-columns: 1fr;
  }

  .catalog-path-grid a {
    min-height: 150px;
  }

  .catalog-workspace,
  .tools-directory-shell {
    padding: 22px 0;
  }

  .catalog-filter-row,
  .directory-filter-list {
    display: grid;
  }

  .tools-directory-shell {
    grid-template-columns: 1fr;
  }

  .tools-directory-sidebar {
    position: static;
  }

  .tool-group-head,
  .directory-content-head {
    display: grid;
  }

  .tool-group-head span {
    white-space: normal;
  }

  .directory-guidance {
    margin-bottom: 24px;
  }

  .directory-guidance-grid {
    grid-template-columns: 1fr;
  }

  .live-hero-grid {
    gap: 22px;
    padding: 30px 0;
  }

  .live-hero-copy h1 {
    max-width: 12ch;
    font-size: 2.55rem;
    line-height: 1;
  }

  .live-badges,
  .hero-actions {
    display: grid;
  }

  .live-badges span,
  .hero-actions .button {
    width: 100%;
  }

  .live-upload-card {
    padding: 14px;
  }

  .live-drop-zone {
    min-height: 190px;
    padding: 18px;
  }

  .live-tool-grid,
  .live-category-grid,
  .live-trust-grid,
  .mini-tool-grid {
    grid-template-columns: 1fr;
  }

  .live-privacy-band {
    padding: 22px;
  }
}

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

.tools-directory-page {
  --directory-panel: var(--surface);
  --directory-panel-soft: var(--surface-soft);
  --directory-blue: var(--surface-blue);
}

.tools-directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: stretch;
  padding: 32px 0 24px;
}

.directory-hero-copy,
.directory-finder-card,
.directory-task-strip,
.tools-directory-content,
.directory-guidance {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--directory-panel);
}

.directory-hero-copy {
  display: grid;
  align-content: center;
  padding: 30px;
  background: var(--directory-blue);
}

.directory-hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--text);
  font-size: 3.1rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.directory-hero-copy p {
  max-width: 68ch;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 1.04rem;
}

.directory-finder-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 20px;
}

.directory-finder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.directory-finder-head strong {
  color: var(--text);
  font-size: 1.08rem;
}

.directory-finder-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  text-align: right;
}

.directory-finder-card label {
  display: block;
}

.directory-finder-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--directory-panel-soft);
  color: var(--text);
  padding: 0 15px;
  font-weight: 720;
}

.directory-finder-card input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.directory-finder-card input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.directory-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-format-row a,
.directory-task-grid a,
.directory-sidebar-block,
.directory-sidebar-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--directory-panel);
}

.directory-format-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  background: var(--directory-panel-soft);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 820;
}

.directory-format-row a:hover,
.directory-task-grid a:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.directory-task-strip {
  padding: 20px;
  margin: 0 0 18px;
}

.directory-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.directory-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.16;
}

.directory-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.directory-task-grid a {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  background: var(--directory-panel-soft);
}

.directory-task-grid strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.directory-task-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tools-directory-shell {
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 30px;
}

.tools-directory-sidebar {
  top: 84px;
  gap: 10px;
}

.directory-sidebar-block,
.directory-sidebar-note {
  padding: 14px;
}

.directory-sidebar-block > strong,
.directory-sidebar-note strong {
  margin-bottom: 12px;
  color: var(--text);
}

.directory-filter-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.directory-filter-list button {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  border-radius: 10px;
  padding-inline: 12px;
}

.directory-filter-list button[aria-pressed="true"] {
  background: var(--primary);
}

.directory-sidebar-note p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.91rem;
}

.directory-sidebar-note a {
  color: var(--primary-strong);
  font-weight: 820;
}

.tools-directory-content {
  padding: 0;
  overflow: hidden;
}

.directory-content-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.directory-content-head h2,
.directory-guidance h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.15;
}

.directory-content-head p,
.directory-guidance p {
  max-width: 70ch;
  margin: 7px 0 0;
  color: var(--muted);
}

.tool-group-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.tool-group-section:last-of-type {
  border-bottom: 0;
}

.tool-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.tool-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.tool-group-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.tool-group-head span {
  flex: 0 0 auto;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 820;
}

.directory-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.tools-directory-page .tool-card {
  min-height: 154px;
  border-radius: 12px;
  background: var(--directory-panel);
  padding: 15px;
}

.tools-directory-page .tool-card:hover,
.tools-directory-page .tool-card:focus-visible {
  border-color: var(--primary);
  background: var(--directory-blue);
}

.tools-directory-page .tool-category {
  width: max-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--directory-panel-soft);
  color: var(--muted-strong);
}

.tools-directory-page .tool-meta {
  align-items: end;
}

.directory-guidance {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.9fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  margin: 0 0 34px;
}

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

.directory-guidance-grid article {
  min-height: 112px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--directory-panel-soft);
}

.directory-guidance-grid strong {
  color: var(--text);
  line-height: 1.2;
}

.directory-guidance-grid span {
  color: var(--muted);
  font-size: 0.91rem;
}

@media (max-width: 980px) {
  .tools-directory-hero,
  .tools-directory-shell,
  .directory-guidance {
    grid-template-columns: 1fr;
  }

  .tools-directory-sidebar {
    position: static;
  }

  .directory-filter-list,
  .directory-task-grid,
  .directory-guidance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tools-directory-hero {
    padding-top: 18px;
    gap: 14px;
  }

  .directory-hero-copy,
  .directory-finder-card,
  .directory-task-strip {
    padding: 16px;
  }

  .directory-hero-copy h1 {
    max-width: none;
    font-size: 2.05rem;
    line-height: 1.08;
    letter-spacing: -0.014em;
  }

  .directory-finder-head,
  .directory-section-head,
  .tool-group-head {
    display: grid;
    align-items: start;
  }

  .directory-finder-head span {
    text-align: left;
  }

  .directory-filter-list,
  .directory-task-grid,
  .directory-guidance-grid,
  .directory-tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-group-section,
  .directory-content-head,
  .directory-guidance {
    padding: 16px;
  }
}

/* All tools: quiet index redesign */
.directory-index-page {
  --directory-ink: var(--text);
  --directory-muted: var(--muted);
  --directory-border: var(--line);
  --directory-quiet: color-mix(in srgb, var(--surface-blue) 68%, var(--surface) 32%);
  max-width: 1180px;
  padding-top: 42px;
  padding-bottom: 52px;
}

.directory-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.directory-index-copy {
  min-width: 0;
}

.directory-label {
  display: inline-flex;
  width: max-content;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary-strong);
  font-size: 0.93rem;
  font-weight: 830;
  line-height: 1.6;
}

.directory-index-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--directory-ink);
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.directory-index-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.directory-index-note {
  border-top: 1px solid var(--directory-border);
  padding-top: 18px;
}

.directory-index-note strong {
  display: block;
  color: var(--directory-ink);
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.directory-index-note p {
  margin: 0;
  color: var(--directory-muted);
  line-height: 1.7;
}

.directory-workbench {
  border: 1px solid var(--directory-border);
  border-radius: 14px;
  background: var(--surface);
  overflow: clip;
}

.directory-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--directory-border);
  background: var(--surface);
}

.directory-searchbar label {
  display: block;
}

.directory-searchbar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--directory-border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--directory-ink);
  padding: 0 15px;
  font-weight: 720;
}

.directory-searchbar input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.directory-searchbar input::placeholder {
  color: var(--directory-muted);
  opacity: 1;
}

.directory-searchbar [data-tool-results-status] {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 780;
  white-space: nowrap;
}

.directory-filter-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--directory-border);
  background: var(--directory-quiet);
  overflow-x: auto;
}

.directory-filter-strip button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  padding: 0 13px;
  font-weight: 820;
}

.directory-filter-strip button:hover {
  border-color: var(--directory-border);
  background: var(--surface);
}

.directory-filter-strip button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.directory-workbench-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 620px;
}

.directory-index-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  display: grid;
  gap: 0;
  padding: 18px;
  border-right: 1px solid var(--directory-border);
}

.directory-index-sidebar a {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--directory-border);
  color: var(--directory-ink);
}

.directory-index-sidebar a:first-child {
  padding-top: 0;
}

.directory-index-sidebar a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.directory-index-sidebar a:hover strong {
  color: var(--primary-strong);
}

.directory-index-sidebar span {
  color: var(--directory-muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.directory-index-sidebar strong {
  color: var(--directory-ink);
  font-size: 0.96rem;
  line-height: 1.35;
  transition: color 160ms ease;
}

.directory-results-panel {
  min-width: 0;
}

.directory-results-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--directory-border);
}

.directory-results-head h2 {
  margin: 0;
  color: var(--directory-ink);
  font-size: 1.42rem;
  letter-spacing: -0.012em;
}

.directory-results-head p {
  margin: 6px 0 0;
  color: var(--directory-muted);
}

.directory-results-head a {
  flex: 0 0 auto;
  align-self: start;
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 820;
}

.directory-index-page .tool-group-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  border-bottom: 1px solid var(--directory-border);
}

.directory-index-page .tool-group-section:last-of-type {
  border-bottom: 0;
}

.directory-index-page .tool-group-head {
  display: block;
  margin: 0;
}

.directory-index-page .tool-group-head h3 {
  margin: 0;
  color: var(--directory-ink);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.directory-index-page .tool-group-head p {
  margin: 8px 0 12px;
  color: var(--directory-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.directory-index-page .tool-group-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--directory-border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 820;
}

.directory-index-page .directory-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--directory-border);
  border-radius: 12px;
  background: var(--directory-border);
  overflow: hidden;
}

.directory-index-page .tool-card {
  min-height: 138px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  padding: 18px;
  box-shadow: none;
}

.directory-index-page .tool-card:hover,
.directory-index-page .tool-card:focus-visible {
  background: var(--directory-quiet);
  transform: none;
}

.directory-index-page .tool-category {
  width: max-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--directory-muted);
  padding: 0;
  font-size: 0.76rem;
  font-weight: 820;
}

.directory-index-page .tool-card h3 {
  margin: 0;
  color: var(--directory-ink);
  font-size: 1.03rem;
  line-height: 1.25;
}

.directory-index-page .tool-card p {
  margin: 0;
  color: var(--directory-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.directory-index-page .tool-meta {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--directory-border);
  padding-top: 12px;
}

.directory-index-page .tool-formats {
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 780;
}

.directory-index-page .tool-meta strong {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 860;
  white-space: nowrap;
}

.directory-index-page .empty-state {
  margin: 20px 26px 26px;
}

@media (max-width: 1020px) {
  .directory-index-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .directory-index-note {
    max-width: 720px;
  }

  .directory-workbench-grid {
    grid-template-columns: 1fr;
  }

  .directory-index-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--directory-border);
  }

  .directory-index-sidebar a {
    border: 1px solid var(--directory-border);
    border-radius: 999px;
    padding: 8px 11px;
    background: var(--surface);
  }

  .directory-index-sidebar span {
    display: none;
  }

  .directory-index-page .tool-group-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .directory-index-page {
    padding-top: 24px;
  }

  .directory-index-copy h1 {
    font-size: 1.9rem;
    line-height: 1.08;
    letter-spacing: -0.014em;
  }

  .directory-index-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .directory-workbench {
    border-radius: 12px;
  }

  .directory-searchbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .directory-searchbar [data-tool-results-status] {
    white-space: normal;
  }

  .directory-filter-strip {
    padding: 9px 14px;
  }

  .directory-results-head,
  .directory-index-page .tool-group-section {
    padding: 18px 14px;
  }

  .directory-results-head {
    display: grid;
    gap: 10px;
  }

  .directory-index-sidebar {
    padding: 14px;
  }

  .directory-index-sidebar a {
    border-radius: 10px;
  }

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

  .directory-index-page .tool-card {
    min-height: 0;
    padding: 16px;
  }
}

/* All tools: aligned minimal catalog pass */
.directory-index-page {
  max-width: 1120px;
  padding-top: 46px;
  padding-bottom: 56px;
}

.directory-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  align-items: end;
  margin-bottom: 24px;
}

.directory-command-copy {
  min-width: 0;
}

.directory-command-copy > span {
  display: block;
  margin-bottom: 16px;
  color: var(--primary-strong);
  font-size: 0.94rem;
  font-weight: 840;
}

.directory-command h1 {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: 2.42rem;
  line-height: 1.09;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.directory-command-copy p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.directory-command-search {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
}

.directory-command-search label {
  display: grid;
  gap: 9px;
}

.directory-command-search label > span {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 840;
}

.directory-command-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
  font-weight: 720;
}

.directory-command-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.directory-command-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.directory-command-search p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.directory-rule-row {
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.directory-rule-row p {
  max-width: 920px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.directory-rule-row strong {
  color: var(--text);
}

.directory-catalog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: clip;
}

.directory-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.directory-catalog-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.directory-catalog-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.directory-catalog .directory-filter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.directory-catalog .directory-filter-strip button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 820;
}

.directory-catalog .directory-filter-strip button:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.directory-catalog .directory-filter-strip button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.directory-catalog .tool-group-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.directory-catalog .tool-group-section:last-of-type {
  border-bottom: 0;
}

.directory-catalog .tool-group-head {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
}

.directory-catalog .tool-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  letter-spacing: -0.006em;
}

.directory-catalog .tool-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.directory-catalog .tool-group-head span {
  width: max-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 820;
}

.directory-catalog .directory-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.directory-catalog .tool-card {
  min-height: 150px;
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 15px;
  box-shadow: none;
}

.directory-catalog .tool-card:hover,
.directory-catalog .tool-card:focus-visible {
  border-color: var(--primary);
  background: var(--surface-blue);
  transform: none;
}

.directory-catalog .tool-category {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.74rem;
  font-weight: 830;
}

.directory-catalog .tool-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.28;
}

.directory-catalog .tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.directory-catalog .tool-meta {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.directory-catalog .tool-formats {
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 780;
}

.directory-catalog .tool-meta strong {
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 860;
  white-space: nowrap;
}

.directory-catalog .empty-state {
  margin: 20px 24px 24px;
}

@media (max-width: 1060px) {
  .directory-command {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .directory-command-search {
    max-width: 620px;
  }

  .directory-catalog-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .directory-catalog .directory-filter-strip {
    justify-content: flex-start;
  }

  .directory-catalog .tool-group-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .directory-catalog .tool-group-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
  }

  .directory-catalog .tool-group-head p {
    max-width: 70ch;
  }
}

@media (max-width: 820px) {
  .directory-catalog .directory-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .directory-index-page {
    padding-top: 24px;
  }

  .directory-command h1 {
    font-size: 1.78rem;
    line-height: 1.12;
    letter-spacing: -0.012em;
  }

  .directory-command-copy p {
    font-size: 0.98rem;
    line-height: 1.64;
  }

  .directory-command-search,
  .directory-catalog {
    border-radius: 10px;
  }

  .directory-catalog-head,
  .directory-catalog .tool-group-section {
    padding: 16px;
  }

  .directory-catalog .tool-group-head {
    grid-template-columns: 1fr;
  }

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

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

/* All tools: table-clean final alignment */
.tools-table-page {
  max-width: 1080px;
  padding-top: 42px;
}

.tools-table-page .directory-command {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}

.tools-table-page .directory-command-copy > span {
  margin-bottom: 14px;
}

.tools-table-page .directory-command h1 {
  max-width: 560px;
  font-size: 2.18rem;
  line-height: 1.12;
}

.tools-table-page .directory-command-copy p {
  max-width: 620px;
  margin-top: 14px;
  line-height: 1.65;
}

.tools-table-page .directory-command-search {
  border-radius: 10px;
  padding: 14px;
}

.tools-table-page .directory-catalog {
  border-radius: 10px;
}

.tools-table-page .directory-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 22px;
}

.tools-table-page .directory-catalog-head h2 {
  font-size: 1.2rem;
}

.tools-table-page .directory-catalog-head p {
  max-width: 720px;
  line-height: 1.58;
}

.tools-table-page .directory-catalog .directory-filter-strip button {
  min-height: 32px;
  border-radius: 8px;
  padding-inline: 11px;
}

.tools-table-page .directory-catalog .directory-filter-strip button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-strong);
}

.tools-table-page .directory-catalog .tool-group-section {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.tools-table-page .directory-catalog .tool-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 60%, var(--surface) 40%);
}

.tools-table-page .directory-catalog .tool-group-head h3 {
  font-size: 1rem;
}

.tools-table-page .directory-catalog .tool-group-head p {
  max-width: 640px;
  margin-top: 5px;
}

.tools-table-page .directory-catalog .tool-group-head span {
  margin-top: 0;
  border-radius: 8px;
  background: var(--surface);
}

.tools-table-page .directory-catalog .directory-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  background: var(--surface);
}

.tools-table-page .directory-catalog .tool-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(260px, 1.55fr) minmax(112px, 0.55fr) 88px;
  grid-template-rows: auto;
  gap: 18px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 15px 22px;
}

.tools-table-page .directory-catalog .tool-card:last-child {
  border-bottom: 0;
}

.tools-table-page .directory-catalog .tool-card:hover,
.tools-table-page .directory-catalog .tool-card:focus-visible {
  background: color-mix(in srgb, var(--surface-blue) 62%, var(--surface) 38%);
  border-color: var(--line);
}

.tools-table-page .directory-catalog .tool-category {
  display: none;
}

.tools-table-page .directory-catalog .tool-card h3 {
  font-size: 0.96rem;
}

.tools-table-page .directory-catalog .tool-card p {
  line-height: 1.48;
}

.tools-table-page .directory-catalog .tool-meta {
  display: contents;
}

.tools-table-page .directory-catalog .tool-formats {
  min-width: 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.35;
}

.tools-table-page .directory-catalog .tool-meta strong {
  justify-self: end;
  color: var(--primary-strong);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .tools-table-page .directory-command,
  .tools-table-page .directory-catalog-head {
    grid-template-columns: 1fr;
  }

  .tools-table-page .directory-command-search {
    max-width: none;
  }

  .tools-table-page .directory-catalog .directory-filter-strip {
    justify-content: flex-start;
  }

  .tools-table-page .directory-catalog .tool-card {
    grid-template-columns: minmax(150px, 0.8fr) minmax(240px, 1.4fr) minmax(100px, 0.55fr) 86px;
  }
}

@media (max-width: 760px) {
  .tools-table-page .directory-catalog .tool-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 8px 14px;
    align-items: start;
    padding: 15px 16px;
  }

  .tools-table-page .directory-catalog .tool-card h3,
  .tools-table-page .directory-catalog .tool-card p {
    grid-column: 1 / -1;
  }

  .tools-table-page .directory-catalog .tool-formats {
    grid-column: 1;
  }

  .tools-table-page .directory-catalog .tool-meta strong {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .tools-table-page .directory-command h1 {
    font-size: 1.72rem;
  }

  .tools-table-page .directory-catalog-head,
  .tools-table-page .directory-catalog .tool-group-head {
    padding: 16px;
  }

  .tools-table-page .directory-catalog .tool-group-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tools-table-page .directory-catalog .directory-filter-strip button {
    flex: 1 1 auto;
  }
}

/* All tools: simple card grid matching requested reference */
.tools-simple-grid-page {
  max-width: 1120px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.tools-simple-hero {
  margin-bottom: 22px;
}

.tools-simple-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 2.12rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tools-simple-hero p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.7;
}

.tools-simple-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tools-simple-filters button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted-strong);
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 820;
}

.tools-simple-filters button:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.tools-simple-filters button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  background: color-mix(in srgb, var(--surface-blue) 76%, var(--surface) 24%);
  color: var(--primary-strong);
}

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

.tools-simple-grid-page .tool-card {
  min-height: 232px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 18px;
  box-shadow: none;
}

.tools-simple-grid-page .tool-card[hidden] {
  display: none;
}

.tools-simple-grid-page .tool-card:hover,
.tools-simple-grid-page .tool-card:focus-visible {
  border-color: var(--primary);
  background: var(--surface);
  transform: none;
}

.tools-simple-grid-page .tool-category {
  width: max-content;
  min-width: 58px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-blue) 72%, var(--surface) 28%);
  color: var(--primary-strong);
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 820;
}

.tools-simple-grid-page .tool-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.42;
}

.tools-simple-grid-page .tool-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.62;
}

.tools-simple-grid-page .tool-meta {
  display: block;
  margin-top: auto;
  border: 0;
  padding: 0;
}

.tools-simple-grid-page .tool-formats {
  display: none;
}

.tools-simple-grid-page .tool-meta strong {
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 860;
}

@media (max-width: 1040px) {
  .tools-simple-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .tools-simple-grid-page {
    padding-top: 28px;
  }

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

@media (max-width: 540px) {
  .tools-simple-hero h1 {
    font-size: 1.82rem;
  }

  .tools-simple-grid {
    grid-template-columns: 1fr;
  }

  .tools-simple-grid-page .tool-card {
    min-height: 0;
  }
}

/* Search page: simple stacked results */
.simple-search-page {
  max-width: 1120px;
  padding-top: 34px;
  padding-bottom: 56px;
}

.site-breadcrumb,
.simple-breadcrumb {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.4;
  flex-wrap: wrap;
}

.site-breadcrumb a,
.simple-breadcrumb a {
  color: var(--primary-strong);
  font-weight: 700;
}

.site-breadcrumb span,
.simple-breadcrumb span {
  color: var(--muted-strong);
}

.site-breadcrumb [aria-current="page"] {
  color: var(--muted);
  font-weight: 650;
}

.simple-search-hero {
  margin-bottom: 30px;
}

.simple-search-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.simple-search-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.65;
}

.simple-search-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px 20px;
}

.simple-search-form {
  margin-bottom: 16px;
}

.simple-search-form label {
  display: grid;
  gap: 9px;
}

.simple-search-form label > span {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 850;
}

.simple-search-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
  font-weight: 690;
}

.simple-search-form input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.simple-search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.simple-search-results {
  display: grid;
  gap: 10px;
}

.simple-search-page .tool-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 15px 14px;
  box-shadow: none;
}

.simple-search-page .tool-card[hidden] {
  display: none;
}

/* PNG to JPG converter workspace */
body.tool-page.png-jpg-workspace .tool-hero {
  display: block;
  margin: 0 0 18px;
}

body.tool-page.png-jpg-workspace .tool-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.tool-page.png-jpg-workspace .tool-hero p {
  max-width: 78ch;
  margin-top: 12px;
  color: var(--text);
}

body.tool-page.png-jpg-workspace .tool-hero .status-line,
body.tool-page.png-jpg-workspace .png-hero-brief {
  display: none !important;
}

body.tool-page.png-jpg-workspace .png-hero-brief {
  display: block;
  align-self: stretch;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
}

body.tool-page.png-jpg-workspace .png-hero-brief h2 {
  margin-bottom: 14px;
  font-size: .98rem;
}

body.tool-page.png-jpg-workspace .png-hero-brief dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body.tool-page.png-jpg-workspace .png-hero-brief div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

body.tool-page.png-jpg-workspace .png-hero-brief dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}

body.tool-page.png-jpg-workspace .png-hero-brief dd {
  margin: 0;
  color: var(--text);
  font-size: .9rem;
  font-weight: 820;
  line-height: 1.25;
}

body.tool-page.png-jpg-workspace .png-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.tool-page.png-jpg-workspace .png-left-panel,
body.tool-page.png-jpg-workspace .png-results-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}

body.tool-page.png-jpg-workspace .png-left-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  height: min(650px, calc(100vh - 238px));
  min-height: 560px;
  overflow: auto;
  padding: 16px;
}

body.tool-page.png-jpg-workspace .png-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

body.tool-page.png-jpg-workspace .png-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

body.tool-page.png-jpg-workspace .png-panel-head p,
body.tool-page.png-jpg-workspace .png-panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

body.tool-page.png-jpg-workspace .png-drop-zone {
  min-height: 210px;
  border-radius: 14px;
  padding: 24px 18px;
}

body.tool-page.png-jpg-workspace .png-drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--surface-blue);
}

body.tool-page.png-jpg-workspace .png-left-panel .opts {
  display: grid;
  gap: 10px;
  margin: 0;
}

body.tool-page.png-jpg-workspace .png-left-panel .opts label {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: .9rem;
  font-weight: 780;
}

body.tool-page.png-jpg-workspace .png-left-panel .opts input[type="range"] {
  width: 100%;
}

body.tool-page.png-jpg-workspace .png-left-panel .opts input[type="color"] {
  width: 42px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

body.tool-page.png-jpg-workspace .png-left-panel .controls {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 4px;
}

body.tool-page.png-jpg-workspace .png-left-panel .left-ctrls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.tool-page.png-jpg-workspace .png-left-panel .right-ctrls {
  display: none;
}

body.tool-page.png-jpg-workspace .png-left-panel .btn,
body.tool-page.png-jpg-workspace .png-results-panel .btn,
body.tool-page.png-jpg-workspace .png-results-panel .pill {
  width: 100%;
  min-height: 42px;
}

body.tool-page.png-jpg-workspace #summary {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted-strong);
}

body.tool-page.png-jpg-workspace #liveSummary {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
}

body.tool-page.png-jpg-workspace .png-results-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(650px, calc(100vh - 238px));
  min-height: 560px;
  overflow: hidden;
}

body.tool-page.png-jpg-workspace .png-results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.tool-page.png-jpg-workspace .png-results-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

body.tool-page.png-jpg-workspace .png-results-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

body.tool-page.png-jpg-workspace .png-results-actions {
  width: min(190px, 38%);
  flex: 0 0 auto;
}

body.tool-page.png-jpg-workspace .png-results-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 16px;
  background: var(--surface-soft);
}

body.tool-page.png-jpg-workspace .png-results-scroll.has-results {
  align-content: start;
}

body.tool-page.png-jpg-workspace .png-empty-state {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

body.tool-page.png-jpg-workspace .png-empty-state[hidden] {
  display: none !important;
  min-height: 0;
  padding: 0;
}

body.tool-page.png-jpg-workspace .png-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

body.tool-page.png-jpg-workspace #list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 0;
  align-content: start;
}

body.tool-page.png-jpg-workspace #list:empty {
  display: none;
}

body.tool-page.png-jpg-workspace .item {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
}

body.tool-page.png-jpg-workspace .thumb {
  width: 100%;
  height: 132px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

body.tool-page.png-jpg-workspace .meta {
  min-width: 0;
}

body.tool-page.png-jpg-workspace .name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.5em;
}

body.tool-page.png-jpg-workspace .sub {
  margin-top: 4px;
  color: var(--muted);
}

body.tool-page.png-jpg-workspace .status {
  margin-top: 8px;
}

body.tool-page.png-jpg-workspace progress {
  width: 100%;
}

body.tool-page.png-jpg-workspace .act {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
}

body.tool-page.png-jpg-workspace .act .pill:only-child {
  grid-column: 1 / -1;
}

body.tool-page.png-jpg-workspace .pill[data-act="download"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

body.tool-page.png-jpg-workspace .tool-seo-content {
  margin-top: 34px;
}

body.tool-page.png-jpg-workspace .tool-seo-article {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

body.tool-page.png-jpg-workspace .tool-seo-kicker {
  margin: 0 0 6px;
  color: var(--primary-strong);
  font-size: .86rem;
  font-weight: 820;
}

body.tool-page.png-jpg-workspace .tool-seo-article h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}

body.tool-page.png-jpg-workspace .tool-seo-article p,
body.tool-page.png-jpg-workspace .tool-seo-article li {
  max-width: none;
  color: var(--muted-strong);
  line-height: 1.68;
}

body.tool-page.png-jpg-workspace .tool-seo-article p {
  margin: 0;
}

body.tool-page.png-jpg-workspace .tool-info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

body.tool-page.png-jpg-workspace .related-tools-card,
body.tool-page.png-jpg-workspace .related-guides-card,
body.tool-page.png-jpg-workspace .faq-card {
  padding: 20px;
}

body.tool-page.png-jpg-workspace .seo-privacy-note {
  padding: 0 2px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

body.tool-page.png-jpg-workspace .seo-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.tool-page.png-jpg-workspace .tool-three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

body.tool-page.png-jpg-workspace .tool-three-column .tool-info-card {
  min-height: 100%;
}

body.tool-page.png-jpg-workspace .example-card {
  display: grid;
  gap: 14px;
}

body.tool-page.png-jpg-workspace .example-table {
  display: grid;
  max-width: none;
  border-top: 1px solid var(--line);
}

body.tool-page.png-jpg-workspace .prose-card {
  padding: 26px 28px 30px;
}

body.tool-page.png-jpg-workspace .prose-card h2 {
  margin-bottom: 18px;
}

body.tool-page.png-jpg-workspace .prose-card p {
  max-width: none;
  color: var(--text);
  line-height: 1.72;
  text-wrap: pretty;
}

body.tool-page.png-jpg-workspace .example-table div {
  display: grid;
  grid-template-columns: minmax(110px, 190px) 1fr;
  gap: 16px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}

body.tool-page.png-jpg-workspace .example-table span {
  color: var(--muted);
  font-size: .9rem;
}

body.tool-page.png-jpg-workspace .example-table strong {
  color: var(--text);
  font-size: .96rem;
  text-align: right;
}

body.tool-page.png-jpg-workspace .fine-print {
  color: var(--muted);
  font-size: .88rem;
}

body.tool-page.png-jpg-workspace .tool-check-list,
body.tool-page.png-jpg-workspace .tool-steps-list,
body.tool-page.png-jpg-workspace .compact-bullet-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
}

body.tool-page.png-jpg-workspace .tool-related-grid,
body.tool-page.png-jpg-workspace .tool-guide-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.tool-page.png-jpg-workspace .tool-guide-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.tool-page.png-jpg-workspace .tool-related-grid a,
body.tool-page.png-jpg-workspace .tool-guide-links a {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 144px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

body.tool-page.png-jpg-workspace .tool-related-grid a:hover,
body.tool-page.png-jpg-workspace .tool-guide-links a:hover {
  border-color: var(--primary);
  background: var(--surface-blue);
  transform: translateY(-1px);
}

body.tool-page.png-jpg-workspace .tool-related-grid strong,
body.tool-page.png-jpg-workspace .tool-guide-links strong {
  color: var(--text);
  line-height: 1.3;
}

body.tool-page.png-jpg-workspace .tool-related-grid span,
body.tool-page.png-jpg-workspace .tool-guide-links span {
  color: var(--muted-strong);
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.tool-page.png-jpg-workspace .tool-guide-links .guide-link-card {
  grid-template-rows: auto 1fr;
  gap: 0;
  min-height: 274px;
  padding: 0;
  overflow: hidden;
}

body.tool-page.png-jpg-workspace .guide-link-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

body.tool-page.png-jpg-workspace .tool-guide-links .guide-link-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 14px;
  min-height: 128px;
  overflow: visible;
  -webkit-line-clamp: initial;
  -webkit-box-orient: initial;
}

body.tool-page.png-jpg-workspace .guide-link-body em {
  align-self: end;
  color: var(--primary-strong);
  font-style: normal;
  font-size: .86rem;
  font-weight: 820;
}

body.tool-page.png-jpg-workspace .category-pill {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary-strong);
  font-size: .72rem;
  font-weight: 800;
}

body.tool-page.png-jpg-workspace .seo-tool-card em {
  align-self: end;
  margin-top: 4px;
  color: var(--primary-strong);
  font-style: normal;
  font-size: .86rem;
  font-weight: 820;
}

body.tool-page.png-jpg-workspace .tool-faq-list {
  display: grid;
  gap: 10px;
}

body.tool-page.png-jpg-workspace .tool-faq-list .faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  overflow: hidden;
}

body.tool-page.png-jpg-workspace .tool-faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 800;
}

body.tool-page.png-jpg-workspace .tool-faq-list .faq-item p {
  padding: 0 16px 16px;
}

/* PNG to JPG: Age Finder utility style pass */
body.tool-page.png-jpg-workspace {
  background: var(--bg);
  line-height: 1.65;
}

body.tool-page.png-jpg-workspace .container {
  width: min(1120px, calc(100% - 32px));
  padding-top: 28px;
}

body.tool-page.png-jpg-workspace .site-breadcrumb {
  margin-bottom: 16px;
  font-size: .84rem;
}

body.tool-page.png-jpg-workspace .tool-hero {
  margin-bottom: 18px;
}

body.tool-page.png-jpg-workspace .tool-hero h1 {
  max-width: 760px;
  font-size: 2.9rem;
  line-height: 1.05;
  letter-spacing: -.015em;
}

body.tool-page.png-jpg-workspace .tool-hero p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
}

body.tool-page.png-jpg-workspace .tool-good-card {
  margin-bottom: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

body.tool-page.png-jpg-workspace .tool-good-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.2;
}

body.tool-page.png-jpg-workspace .tool-good-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

body.tool-page.png-jpg-workspace .png-workspace {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 0;
}

body.tool-page.png-jpg-workspace .png-left-panel,
body.tool-page.png-jpg-workspace .png-results-panel {
  border-radius: 12px;
}

body.tool-page.png-jpg-workspace .png-left-panel {
  gap: 12px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 16px;
}

body.tool-page.png-jpg-workspace .png-panel-head h2,
body.tool-page.png-jpg-workspace .png-results-head h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}

body.tool-page.png-jpg-workspace .png-panel-head p,
body.tool-page.png-jpg-workspace .png-panel-note,
body.tool-page.png-jpg-workspace .png-results-head p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

body.tool-page.png-jpg-workspace .png-drop-zone {
  min-height: 190px;
  border-radius: 12px;
  padding: 24px 18px;
  background: var(--surface-soft);
}

body.tool-page.png-jpg-workspace .png-left-panel .opts label,
body.tool-page.png-jpg-workspace #summary,
body.tool-page.png-jpg-workspace .png-empty-state,
body.tool-page.png-jpg-workspace .tool-info-card,
body.tool-page.png-jpg-workspace .tool-related-grid a,
body.tool-page.png-jpg-workspace .tool-guide-links a,
body.tool-page.png-jpg-workspace .tool-faq-list .faq-item {
  border-radius: 12px;
}

body.tool-page.png-jpg-workspace .png-left-panel .opts label {
  min-height: 46px;
  background: var(--surface);
}

body.tool-page.png-jpg-workspace .png-left-panel .btn,
body.tool-page.png-jpg-workspace .png-results-panel .btn,
body.tool-page.png-jpg-workspace .png-results-panel .pill {
  min-height: 44px;
  border-radius: 9px;
}

body.tool-page.png-jpg-workspace .png-results-panel {
  height: auto;
  min-height: 0;
}

body.tool-page.png-jpg-workspace .png-results-head {
  padding: 16px;
}

body.tool-page.png-jpg-workspace .png-results-scroll {
  min-height: 430px;
  max-height: 620px;
  padding: 16px;
  background: var(--surface-muted, var(--surface-soft));
}

body.tool-page.png-jpg-workspace .png-empty-state {
  min-height: 360px;
}

body.tool-page.png-jpg-workspace .tool-seo-content {
  margin-top: 22px;
}

body.tool-page.png-jpg-workspace .tool-info-card {
  padding: 22px;
}

body.tool-page.png-jpg-workspace .tool-seo-article {
  gap: 16px;
}

body.tool-page.png-jpg-workspace .tool-seo-article h2 {
  font-size: 1.45rem;
}

body.tool-page.png-jpg-workspace .related-tools-card {
  padding: 20px;
}

@media (max-width: 980px) {
  body.tool-page.png-jpg-workspace .tool-hero {
    display: block;
  }

  body.tool-page.png-jpg-workspace .tool-related-grid,
  body.tool-page.png-jpg-workspace .tool-guide-links,
  body.tool-page.png-jpg-workspace .seo-two-column,
  body.tool-page.png-jpg-workspace .tool-three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tool-page.png-jpg-workspace .png-workspace {
    grid-template-columns: 1fr;
  }

  body.tool-page.png-jpg-workspace .png-left-panel,
  body.tool-page.png-jpg-workspace .png-results-panel {
    height: auto;
    min-height: 0;
  }

  body.tool-page.png-jpg-workspace .png-results-scroll {
    max-height: min(560px, 72vh);
  }
}

@media (max-width: 640px) {
  body.tool-page.png-jpg-workspace .tool-hero h1 {
    font-size: 2.35rem;
  }

  body.tool-page.png-jpg-workspace .tool-info-card,
  body.tool-page.png-jpg-workspace .related-tools-card,
  body.tool-page.png-jpg-workspace .related-guides-card,
  body.tool-page.png-jpg-workspace .faq-card {
    padding: 16px;
  }

  body.tool-page.png-jpg-workspace .tool-related-grid,
  body.tool-page.png-jpg-workspace .tool-guide-links,
  body.tool-page.png-jpg-workspace .seo-two-column,
  body.tool-page.png-jpg-workspace .tool-three-column,
  body.tool-page.png-jpg-workspace .tool-info-card[aria-labelledby="png-common-uses"] .compact-bullet-list {
    grid-template-columns: 1fr;
  }

  body.tool-page.png-jpg-workspace .tool-related-grid a,
  body.tool-page.png-jpg-workspace .tool-guide-links a {
    min-height: 128px;
  }

  body.tool-page.png-jpg-workspace .example-table div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  body.tool-page.png-jpg-workspace .example-table strong {
    text-align: left;
  }

  body.tool-page.png-jpg-workspace .png-hero-brief {
    padding: 14px;
  }

  body.tool-page.png-jpg-workspace .png-hero-brief dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.tool-page.png-jpg-workspace .png-hero-brief div {
    padding: 9px;
  }

  body.tool-page.png-jpg-workspace .png-hero-brief dd {
    font-size: .84rem;
  }

  body.tool-page.png-jpg-workspace .png-left-panel,
  body.tool-page.png-jpg-workspace .png-results-head,
  body.tool-page.png-jpg-workspace .png-results-scroll {
    padding: 14px;
  }

  body.tool-page.png-jpg-workspace .png-left-panel .left-ctrls,
  body.tool-page.png-jpg-workspace .png-results-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.tool-page.png-jpg-workspace .png-results-actions {
    width: 100%;
  }

  body.tool-page.png-jpg-workspace .png-left-panel .opts label {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.simple-search-page .tool-card:hover,
.simple-search-page .tool-card:focus-visible {
  border-color: var(--primary);
  background: var(--surface-blue);
  transform: none;
}

.simple-search-page .tool-category,
.simple-search-page .tool-meta {
  display: none;
}

.simple-search-page .tool-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.simple-search-page .tool-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.55;
}

.simple-search-page .empty-state {
  margin: 12px 0 0;
}

@media (max-width: 640px) {
  .simple-search-page {
    padding-top: 24px;
  }

  .simple-search-hero h1 {
    font-size: 1.82rem;
  }

  .simple-search-panel {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  body.tool-page.png-jpg-workspace .container {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  body.tool-page.png-jpg-workspace .site-breadcrumb {
    margin-bottom: 14px;
    row-gap: 3px;
  }

  body.tool-page.png-jpg-workspace .tool-hero {
    margin-bottom: 14px;
  }

  body.tool-page.png-jpg-workspace .tool-hero h1 {
    max-width: 12ch;
    font-size: 2.12rem;
    line-height: 1.12;
    letter-spacing: -.01em;
  }

  body.tool-page.png-jpg-workspace .tool-hero p {
    margin-top: 10px;
    font-size: .98rem;
  }

  body.tool-page.png-jpg-workspace .tool-good-card {
    margin-bottom: 0;
    padding: 16px;
  }

  body.tool-page.png-jpg-workspace .tool-good-card h2 {
    font-size: 1.35rem;
  }

  body.tool-page.png-jpg-workspace .png-workspace {
    gap: 14px;
  }

  body.tool-page.png-jpg-workspace .png-left-panel,
  body.tool-page.png-jpg-workspace .png-results-head,
  body.tool-page.png-jpg-workspace .png-results-scroll {
    padding: 14px;
  }

  body.tool-page.png-jpg-workspace .png-drop-zone {
    min-height: 176px;
    padding: 20px 14px;
  }

  body.tool-page.png-jpg-workspace .png-results-scroll {
    min-height: 280px;
    max-height: 520px;
  }

  body.tool-page.png-jpg-workspace .png-empty-state {
    min-height: 250px;
    padding: 22px 16px;
  }

  body.tool-page.png-jpg-workspace .tool-info-card,
  body.tool-page.png-jpg-workspace .related-tools-card,
  body.tool-page.png-jpg-workspace .related-guides-card,
  body.tool-page.png-jpg-workspace .faq-card {
    padding: 16px;
  }

  body.tool-page.png-jpg-workspace .tool-seo-content {
    margin-top: 18px;
  }

  body.tool-page.png-jpg-workspace .tool-seo-article h2 {
    font-size: 1.32rem;
  }
}

/* Final wide-hero correction for page-level intros. */
.hero h1,
.home-live-hero h1,
.search-hero h1,
.comfort-hero h1,
.tools-simple-hero h1,
.simple-search-hero h1 {
  max-width: min(980px, 100%) !important;
  text-wrap: pretty;
}

.hero p,
.home-live-hero .hero-copy p,
.search-hero .hero-copy p,
.comfort-hero .hero-copy p,
.tools-simple-hero p,
.simple-search-hero p {
  max-width: min(980px, 100%) !important;
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .hero,
  .hero-copy,
  .hero h1,
  .hero p,
  .status-line,
  .status-line span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Keep language switching reachable on mobile. */
@media (max-width: 980px) {
  .site-header .language-select {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-header .header-actions {
    min-width: 0;
    gap: 6px;
  }

  .site-header .language-select {
    width: 118px;
    min-width: 0;
    min-height: 40px;
    padding: 0 26px 0 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 390px) {
  .site-header .language-select {
    width: 104px;
    padding-left: 9px;
    font-size: 0.8rem;
  }
}
