:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --text: #17201b;
  --muted: #65736c;
  --line: #dbe4df;
  --green: #2f7d57;
  --amber: #9a6500;
  --red: #a33b3b;
  --shadow: 0 16px 40px rgba(23, 32, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

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

.tool-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.stable {
  color: var(--green);
  background: #e4f3eb;
}

.test {
  color: var(--amber);
  background: #fff1d1;
}

.off {
  color: var(--red);
  background: #ffe4e0;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.description,
.meta,
.empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.meta {
  margin-top: auto;
  font-size: 14px;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 42px;
  color: #ffffff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.open-link:focus-visible {
  outline: 3px solid #9ad3b4;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 28px 0;
  }

  .topbar {
    display: block;
  }

  time {
    display: block;
    margin-top: 12px;
  }

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