.tools-section {
  --catalog-ink: #142938;
  --catalog-copy: #425b6c;
  --catalog-hint: #536b7a;
  --catalog-line: #d9e5eb;
  --catalog-link: #116d87;
  --catalog-active-background: #183e55;
  position: relative;
  isolation: isolate;
  padding: clamp(42px, 5.3vw, 82px) 0 clamp(36px, 4.3vw, 72px);
  background: transparent;
  border: 0;
  color: var(--catalog-ink);
}
.tools-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 83% 12%, #bdeee258 0, transparent 48%),
    radial-gradient(ellipse at 15% 17%, #b8d9f24d 0, transparent 50%);
}
.tools-section .wrap { max-width: 1440px; }
.tools-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: clamp(19px, 2.6vw, 33px);
}
.tools-heading h2 {
  margin: 0;
  color: var(--catalog-ink);
  font-size: clamp(33px, 3.3vw, 50px);
  line-height: 1.15;
  letter-spacing: -.055em;
  font-weight: 650;
}
.tools-heading .catalog-search {
  display: flex;
  align-items: center;
  flex: 0 1 360px;
  width: auto;
  min-width: 0;
  gap: 11px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #bfced9;
  border-radius: 9px;
  box-shadow: 0 1px 2px #173a5010;
  transition: border-color .16s, box-shadow .16s;
}
.tools-heading .catalog-search:focus-within { border-color: #16778d; box-shadow: 0 0 0 3px #147e931c; }
.catalog-search > svg { width: 18px; height: 18px; color: #637c8a; }
.catalog-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--catalog-ink);
  outline: none;
  border: 0;
}
.catalog-search input::placeholder { color: #617989; }
.catalog-search kbd {
  flex: 0 0 21px;
  line-height: 21px;
  color: #647988;
  border: 1px solid #d5e1e8;
  border-radius: 4px;
  font: 12px/21px ui-monospace, monospace;
  text-align: center;
}
.catalog-symbol { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; stroke: none; }
.tool-catalog { min-width: 0; }
.catalog-controls {
  position: sticky;
  top: 65px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px;
  border: 1px solid #c6d8e2;
  border-radius: 13px;
  background: #eef5f9;
  box-shadow: inset 0 1px #fff, 0 4px 16px #1239530c;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .catalog-controls {
    background: #f8fcffb8;
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
  }
}
#catalogFilters {
  display: flex;
  min-width: 0;
  gap: clamp(2px, .4vw, 6px);
  padding: 0;
  background: transparent;
  border-radius: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
#catalogFilters::-webkit-scrollbar { display: none; }
#catalogFilters button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px clamp(9px, 1.1vw, 16px);
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: #455d70;
  white-space: nowrap;
}
#catalogFilters button:hover:not(.selected) { color: #173a51; background: #dceaf088; }
#catalogFilters button.selected { color: white; background: transparent; }
#catalogFilters button .filter-label {
  min-width: 0;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.4;
  opacity: 1;
  color: inherit;
}
#catalogFilters .catalog-symbol { width: 16px; height: 16px; }
#catalogFilters .filter-count {
  min-width: auto;
  color: #597183;
  font: 11px/1 ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}
