* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #161b22;
  color: #e6edf3;
}

.cg-popup {
  width: 360px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cg-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cg-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.18);
}

.cg-header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.cg-tagline {
  margin: 1px 0 0;
  font-size: 11px;
  color: #8b949e;
}

.cg-domain {
  margin: 0;
  font-size: 12px;
  color: #c9d1d9;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 10px;
  word-break: break-all;
}

.cg-primary-btn {
  background: #2dd4bf;
  color: #0b1f1c;
  border: none;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cg-primary-btn:hover {
  background: #5ee6d4;
}

.cg-secondary-btn {
  background: transparent;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.cg-secondary-btn:hover {
  color: #e6edf3;
  border-color: #58a6ff;
}

.cg-hidden {
  display: none !important;
}

.cg-status {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px;
  min-height: 48px;
  font-size: 12px;
}

.cg-empty {
  margin: 0;
  color: #8b949e;
}

.cg-verdict {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cg-verdict--clean {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.cg-verdict--minor {
  background: rgba(245, 165, 36, 0.15);
  color: #f5a524;
}

.cg-verdict--divergence {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.cg-verdict--waiting {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
}

.cg-findings {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.cg-findings li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.cg-history-section h2 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8b949e;
}

.cg-history {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cg-history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #c9d1d9;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 5px 8px;
}

.cg-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
  display: inline-block;
}

.cg-footer {
  text-align: center;
}

.cg-plan-tag {
  font-size: 10px;
  color: #6e7681;
}
