/* <!-- CSS --> */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 45%),
    #050505;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

.cmd-tool-page {
  min-height: 100vh;
  padding: 72px 0;
  color: #ededed;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 45%),
    #050505;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cmd-tool-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.cmd-tool-hero {
  margin-bottom: 34px;
}

.cmd-tool-eyebrow {
  margin: 0 0 14px;
  color: #8a8a8a;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cmd-tool-heading {
  margin: 0;
  color: #f7f7f7;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.cmd-tool-intro {
  max-width: 740px;
  margin: 20px 0 0;
  color: #9a9a9a;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.7;
}

.cmd-tool-panel {
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  width: 100%;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cmd-tool-search-wrap {
  width: 100%;
  display: grid;
  gap: 9px;
}

.cmd-tool-search-label {
  color: #bdbdbd;
  font-size: 0.88rem;
  font-weight: 650;
}

.cmd-tool-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  outline: none;
  background: #050505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cmd-tool-search::placeholder {
  color: #666666;
}

.cmd-tool-search:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: #070707;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cmd-tool-toolbar {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cmd-tool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cmd-tool-filter {
  min-height: 38px;
  padding: 0 13px;
  color: #9d9d9d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: #0d0d0d;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cmd-tool-filter:hover {
  color: #d8d8d8;
  border-color: rgba(255, 255, 255, 0.14);
  background: #151515;
}

.cmd-tool-filter.is-active {
  color: #f1f1f1;
  border-color: rgba(255, 255, 255, 0.18);
  background: #1b1b1b;
}

.cmd-tool-count {
  flex: 0 0 auto;
  margin: 9px 0 0;
  color: #777777;
  font-size: 0.86rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: nowrap;
}

.cmd-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.cmd-tool-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cmd-tool-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.cmd-tool-card-top {
  display: grid;
  gap: 12px;
}

.cmd-tool-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmd-tool-category {
  width: fit-content;
  padding: 5px 9px;
  color: #a8a8a8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: #0a0a0a;
  font-size: 0.76rem;
  font-weight: 750;
}

.cmd-tool-card-title {
  margin: 0;
  color: #f2f2f2;
  font-size: 1.03rem;
  line-height: 1.35;
}

.cmd-tool-card-description {
  margin: 0;
  color: #8f8f8f;
  font-size: 0.9rem;
  line-height: 1.58;
}

.cmd-tool-command {
  overflow-x: auto;
  margin: 0;
  padding: 14px 15px;
  color: #d7d7d7;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: #050505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.89rem;
  line-height: 1.5;
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cmd-tool-card:hover .cmd-tool-command {
  border-color: rgba(255, 255, 255, 0.085);
  background: #060606;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.cmd-tool-card-actions {
  display: flex;
  justify-content: flex-end;
}

.cmd-tool-copy {
  position: relative;
  min-width: 98px;
  min-height: 40px;
  padding: 0 15px;
  color: #d8d8d8;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: #151515;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cmd-tool-copy::after {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 9px);
  z-index: 2;
  padding: 6px 8px;
  color: #d8d8d8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  content: "Click to copy";
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.cmd-tool-copy:hover::after {
  opacity: 1;
  transform: translate(50%, 0);
}

.cmd-tool-copy:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.13);
  background: #202020;
  transform: translateY(-1px);
}

.cmd-tool-copy:active {
  transform: translateY(0);
}

.cmd-tool-copy:disabled {
  color: #f2f2f2;
  cursor: default;
  opacity: 1;
}

.cmd-tool-empty {
  margin-top: 22px;
  padding: 34px 22px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.92);
}

.cmd-tool-empty-title {
  margin: 0 0 8px;
  color: #f2f2f2;
  font-size: 1.22rem;
}

.cmd-tool-empty-text {
  margin: 0;
  color: #8f8f8f;
}

.cmd-tool-tools-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  color: #ededed;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.04), transparent 32%),
    rgba(15, 15, 15, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cmd-tool-tools-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.cmd-tool-tools-card-kicker {
  margin-bottom: 12px;
  color: #8a8a8a;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cmd-tool-tools-card-title {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.32rem;
  line-height: 1.3;
}

.cmd-tool-tools-card-text {
  margin: 12px 0 0;
  color: #9a9a9a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.cmd-tool-tools-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cmd-tool-tools-card-tag {
  padding: 5px 9px;
  color: #a8a8a8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: #0a0a0a;
  font-size: 0.76rem;
  font-weight: 750;
}

.cmd-tool-tools-card-button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #d8d8d8;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: #151515;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cmd-tool-tools-card-button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.13);
  background: #202020;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .cmd-tool-page {
    padding: 46px 0;
  }

  .cmd-tool-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cmd-tool-toolbar {
    display: grid;
    gap: 12px;
  }

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

  .cmd-tool-card {
    min-height: 0;
    padding: 16px;
  }

  .cmd-tool-filter {
    flex: 1 1 auto;
  }

  .cmd-tool-count {
    margin-top: 0;
  }

  .cmd-tool-card-actions {
    justify-content: stretch;
  }

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