:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #eef3f3;
  --text: #171c1f;
  --muted: #68747a;
  --line: #dce4e7;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --accent-soft: #e4f4f1;
  --danger: #a33a2d;
  --shadow: 0 12px 34px rgba(23, 28, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%);
}

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

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-name {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

.header-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-metrics span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.header-metrics strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button,
.copy-button,
.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
}

.filter-button,
.copy-button {
  color: var(--text);
  background: var(--surface);
}

.filter-button.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.project-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.project-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

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

.project-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.type-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 500;
}

.url-row {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
}

.url-row code {
  display: block;
  overflow: hidden;
  color: #3e4a50;
  font-family: "Space Grotesk", monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.open-link {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.copy-button:hover,
.filter-button:hover {
  border-color: #b9c7cc;
}

.open-link:hover {
  background: var(--accent-dark);
}

.empty-state {
  margin: 28px 0 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
  .app-header,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .app-header {
    display: grid;
    align-items: start;
  }

  .header-metrics,
  .filter-row {
    justify-content: flex-start;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 18px;
  }

  h1 {
    font-size: 30px;
  }

  .project-title-row,
  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .open-link,
  .copy-button {
    width: 100%;
  }
}


.docs-link {
  display: inline-flex;
  margin-top: 14px;
  color: #0d766e;
  font-weight: 700;
  text-decoration: none;
}

.docs-link:hover { text-decoration: underline; }
