html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(36, 36, 36);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

body::before {
  content: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.app-shell {
  width: min(1040px, calc(100vw - 24px));
  padding: 10px 0;
}

.console-window {
  padding: 8px;
}

.console-topbar {
  padding: 12px 16px;
}

.console-title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  color: #e8d2b0;
  text-align: center;
}

.tool-grid-wrap {
  margin-top: 8px;
  padding: 14px;
}

.tool-section + .tool-section {
  margin-top: 16px;
}

.tool-section-title {
  margin-bottom: 8px;
  color: #ddb843;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

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

.tool-card {
  display: block;
  min-height: 216px;
  padding: 10px;
  border-radius: 4px;
}

.tool-card-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.tool-card-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: rgba(36, 35, 36, 0.55);
}

.tool-card-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
}

.tool-card-title {
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.tool-card-description {
  margin: 0;
  color: rgba(17, 17, 17, 0.88);
  font-size: 13px;
  line-height: 1.4;
}

.tool-card-missing {
  opacity: 0.78;
}

.tool-card-missing .tool-card-title,
.tool-card-missing .tool-card-description {
  color: #e8d2b0;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 10px, 1040px);
    padding: 6px 0;
  }

  .console-window {
    padding: 6px;
  }

  .console-topbar {
    padding: 10px 12px;
  }

  .tool-grid-wrap {
    padding: 10px;
  }

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

  .tool-card {
    min-height: 188px;
    padding: 8px;
  }

  .tool-card-image {
    width: 68px;
    height: 68px;
  }
}