#catalogFilters button.selected .filter-count { color: #c8e7f1; }
.tools-section #catalogFilterIndicator { border-radius: 7px; }
.catalog-view {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding-left: 9px;
  border-left: 1px solid #cddce4;
}
.catalog-view button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 35px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6a8091;
}
.catalog-view .catalog-symbol { width: 17px; height: 17px; }
.catalog-view button.selected { color: #204d68; background: #dce9f0; }
.catalog-view button:hover { color: #173a51; }
.catalog-body {
  margin-top: 16px;
  padding: 0 clamp(17px, 2.1vw, 32px);
  background: #fff;
  border: 1px solid var(--catalog-line);
  border-radius: 13px;
  box-shadow: 0 8px 30px #18364908;
}
.catalog-result-bar, .catalog-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.catalog-result-bar { min-height: 61px; border-bottom: 1px solid var(--catalog-line); }
.catalog-result-bar h3 {
  color: #233e50;
  font-size: 15px;
  font-weight: 630;
  margin: 0;
}
.catalog-result-bar h3 span {
  display: inline-block;
  padding-left: 3px;
  color: #617885;
  vertical-align: 1px;
  font: 11px/1 ui-monospace, monospace;
}
.catalog-result-bar a, .catalog-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--catalog-link);
  font-size: 12px;
  font-weight: 520;
}
.catalog-result-bar a:hover, .catalog-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-result-bar a svg, .catalog-footer a svg { width: 15px; height: 15px; }
#toolGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 52px);
  row-gap: 0;
}
#toolGrid[hidden], #emptyResults[hidden] { display: none; }
#toolGrid .tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 100px;
  padding: 16px 8px 16px 4px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e2eaf0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--catalog-ink);
  overflow: visible;
  transition: background-color .16s ease;
}
#toolGrid .tool-card:hover {
  background: #f1f7fa;
  box-shadow: none;
  transform: none;
}
#toolGrid .tool-card:focus-visible,
.catalog-view button:focus-visible,
.catalog-controls #catalogFilters button:focus-visible {
  z-index: 2;
  outline: 2px solid #16778d;
  outline-offset: -2px;
}
.tool-icon.app-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid #213e5c0d;
  border-radius: 13px;
  background: var(--icon-bg, #e6edf3);
  color: var(--icon-ink, #31536c);
  box-shadow: inset 0 1px #ffffff8c;
}
.tool-icon.app-icon .catalog-symbol { width: 26px; height: 26px; }
.app-icon-google { --icon-bg: #edf3ff; --icon-ink: #376cca; }
.app-icon-facebook { --icon-bg: #e8f1ff; --icon-ink: #0e66d9; }
.app-icon-whatsapp, .app-icon-forest { --icon-bg: #e2f4ea; --icon-ink: #17754b; }
.app-icon-amber, .app-icon-gold { --icon-bg: #fbf1d8; --icon-ink: #895b15; }
.app-icon-blue { --icon-bg: #e9effc; --icon-ink: #365ab2; }
.app-icon-coral { --icon-bg: #faeae5; --icon-ink: #ac5234; }
.app-icon-slate { --icon-bg: #e6ecf2; --icon-ink: #475e7a; }
.app-icon-purple { --icon-bg: #f0eafa; --icon-ink: #73569e; }
#toolGrid .app-icon { grid-column: 1; grid-row: 1 / 3; }
.catalog-tool-name { grid-column: 2; grid-row: 1; font-weight: 630; font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
.catalog-tool-description { grid-column: 2; grid-row: 2; color: var(--catalog-copy); font-size: 13px; line-height: 1.65; }
.catalog-tool-arrow {
  display: grid;
  place-items: center;
  grid-column: 3;
  grid-row: 1 / 3;
  color: #8195a3;
  transition: transform .18s ease, color .18s ease;
}
.catalog-tool-arrow svg { width: 16px; height: 16px; }
#toolGrid .tool-card:is(:hover, :focus-visible) .catalog-tool-arrow { color: var(--catalog-link); transform: translateX(3px); }
.catalog-tool-category { display: none; color: var(--catalog-hint); font-size: 12px; }
#toolGrid[data-view="list"] { grid-template-columns: 1fr; }
#toolGrid[data-view="list"] .tool-card {
  grid-template-columns: 38px minmax(180px, .68fr) minmax(150px, 1.4fr) 70px 16px;
  grid-template-rows: auto;
  column-gap: 14px;
  min-height: 65px;
  padding-block: 10px;
}
#toolGrid[data-view="list"] .tool-card > span { grid-row: 1; }
#toolGrid[data-view="list"] .app-icon { width: 35px; height: 35px; border-radius: 9px; }
#toolGrid[data-view="list"] .app-icon svg { width: 21px; height: 21px; }
#toolGrid[data-view="list"] .catalog-tool-description { grid-column: 3; }
#toolGrid[data-view="list"] .catalog-tool-category { display: inline; grid-column: 4; }
#toolGrid[data-view="list"] .catalog-tool-arrow { grid-column: 5; }
.catalog-footer { justify-content: flex-end; min-height: 44px; color: var(--catalog-hint); }
.catalog-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#emptyResults { margin: 0; padding: 34px 8px; background: none; border: 0; color: var(--catalog-hint); text-align: center; }
.tool-dialog {
  padding: 32px;
  color: #193445;
  border: 1px solid #e3edf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 80px #10283f30;
}
.tool-dialog::backdrop {
  background: #122c4147;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.tool-dialog .tool-icon.app-icon { width: 54px; height: 54px; margin-bottom: 16px; }
.tool-dialog .tool-icon.app-icon svg { width: 30px; height: 30px; }
.tool-dialog h2 { color: #142f42; font-size: 26px; }
.tool-dialog p, .tool-dialog .detail-points li { color: #486172; }
.tool-dialog .button { border-radius: 8px; background: #173e54; }
.tool-dialog .button:hover { background: #21536c; }
@media (min-width: 1700px) {
  .tools-section .wrap { width: calc(100% - 160px); }
}
@media (max-width: 900px) {
  #catalogFilters button { gap: 5px; padding-inline: 10px; }
  #catalogFilters button .catalog-symbol { display: none; }
  #toolGrid { column-gap: 20px; }
  #toolGrid .tool-card { column-gap: 10px; }
}
@media (max-width: 760px) {
  .tools-section { padding: 36px 0 38px; }
  .tools-heading { display: grid; gap: 17px; margin-bottom: 13px; }
  .tools-heading h2 { font-size: 32px; }
  .tools-heading .catalog-search { width: 100%; padding: 10px 12px; }
  .catalog-search input { font-size: 16px; }
  .catalog-search kbd { display: none; }
  .catalog-controls { position: relative; top: auto; flex-wrap: wrap; gap: 0; padding: 5px; border-radius: 10px; }
  #catalogFilters { flex: 1 1 0; }
  #catalogFilters button { min-height: 36px; padding: 7px 10px; }
  #catalogFilters button .filter-label { font-size: 12px; }
  #catalogFilters .filter-count { font-size: 10px; }
  .catalog-view { gap: 0; padding-left: 4px; margin-left: 4px; }
  .catalog-view button { width: 28px; height: 32px; }
  .catalog-view .catalog-symbol { width: 15px; height: 15px; }
  .catalog-body { margin-top: 10px; padding: 0 14px; }
  .catalog-result-bar { min-height: 47px; }
  .catalog-result-bar h3 { font-size: 14px; }
  .catalog-result-bar a, .catalog-footer a { font-size: 11px; }
  #toolGrid { grid-template-columns: 1fr; }
  #toolGrid .tool-card { min-height: 83px; padding: 13px 2px; }
  #toolGrid .app-icon { width: 39px; height: 39px; border-radius: 10px; }
  #toolGrid .app-icon svg { width: 23px; height: 23px; }
  .catalog-tool-name { font-size: 15px; }
  .catalog-tool-description { font-size: 12px; }
  #toolGrid[data-view="list"] .tool-card { grid-template-columns: 31px minmax(0, 1fr) auto 15px; gap: 10px; min-height: 57px; }
  #toolGrid[data-view="list"] .app-icon { width: 31px; height: 31px; }
  #toolGrid[data-view="list"] .catalog-tool-name { font-size: 14px; }
  #toolGrid[data-view="list"] .catalog-tool-description { display: none; }
  #toolGrid[data-view="list"] .catalog-tool-category { grid-column: 3; font-size: 10px; }
  #toolGrid[data-view="list"] .catalog-tool-arrow { grid-column: 4; }
  .tool-dialog { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #toolGrid .catalog-tool-arrow, .tools-heading .catalog-search { transition: none; }
  #toolGrid .tool-card:is(:hover, :focus-visible) .catalog-tool-arrow { transform: none; }
}
