.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  padding: 14px 22px;
}

.tab.active {
  color: #eafaff;
  border-bottom-color: var(--cyan);
}

.key-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  gap: 16px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity h2 {
  margin-bottom: 4px;
}

.badge {
  background: #102a22;
  color: #67e9b1;
  border: 1px solid #235541;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.badge.warning {
  color: #f6c586;
  background: #2c2318;
  border-color: #63492c;
}

.key-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.lifecycle div {
  background: #14181c;
  border-radius: 7px;
  padding: 12px;
}

dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-list code {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.quota-section {
  border-top: 1px solid var(--line);
  padding: 22px;
}

.quota-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  background: #273139;
  margin: 6px 0 14px;
  accent-color: var(--cyan);
}

progress::-webkit-progress-bar {
  background: #273139;
  border-radius: 5px;
}

progress::-webkit-progress-value {
  background: var(--cyan);
  border-radius: 5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
}

.stat {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat strong {
  font-size: 26px;
  letter-spacing: -0.4px;
}

.stat .cost {
  font-size: 21px;
  color: #d8b67e;
}

.section-heading {
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 12px;
}

th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
}

.empty {
  text-align: center;
  padding: 22px;
}

.install-card,
#details {
  padding: 26px;
  margin-bottom: 20px;
}

.steps {
  padding-left: 22px;
  line-height: 1.9;
}

.copy-row {
  display: flex;
  gap: 12px;
}

.copy-row input {
  min-width: 0;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

summary {
  color: var(--cyan);
  cursor: pointer;
  padding: 12px 0;
}

@media (max-width: 900px) {
  .key-info {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .page-heading {
    display: block;
  }

  .lifecycle,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    padding: 16px;
  }

  .topbar button {
    padding: 8px;
    font-size: 11px;
  }

  main {
    padding: 24px 16px;
  }
}
