:root {
  --bg: #ffffff;
  --bar: #d5dce7;
  --bar-2: #eef2f7;
  --line: #c8d0dc;
  --line-soft: #e5e9ef;
  --text: #3d4b66;
  --muted: #758195;
  --link: #316fd7;
  --green-bg: #e1f3e3;
  --green: #2b7d3f;
  --blue-bg: #e6effd;
  --blue: #2f6ab5;
  --yellow-bg: #fff4d6;
  --yellow: #8b6510;
  --gray-bg: #ededed;
  --gray: #6c6c6c;
  font-family: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

a {
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid #bfc7d2;
  background: var(--bar);
  padding: 7px 10px 8px;
}

.topline h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.4px;
}

.topline span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.topline b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #aeb8c7;
  background: #8291a8;
  color: #fff;
  padding: 0 10px;
}

main {
  padding: 10px;
}

.scan-search {
  display: flex;
  align-items: center;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 10px;
}

.scan-search span {
  position: relative;
  flex: 0 0 28px;
  height: 100%;
  border-right: 1px solid var(--line-soft);
}

.scan-search span::before,
.scan-search span::after {
  content: "";
  position: absolute;
  display: block;
}

.scan-search span::before {
  top: 8px;
  left: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #71819a;
  border-radius: 50%;
}

.scan-search span::after {
  top: 18px;
  left: 18px;
  width: 7px;
  height: 2px;
  background: #71819a;
  transform: rotate(45deg);
}

.scan-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 0 9px;
}

.scan-search input::placeholder {
  color: #8792a3;
}

.summary {
  display: grid;
  grid-template-columns: repeat(11, minmax(82px, 1fr));
  border: 1px solid var(--line);
  background: var(--bar-2);
  margin-bottom: 12px;
}

.summary-cell {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  text-align: center;
}

.summary-cell:last-child {
  border-right: 0;
}

.summary-cell:hover,
.summary-cell.active {
  background: #dde5f0;
}

.summary-cell span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.summary-cell strong {
  display: block;
  font-size: 16px;
}

.category {
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-2);
  padding: 0 10px;
}

.category-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.category-heading span {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--muted);
  font-weight: 700;
}

td:first-child,
th:first-child {
  width: 18%;
}

td:nth-child(2),
th:nth-child(2) {
  width: 48%;
}

td:nth-child(3),
th:nth-child(3) {
  width: 13%;
}

td:nth-child(4),
td:nth-child(5),
th:nth-child(4),
th:nth-child(5) {
  width: 10.5%;
}

.project-name {
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 7px;
  font-weight: 700;
}

.status.active {
  border-color: #b7dbbd;
  background: var(--green-bg);
  color: var(--green);
}

.status.in-development {
  border-color: #bdd1ef;
  background: var(--blue-bg);
  color: var(--blue);
}

.status.testnet {
  border-color: #ecd68d;
  background: var(--yellow-bg);
  color: var(--yellow);
}

.status.paused {
  border-color: #d0d0d0;
  background: var(--gray-bg);
  color: var(--gray);
}

.empty {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 10px;
}

footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid #bfc7d2;
  background: var(--bar);
  color: var(--muted);
  padding: 6px 10px;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 980px) {
  .summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100% !important;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 0;
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    border-bottom: 0;
    padding: 4px 10px;
  }

  td::before {
    content: attr(data-label);
    display: inline-block;
    width: 82px;
    color: var(--muted);
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  .topline {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .topline b {
    justify-content: center;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
