.toolbox .tool-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
  max-width: 32rem;
  margin-inline: auto;
  padding-bottom: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.toolbox :is(.directory-group,.directory-links) { display: contents; }
.toolbox :is(.directory-group h2,.tool-description) { display: none; }
.toolbox .directory-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 96px;
  padding: 5px 0 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
.toolbox .directory-tool::after { display: none; }
.toolbox .directory-tool:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.toolbox .directory-tool strong { font-size: 13px; font-weight: 650; }
.toolbox .tool-launcher-icon {
  position: relative;
  width: clamp(56px, 16vw, 68px);
  aspect-ratio: 1;
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 0 4px 8px -4px #0c191d80;
}
.toolbox .tool-launcher-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, #ffffff36, #ffffff08 43%, transparent 58%);
  box-shadow: inset 0 1px 1px #ffffff77, inset 0 -1px 1px #1420294d;
  pointer-events: none;
}
.toolbox .tool-launcher-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (hover: hover) {
  .toolbox .directory-tool:hover { background: transparent; }
  .toolbox .directory-tool:hover .tool-launcher-icon::after {
    background-color: #ffffff0e;
  }
}
.toolbox .directory-tool:active .tool-launcher-icon { transform: scale(.94); }

@supports (corner-shape: squircle) {
  .toolbox .tool-launcher-icon,
  .toolbox .tool-launcher-icon::after {
    border-radius: 32%;
    corner-shape: squircle;
  }
}

@media (min-width: 480px) {
  .toolbox .tool-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 721px) {
  .toolbox .tool-directory {
    gap: 16px 12px;
    max-width: 52rem;
    padding: 22px clamp(14px, 3vw, 30px);
    border: 1px solid var(--paper-edge);
    border-radius: 16px;
    background: var(--sheet);
  }
  .toolbox .directory-tool {
    gap: 10px;
    min-height: 116px;
    padding-block: 8px;
  }
  .toolbox .directory-tool strong { font-size: 14px; }
  .toolbox .tool-launcher-icon { width: 76px; }
}

@media (min-width: 900px) {
  .toolbox .tool-directory { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
