#box_updates {
  margin-top: 32px;
  margin-bottom: 32px;
}

#updates_page_desc {
  font-size: 14px;
  color: var(--color-greyDark);
  line-height: 1.7;
  margin-bottom: 24px;
}

#updates_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Card ── */
.update-card {
  background: var(--color-white);
  border: 1px solid var(--color-greyLight);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.update-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-repo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
}

.update-gh-link {
  font-size: 12px;
  color: var(--color-greyDark);
  text-decoration: none;
}

.update-gh-link:hover {
  color: var(--color-black);
}

.update-divider {
  border: none;
  border-top: 1px solid var(--color-greyLight);
  margin: 0;
}

.update-card-desc {
  font-size: 13px;
  color: var(--color-greyDark);
  line-height: 1.6;
  margin: 0;
}

/* ── Agent box ── */
.update-agent-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-agent-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
}

.update-agent-code {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--color-black);
  background: var(--color-greyBg, #f5f5f5);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.6;
  word-break: break-all;
  white-space: normal;
}

.update-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  border: none;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.update-copy-btn:hover {
  opacity: 0.75;
}

.copy-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── History ── */
.update-history-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}

/* ── Commit list ── */
.update-commit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.update-commit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-greyLight);
}

.update-commit:last-child {
  border-bottom: none;
}

.update-commit-msg {
  color: var(--color-black);
  line-height: 1.5;
  word-break: break-word;
  flex: 1;
}

.update-commit.is-new .update-commit-msg {
  font-weight: 600;
}

.update-commit-date {
  color: var(--color-greyMedium);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.update-loading,
.update-error {
  font-size: 13px;
  color: var(--color-greyMedium);
  list-style: none;
  padding: 8px 0;
}

/* ── RWD ── */
@media (max-width: 1300px) {
  #box_updates {
    margin-top: 0px;
  }

  #updates_grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}
